Application Development and Automation 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: 
Read only

RFC Function module

Former Member
0 Likes
523

Hi Experts,

We have the two servers Like S11 and R11.

I have created the RFC function module in S11 server.

I need to call the same function module in R11. how we can do this.

We need to approch any steps please suggest me.

First time I am working in the RFC function modules.

Thnx,

Sam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
481

You've to create a entry on SM59, for example .. S11_RFC and on the program you've to use the FM on this form

CALL FUNCTION 'Z_CALL_RFC'
  DESTINATION 'S11_RFC'
    EXPORTING
      parameters ...
    IMPORTING
      parameters.

PD: The FM Z_CALL_RFC must exist on the other server, sry for my bad english xD!

Thanks and Regards.

David Carballido

3 REPLIES 3
Read only

Former Member
0 Likes
482

You've to create a entry on SM59, for example .. S11_RFC and on the program you've to use the FM on this form

CALL FUNCTION 'Z_CALL_RFC'
  DESTINATION 'S11_RFC'
    EXPORTING
      parameters ...
    IMPORTING
      parameters.

PD: The FM Z_CALL_RFC must exist on the other server, sry for my bad english xD!

Thanks and Regards.

David Carballido

Read only

nkr1shna
Contributor
0 Likes
481

Hi Sam,

You follow below mentioned steps to achieve RFC function module access from different server.

1) Create function module as you usually do. Make sure in the attributes section of the function module

choose radio button "Remote-enabled function module".

2) In R11 server, Please ask your basis consultant to create RFC destination using SM59 transaction

pointing to server S11. Since you are calling another SAP system, you can choose connection type

as R/3. ( I am assuming your S11 & R11 are both R/3 systems).

3. Go to R11 server and call transaction SM37 and provide function module which you have created

in step 1, additional to other parameters provide RFC destination created in step 2.

Let me know if you have further questions on the process.

Best Regards,

Krishna

Read only

Former Member
0 Likes
481

Hi,

Refer this link : [Calling RFC function modules in ABAPhere|http://help.sap.com/saphelp_nw04/helpdata/en/22/042537488911d189490000e829fbbd/frameset.htm]

regards,

Advait