Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RFC

Former Member
0 Kudos

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…

8 REPLIES 8

Former Member
0 Kudos

You call RFC enabled FM in the same way as a normal FM.

Regards.

Former Member
0 Kudos

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

0 Kudos

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*

Former Member
0 Kudos

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

uwe_schieferstein
Active Contributor
0 Kudos

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

0 Kudos

How to create RFC destination in SM59...

0 Kudos

TCode SM59

Select the type of connection you want.

Eg: R/# connection

Select it and click on create.

Specify remote address

test the conenction

kanthimathikris
Employee
Employee
0 Kudos

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.