SAP RFC

D

Dan

Hi,
I'm trying to call an RFC from a vb web service. I have created the
proxy object with no worries but the return table always returns an
error even when I get success running the RFC inside SAP. I login to
the GUI under my own username but all the rfcs go through one rfc
user.

Before I go to the authorisations people, does this sounds like a
permissions problem at the SAP end or has anyone else experienced
problems like these? I am calling Bapi_Usr01dohr_Getemployee (gets
the pernr given the username which is pretty useful imho)

The code call is objSAPProxyGetPernr.Bapi_Usr01dohr_Getemployee(Nothing,
Nothing, Id, EmployeeNumber, sapBAPIRET2) where Nothing,Nothing
represents begin and end date (has a default value in the RFC as
SY-DATUM) and Id is the username.

Thanks
 
D

Dan

Hi Eric,
The error was that it couldn't find the user (sorry can't remember
exact wording) whereas running the RFC inside SAP brought back the
userid
 
E

Eric

Check for conversion routines in the function module. Many BAPI's don't
call them. You probably need to pad numeric values with 0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top