Skip to Content
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

To report this post you need to login first.

25 Comments

You must be Logged on to comment or reply to a post.

  1. Frank Kling
    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

    (0) 
    1. Meinhard Dirk
      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

      (0) 
  2. Gopesh Agarwal
    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.

    (0) 
  3. 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

    (0) 
  4. Anonymous
    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?

    (0) 
      1. Anonymous
        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!

        (0) 
          1. Ravichandran Kanagasabai
            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

            (0) 
          2. Ravichandran Kanagasabai
            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

            (0) 
  5. Wolfgang Moser
    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}

    (0) 
    1. Vinay Yadav
      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

      (0) 
  6. karthikeyan l
    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’)
    (0) 
  7. Marcela Leon
    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?

    (0) 
    1. Michal Krawczyk 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

      (0) 
  8. Ciba D Application-Development
    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

    (0) 
  9. Stefan Zimara

    “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

    (0) 

Leave a Reply