468,525 Members | 2,250 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,525 developers. It's quick & easy.

SAP RFC

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(Not hing,
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
Nov 20 '05 #1
3 5313
What's the error?

"Dan" <di**************@hotmail.com> wrote in message
news:48**************************@posting.google.c om...
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(Not hing,
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

Nov 20 '05 #2
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

"Eric" <em******@comcast.net> wrote in message news:<Yenbc.164556$Cb.1657066@attbi_s51>...
What's the error?

"Dan" <di**************@hotmail.com> wrote in message
news:48**************************@posting.google.c om...
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(Not hing,
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

Nov 20 '05 #3
Check for conversion routines in the function module. Many BAPI's don't
call them. You probably need to pad numeric values with 0.
"Dan" <di**************@hotmail.com> wrote in message
news:48*************************@posting.google.co m...
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

"Eric" <em******@comcast.net> wrote in message

news:<Yenbc.164556$Cb.1657066@attbi_s51>...
What's the error?

"Dan" <di**************@hotmail.com> wrote in message
news:48**************************@posting.google.c om...
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(Not hing, 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

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.