SAP RFC

  • Thread starter Thread starter Dan
  • Start date Start date
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
 
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
 
Check for conversion routines in the function module. Many BAPI's don't
call them. You probably need to pad numeric values with 0.
 
Back
Top