08-25-2006 9:18 AM
I want to call the FM BBP_LA_GET_FULLNAME_BY_USERID which is present in SRM to R/3 using RFC this FM is used to get user name for a given user id
How can I write code in R/3 to call this FM
08-25-2006 9:20 AM
08-25-2006 9:22 AM
CALL FUNCTION 'BBP_LA_GET_FULLNAME_BY_USERID '
DESTINATION 'SRM'
......
SRM - Should be a RFC destination created in SM59 transaction of the R/3 system.
Regards,
Ravi
Note : Please mark the helpful answers
08-25-2006 9:34 AM
Hello,
Refer this...
You can use the CALL FUNCTION statement to call remote functions, just as you would call local function modules. However, you must include an additional DESTINATION clause to define where the function should run:
CALL FUNCTION Remotefunction
DESTINATION Dest
EXPORTING
F1 = a1
F2 = a2
IMPORTING
F3 = a3
CHANGING
F4 = a4
TABLES
t1 = ITAB
EXCEPTIONS
You can define logical destinations in table RFCDES using transaction SM59, or using the following menu path: Tools >Administration > Administration > Network > RFC Destinations.
For more details, refer http://help.sap.com/saphelp_nw04s/helpdata/en/22/042551488911d189490000e829fbbd/frameset.htm
-Vishal
*Reward if helpful*
08-25-2006 9:25 AM
Create a RFC conenction in SM59
call the same way as you call normal FM.
Ensure the in the FM attributes the processing type is "remote enabled module"
Plz reward if useful.
thnx
08-25-2006 9:26 AM
Hello Vj
Why don't you use the standard BAPI for accessing user data which is BAPI_USER_GET_DETAIL?
What is the advantage of using this BAPI instead of the SRM specific function module? You will find the standard BAPI on any type of SAP system (R/3, BW, SRM, CRM,...). So you basically make your coding independent of the SAP system type on which it is running or the type of the remote system you are accessing.
Regards
Uwe
08-25-2006 9:44 AM
08-25-2006 9:55 AM
TCode SM59
Select the type of connection you want.
Eg: R/# connection
Select it and click on create.
Specify remote address
test the conenction
08-25-2006 9:59 AM
Goto SM59
Click on the create ICON, give a desc to the RFC Connection (say RFC_CONN), specify the connection type as 3.
Select the Technical Settings
Specify the Target host (Application/Message Server Name) and the system number of the remote system in which the function module exits.
Select the tab logon/security.
In the Logon Area : specify the client, user and password of the remote system in which the function module exits.
Save, Test Connection and Click on Remote logon, chk if u cud remotely logon to that system. It means that the connection is succesful.
Now you can use the RFC Connection 'RFC_CONN' in the desctination.