Skip to Content
Author's profile photo Michal Krawczyk

Configuring the Sender RFC Adapter – step by step

This weblog is a response to a few question about the basic configuration of the RFC sender adapter
that were posted on the XI forum (and also on my e-mail) 🙂

So here we go, basically we have to configure 2 things:

a) RFC destination

b) RFC channel in the XI directory

RFC destination:

1. To create the RFC go to TCODE: SM59

2. Create new destination of type T (TCP/IP)

3. Make sure you select Registered Server Program option before writing your program ID

4. Write you program ID (remember it’s case-sensitive)

5. In the gateway host and gateway service write the values of your “Application system” – business system (not the XI server)

image

7. No configuration in the J2EE administrator nessecary

Now we can proceed to RFC channel configuration:

1. Enter your Application Server

2. Your Application Server Service

3. Enter your Program ID from the RFC destination

image

And we’re done:)
Now you can test the RFC destination in SM59 to see if it works.

Further Reading:

1. RFC Processing with the RFC Adapter – help.sap.com

2. Configuring the Sender RFC Adapter – help.sap.com

Assigned Tags

      27 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Hi Michal,
      I'm trying to build up your little example, but when I try to create a channel configuration the field for Sender is grey. I looked up the adapter metadata in the Integration Repository in namespace http://sap.com/xi/XI/System and there is nothing under the node Inbound.
      I imported a new RFC metadata, but this one is without values. Any idea what I can do and what went wrong with my XI.

      Thanks, Frank

      Author's profile photo Former Member
      Former Member
      Hello,

      don´t know if this simple idea helps with your problem with the greyed sender button.
      At first you need to choose the adapter type (here: RFC) directly above the two buttons for sender and receiver. Then you are able to define if the comm.channel is sender!

      regards
      Dirk

      Author's profile photo Aida J. Hilton
      Aida J. Hilton
      Hi Frank,

      Did you ever get this problem solved.  I have the same issue and would appreciate your help.

      Regards,
      Jill

      Author's profile photo Former Member
      Former Member
      Hi,
      I am trying to send some rows of data from a custom zcust_table using RFC to SAP XI and then moving all records to SQLServer database.

      RFC destination : ok
      configuration in RFC sender adapter : ok
      in sxmb_moni : i am not able to see the desired message in inbound payload.
      can you guide me in this regard.

      Author's profile photo Former Member
      Former Member
      I did follow every step of this webBlog and cannot have success.

      Help me plz.

      Author's profile photo Elias Marin
      Elias Marin
      Hi,

      I've already configured a destination called XI in SM59 the test runs successfully. But when I try to run the RFC STFC_CONNECTION using the XI destination a dunp is displayed with the error message:
      "Server repository could not create function template for 'STFC_CONNECTION'
      Is it necesary to configure something else in the R3 System or perhaps in XI?

      Thanks for your answer

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      did you create all routing rulles inside Integration directory? if no you have to do this
      please post questions on the XI forum

      Regards,
      michal

      Author's profile photo Elias Marin
      Elias Marin
      Ok I found the problem. The password in the RFC Metadata Repository was not correct.
      Author's profile photo Former Member
      Former Member
      How do you determine your program ID?  Can you please explain the process for defining this or locating where it is?
      Author's profile photo Former Member
      Former Member
      Michal,

      I'm trying to configure a R/3 -> XI -> SOAP scenario. In the first part, I'll need to configure a RFC Sender Adapter in XI to receive data from a RFC in R/3. I had read on SDN Forums that the RFC Destination had to be created in the R/3 environment, not in XI. But your weblog seems to imply the contrary. Which is correct?

      Author's profile photo Durairaj Athavan Raja
      Durairaj Athavan Raja
      You need to create the RFC destination in R/3 system

      Regards
      Raja

      Author's profile photo Former Member
      Former Member
      Thanks a lot! 🙂
      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      hi Henrique,

      you need to read my weblogs a not watch them 🙂
      I just use a new gui colours

      Regards,
      michal

      Author's profile photo Former Member
      Former Member
      Sorry Michal, but I'm still missing the part where you say it's on R/3. Afterall, TX SM59 is also available at XI, isn't it?

      Thanks for the quick reply!

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      do it in the r,3 🙂

      btw
      please post on the XI forum

      Regards,
      michal

      Author's profile photo Former Member
      Former Member
      Hi Michal,

      I have confirmed RFC Sender Adaptor as per the your sdn forum. It is very good.

      i have couple of question.
        1. How to get the data from R/3 whether we have write some programe and schedule it?
        2. XI will pull down the data from r/3.

      Regards
      Ravichandran K

      Author's profile photo Former Member
      Former Member
      Hi Michal,

      I have confirmed RFC Sender Adaptor as per the your sdn forum. It is very good.

      i have couple of question.
        1. How to get the data from R/3 whether we have write some programe and schedule it?
        2. XI will pull down the data from r/3.

      Regards
      Ravichandran K

      Author's profile photo Former Member
      Former Member
      Hi Michal!

      I understood the concept - what we did is,  we registered in JCO a unique program id of XI server for our backend system serving as sender RFC gateway.

      On the backend we call the RFC with destination pinting to the JCO

      In the sender adapter I configured the application server gateway correspondingly and when activating the CC I get the following exception - do you have an idea? ( we already did the full CPACache refresh )

      Could not load class com.sap.guid.GUID with classloader com.sap.engine.core.service630.container.ComponentClassLoader@15f1ace@service:jms_provider, will try ObjectStreamClass.forClass() instead.
      [EXCEPTION]
      java.lang.ClassNotFoundException: com.sap.guid.GUID

      Found in negative cache

      ------------------------- Loader Info -------------------------

      ClassLoader name: [service:jms_provider]

      Parent loader name: [Frame ClassLoader]

      References:

         library:tc~jmx

         library:jms

         library:core_lib

         library:com.sap.util.monitor.jarm

         service:timeout

         common:service:iiop;service:naming;service:p4;service:ts

         common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore

         service:memory

         interface:security

         interface:shell

         interface:visual_administration

         interface:log

      Resources:

         E:\usr\sap\XDS\DVEBMGS00\j2ee\cluster\server0\bin\services\jms_provider\sapjms.jar

      Loading model: {parent,local,references}

      Author's profile photo Former Member
      Former Member
      Hi friends,
                           In my scenario CRM-XI using RFC .I am facing a probem  when I trigger the RFC from CRM it gives an error System Failure.
      Can someone provide me some inputs on that.Why Its happening.

      In XI .

      1. In design part I imported the rfc as source structure .
      2. In out bound interface

                           In my scenario CRM-XI using RFC .I am facing a probem  when I trigger the RFC from CRM it gives an error System Failure.
      Can someone provide me some inputs on that.Why Its happening.

      In XI .

      1. In design part I imported the rfc as source structure .
      2. In out bound interface i am taking RFC response.
      while triggring the RFC in CRM se37 it gives me an error that System Failure.

      Could you please provide me some inputs on that I hacve already gone through you blog on RFCdestination.

      Thanks & Regards,
      Vinay Yadav

      Author's profile photo Former Member
      Former Member
      Error in processing caused by: com.sap.aii.af.rfc.afcommunication.RfcAFWException: alternativeServiceIdentifier: party/service from channel configuration are not equal to party/service from lookup of alternativeServiceIdentifier (CPA party/service/channel ''/'bs_xml_file_sender'/'cc_sender_distance', lookup of alternativeServiceIdentifier for party '', schema 'TechnicalSystem' with 'ID1#800' returned party/service of ''/'BS_IDES')
      Author's profile photo Former Member
      Former Member
      Once I get the tx. SM59, just how the blog says, I´m getting the error: Program XXXX Not Registered.
      I´m using in the program ID field this anything 'CNT_SAP_XIPI' . 
      I thing there is an step before, to register this program or Do I have to use anything SAP standar that I can get in service.sap.com?

      I also reading something similar for LDAP connector about to register at the local gateway, how do I get to do that for XIPI, some body knows?

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      Hi Marcela,

      the blog does not mention testing
      once you're in sm59 step...
      finish the blog and test at the end as it says:)

      Regards,
      michal

      Author's profile photo Former Member
      Former Member
      Hi,

      thanks for this nice explanation!

      In our environment however we face the situation, that we have a business system with load balancing, i.e. multiple application servers/gateways. How can we configure for this situation, without relying on a specific gateway (the configured one) to be up?

      Many thanks in advance for any hints
      Jochen Müller

      Author's profile photo Former Member
      Former Member
      Hi,

      has there ever been an answer to the load balancing question ?

      regards

      Claus Mayer

      Author's profile photo Saud Shaikh
      Saud Shaikh

      Hi, did you get an answer for this?

      Author's profile photo Saud Shaikh
      Saud Shaikh

      Our Basis Expert found the answer, posting it here in case somebody comes looking for it:

      1. Enter the Business System Load Balancing Server's Address itself in the SM59 Destination - Gateway Host field as well as in the RFC Sender Channel -> under Application Server (Gateway).
      2. Adjust the Gateway ACL Reginfo File with the ACCESS parameter set for all the Application Servers available.

      Below is a useful link. It helped us, to some extent towards the answer:

      RFC Sender channel - which Gateway to chose

      Do note that you may even set the PI Server as the Gateway Host in the SM59 Destination. However, you must enter the same PI Server in the RFC Sender Channel -> Application Server (Gateway) too.

      Author's profile photo Former Member
      Former Member

      "write the values of your "Application system" - business system"

      Just to be sure. That would be the system where the RFC call is comming from, isn't it?

      Is it a must that the Application system is a business system, maintained in the SLD?

      cheers,

      Stefan