Program id in RFC to webservice scenario

HI
I am trying to build a RFC to WS scenario. when we create the RFC destination in R/3 side we need to enter the program ID. How do i know what is the program id i need to enter??
thanks
murhty
Edited by: sudhakar murthy on Aug 20, 2008 7:46 AM

Hi Sudhakar,
You can use any alpha-numeric string for the Program ID. Just keep in mind d program ID is a register Program ID that shud be registered on ur R/3 and Xi.
Now to register the Program ID on R/3 and XI automatically you have to enter the same Program ID in ur RFC destination and ur RFC adapter in Integration Directory.
Note: You can use even ur name as a program ID but that shud not be used in any other TCP/IP type RFC destination i.e dat shud be unique in ur R?3. Now use the same Program ID(Case sensitive) in ur RFC adapter.
While testing the RFC destination if the test fails just check whether you have started your RFC sender communication channel or not?
Hope this will help u
Regards,
Rookie.

Similar Messages

  • RFC - XI - WEBSERVICES scenario - Where to create RFC Destination

    Hi  Experts
    For my RFC - XI - WEBSERVICES scenario, I have to create one TCP/IP RFC destination on R/3 system with the following details
    RFC Destination Name    : XXXX
    Connection Type            : T (TCP/IP)
    Activation Type              : u201CRegistered Server Programu201D
    Program ID                      : YYYY
    Gateway Host                : R/3 Details ..??
    Gateway Service           : R/3 Details ..??
    My Function Module (Remote-Enabled) - u201CZZZZu201D is defined in R/3 System.
    This Function Module should be communicated with the target system i.e. NW XI system 
    As per the Note from SAP Help: To be able to communicate using RFC, you need to define the target systems as RFC destinations in the sending system(R/3)
    Target system u2013 XI Server
    Sending system u2013 R/3 System
    Are my details provided are good enough as per my explanation? Please guide me in this regard.
    QUESTION : Where exactly do I need to create the RFC Destination(SM59)? on R/3 side or on XI side?

    Refer the following link-
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1636235450DB01012070359836134304End?blog=/pub/wlg/1438
    what are the inputs should be given to Gateway Host and Gateway Service while creating RFC Destination??
    Open transaction SMGW on the R/3 system and choose
    Goto -> Parameters -> Display. Beneath Attributes there will be the
    entries 'gateway hostname' and 'gateway service'.#

  • Rfc to webservices  scenario

    hi,
        i am taking 2 FM's in rfc side and i am taking external definition in receiverside i.e in soap side
    rfc to webservices scenario
    could any one help me immediately.
    urs
    suman

    HI
    Refer this
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Steps
    Import the RFC meta data to PI
    Import the WSDL to PI
    Create MI for RFC -outbound Sync (if response is involved else Async)
    Create MI for WSDL service you want type Inbound Sync (If response involved)
    Create MM(external definition and RFC), IM for these
    Create Sender RFC adapters with SA
    Create Receiver SOAP and do necessary pipline steps
    Thats it
    Thanks
    Gaurav

  • RFC - XI - WebService, scenario error in RFC Test

    Hi
    I am following this scenario
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    and did sender RFC Adapter configuration according to michal's weblog  
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    when I did RFC connection test it gives me the following error
    http://www.flickr.com/photo_zoom.gne?id=1202592205&size=o
    <b>Connetion test:</b>
    Connection type: TCP/IP connection
    Connection error: Program sdnweblogs not registered/ CPI- C error CM_ALLOCATE_FAILURE_RETRY
    Can you pls let me know what is this error , how to solve this ?
    Thanks
    srinivas

    > The Program name which you have defined in the TCP/IP
    > Connection needs to be registered in the J2EE Visual
    > Admin. until you do that this will not work.
    This is not needed at all.
    Your RFC adapter and the TCP IP Connection should use the same Program ID. No need for registering it in the VA.
    Just make sure that the Gateway Host and Service in the Sender RFC adapter and in the TCP IP Connection use the Gateway Host and service of the R3 system.
    Regards
    Bhavesh

  • RFC to WebService Scenario  doubt

    Hi,
           I'm passing  parameters from R/3 system  RFC.. and  based on that selection criteria  the data will fetch from the  Remote Application.. and  send it to R/3.. finally my RFC will load these data into  R/3 system. this is my Scenario( that means.. RFC to WEBSERVICE)  so, in the reciever side i should use the SOAP adapter..
         but for these type of scenarios..  is  WSDL file is   mandatory or.. with out WSDL file also can we do the  scenario.. and  if this is mandatory means..  how we will get the WSDL file... 
            because  according to my reqirement i know only the sender system (R/3) and Receiver system(Remote Application) details..  I dont know any thing about  other details..
    please  suggest me what are the things are needed.. so, that i will get from my client..
    Regards
    Jain

    Hi,
    WSDL contains the message /data structure for you input and output.
    If you know the Web Services input /output data , you can create it manually or if you have WSDL, you can directly import in IR and all the request/response message would be generated automatically.
    To call a Web Service, only URL is required.
    You can ask your client to provide the WSDL file.
    Regards,
    Piyush

  • How to create or simulate a WEB service? Scenario RFC to WEBService.

    Hello PI experts,
    I'm creating an interface with this scenario: RFC->PI->WEBService, the message is synchronous. The problem is that we don't have nothing at the webservice yet, I just want to know if have a way to create or simulate a webservice to test my interface? If someone have some material or information please it will be very helpfull.
    Thanks

    Create two scenarios.
    1) Using SOAP sender you can create a web service.  So create a simple scenario using soap sender and  use some receiver like jdbc or file or something for your test.  Create WSDL using sender agreeement and save the wsdl.
    2) create RFC to SOAP scenario. In the receiver side use the WSDL as external definition for the receiver mesg structure. Configure SOAP receiver to point  the soap service created using soap sender in the step 1.
    Basically you need to know SOAP sender for the step 1 and Soap receiver for the step 2 configuration and design.
    Refer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    http://www.riyaz.net/blog/xipi-a-guide-to-using-sap-xi-soap-adapter/technology/sap/113/

  • XI Webservice scenario SOAP - RFC Call

    Hi,
    i have the following scenario: Request --> XI   RFC-call --> R/3
                                              XI --> Response
    First I have test this scenario with the HTTP-request and it works (the result was correct). After this I changed the configuration and test the scenario with the SOAP-request. But when I try this scenario, the rfc call works also, but I get the response, that we send empty request parameter (I_EQUIPMENT).
    SOAP Request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <soapenv:Header/>
       <soapenv:Body>
          <ns0:RFC_GET_EQUIPMENT_DATA>
             <I_EQUIPMENT>xxxxx</I_EQUIPMENT>
          </ns0:RFC_GET_EQUIPMENT_DATA>
       </soapenv:Body>
    </soapenv:Envelope>
    HTTP Request:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:RFC_GET_EQUIPMENT_DATA xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <I_EQUIPMENT>xxxxx</I_EQUIPMENT>
    </ns0:RFC_GET_EQUIPMENT_DATA>
    Thanks for helping,
    Markus

    Hi,
    I hope following docs will help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    Thanks,
    Tuhin

  • RFC - XI - Webservice

    I am working on a RFC -> XI -> Webservice.
    I have found an follow
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_WS_TEST_REQ_</SAP:P1>
      <SAP:P2>java.lang.NullPointerException</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_MM_WS_TEST_REQ_:</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    <Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>
      <Trace level="2" type="T">Mode 0</Trace>
      <Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_MM_WS_TEST_REQ_.</Trace>
      <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_WS_TEST_REQ_</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_WS_TEST_REQ_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy191.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor673.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:219) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:169) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7701) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2376) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1700) at com.sap.mw.jco.JCO$Server.listen(JCO.java:8061) at com.sap.mw.jco.JCO$Server.work(JCO.java:8181) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8128) at com.sap.mw.jco.JCO$Server.run(JCO.java:8044) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:124)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_WS_TEST_REQ_: java.lang.NullPointerException; null</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_WS_TEST_REQ_: java.lang.NullPointerException; null at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:73) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy191.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor673.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:219) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:169) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7701) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2376) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1700) at com.sap.mw.jco.JCO$Server.listen(JCO.java:8061) at com.sap.mw.jco.JCO$Server.work(JCO.java:8181) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8128) at com.sap.mw.jco.JCO$Server.run(JCO.java:8044) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:124) Root Cause: java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy191.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor673.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:219) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:169) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7701) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2376) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1700) at com.sap.mw.jco.JCO$Server.listen(JCO.java:8061) at com.sap.mw.jco.JCO$Server.work(JCO.java:8181) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8128) at com.sap.mw.jco.JCO$Server.run(JCO.java:8044) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:124)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
    Thanks a lot
    Any help will be appreciated
    Message was edited by:
            Chang Hwa Chung

    Hi,
    The error message states you are using a java mapping. Have you testd the mapping?
    You can use these blogs for this,
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Regards,
    Bhavesh

  • RFC  to SOAP Scenario -- Delivery Exception

    Hi All,
    I am working on RFC to SOAP scenario.
    On executing a program in the SAP system, the system is throwing a dump stating                                                   "com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML".
    I feel that the error is because of the response not being sent back by the webservice. On executing the webservice independently, it is working fine i.e. sending back the response.
    Can anyone suggest the possible reasons for this error and what needs to be done to rectify this?
    Thanks,
    Ravi Kiran

    the return from the Web service must have been an HTML(may be an error page or something)...What kind of authorization does this WS look for ?
    Pls check these threads...
    SOAP Receiver Adapter Proxy Settings
    Receiver SOAP Adapter Error: invalid content type for SOAP: TEXT/HTML

  • Error"SYSTEM Failure" while testing the RFC in SE37  : RFC to JDBC Scenario

    Hi All,
    I am doing RFC to JDBC scenario. When I am testing the RFC in SE37 using the RFC destination created in SM59, I get an error "SYSTEM FAILURE".
    Please suggest.
    Thanks,
    Shyam
    Edited by: Shyam Sreepada on Dec 18, 2007 5:46 PM

    Hi,
    You must run RFC with RFC destination in background mode, I suggest to read following post in order to understand it better.
    Syntax would be:
    CALL FUNCTION func IN BACKGROUND TASK
                       [DESTINATION <your RFC destination>]
                       parameter list
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    If you read it you will find that you can't test it directly from SE37, for this either you need to create dummy ABAP program or another RFC where you will call this RFC with background syntax.
    Regards,
    Gourav
    Reward points if it helps you
    Edited by: Gourav Khare on Dec 18, 2007 6:07 PM

  • Issue in File to RFC to File Scenario with BPM using Block Step

    Hi Everybody,
                           I am doing File to RFC to File Scenario for multiple records using BPM using Block Step. The File Message is getting posted and after that, the message is getting stuck up in the qRFC Monitor (Inbound Queue).
                        After seeing the message in Inbound Queue, I am trying to execute and release the message. But when i execute the LUW, it says " Function module doesnt exist or EXCEPTION raised" in Inbound queue.
    Could somebody suggest me the outcome of this? What does this mean and how to
    release the stuck up message in Queue.
    Thanks and Regards,
    N.Jayanth Kumar

    Hi Rajesh,
                           After going through the blog, i saw the trace messages. It says      
    " The   exception occurred (program: CL_SWF_XI_INBOUND=============CP, include CL_SWF_XI_INBOUND=============CM00F, line: 19)"
    Regards,
    N.Jayanth Kumar

  • RFC destination for RFC to File scenario

    Hi,
    I m creating a TCP/IP RFC destination in R/3 system for my RFC to File scenario.
    Step 1:
    For this a Registered server program is created in Jco RFc Destinations with,
    Program Id : pgm1
    Gateway host : PI's host
    Gateway service : PI's service
    application server host: ECC's host
    system numer     : ECC's number
    client  : ECC's client
    logon user : ECC user
    password : pwd
    Step 2:
    In SM59, TCP/IP connection the following parameters are given:
    Program ID : pgm1
    Gateway host : PI's host       -
    > is this correct
    Gateway service : PI's service      -
    > is this correct
    Step 3:
    So i am calling the RFC in ABAP program (R/3 system) like:
    CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'
    IN BACKGROUND TASK DESTINATION 'Z_HR_OUTBOUND_DATA2'
    Step 4:
    In PI side,
    for RFC sender I am passing :
    Application server : PI server
    Application server service: PI host
    program ID: pgm1 which was created in the previos step
    For RFC Metadata Repository Parameter, i am passing all the values related to R/3
    Please let me know whether the steps and values i given is correct.
    B'cos even if i give ECC's information in Gateway host and Gateway service the scenario works fine and if i PI's info then also it works fine.
    so i am confused as which is the correct method. pls clarify

    Ok I will try to explain....
    Assumptions: R3_TO_XI is the name of RFC which I created in ECC of type T.
    While creating the RFC in ECC we mention a unique name which is called Progaram ID. Now the same program id we mention in our sender RFC CC.
    So now when an ABAP Progarm (where you will call this RFC with it's destination) is scheduled/triggered with the code as mentioned below then since the DESTINATION ('R3_TO_XI') mentioned here contain the same program id which we have mentioned in our sender CC, invokes the adapter in PI and soon after that all pipeline steps get executed in XI.
    CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
      IN BACKGROUND TASK
      DESTINATION 'R3_TO_XI'
      TABLES
        comp_detail = company_detail.
    COMMIT WORK.
    Regards,
    Sarvesh

  • What is RFC to XI scenario

    Hi Forum,
    What is a RFC-->XI scenario
    When do we configure Sender RFC channel,
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    What is the purpose of doing such kind of scenarios
    pls help
    Edited by: sudeep dhar on May 7, 2008 8:58 AM
    Edited by: sudeep dhar on May 7, 2008 8:59 AM

    Hi Sudeep
    What is a RFC-->XI scenario
    >> It means passing data fior RFC call to XI and XI inturn will pass the data to some other application system.
    When do we configure Sender RFC channel
    >> We need this when your RFC call is on sender application system and the processing is done on receiver applciation system.
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    >> NOP, it doesn't mean calling a function module in XI as XI is just a integration broker it wont process any data.The call is intend for other receiver systems passed via XI.
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    >> NOP, it is not passing output to XI.
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    >>Sample code will contain call to the sender message interface in the configured scenario.
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    >> Import the RFC from the sender system to XI and then you can use that message interface in your scenario creation.
    What is the purpose of doing such kind of scenarios
    >> This is used when you intend to place a RFC call from a sender system to receiver system, so the processing of the RFC is done on the receiver system.
    The main points to be considered while RFC to XI scenario is
    1) The RFC destination is TCP and the program name mentioned in the desnation should be registered in though sender communication channel. The program name mentioned in the RFC desnation and sender commnucation channel should be same.
    Thanks
    Mitesh

  • Error Handling on RFC - XI - File Scenario

    I have an R/3 RFC -> XI -> FILE scenario that works, but does not adequately handle the error of my R/3 to XI connection being down.
    The RFC call is async since I was under the impression that I had to do a "to file" scenario that way.
        CALL FUNCTION 'ZXO_SAP2RFC'
          IN BACKGROUND TASK
          DESTINATION  wa-rfc_dest_1
          EXPORTING
            request          = request
            rfc_header       = rfc_header.
        COMMIT WORK AND WAIT.
        IF sy-subrc <> 0.
          [error handling]
    If my rfc destination is down (for example when XI is down), this RFC call is still getting a sy-subrc of '0' (so my error handling does not kick in).
    Any suggestions?

    Hi Keith,
    your scenario is working correctly. If XI is down you will find your message queued in transaction SM58, where you can restart it manually. Usually there should be standard job for report RSARFCEX, which is periodicly trieing to restard the message.
    Asynchr Call (tRFC) means that your program continues completly undependent from that call.
    Make a test: Change temporary the called machine in SM59 destination to senseless value and execute your programm. Your message should be in SM58. Then correct the destination and wait a few minutes...
    Regards,
    Udo

  • RFC-XI-WEBSERVICE = ABAP DUMP ERROR(V.URGENT)

    Hi Experts,
    I am trying to create a RFC-XI-Webservice scenarion in which i have made a function module giving the parameters which needs to be displayed in my webservice . I call this function module in a report zlv_distance.
    .I am getting a dump while executing my Function module . I am copying the dump as under:-
    Runtime Errors         CALL_FUNCTION_REMOTE_ERROR
    Date and Time          11.10.2007 10:23:56
    What happened?
         Error in ABAP application program.
         The current ABAP program "Z_WEBSERVICE_TEST_SARAS=======FT" had to be
          terminated because one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         The error occurred in an RFC call to another system.
         The target system has also written a short dump.
         Consult this short dump for more precise information about
         the cause of the error.
    Error analysis
         An error occurred when executing a REMOTE FUNCTION CALL.
         It was logged under the name "RFC_EXTERNAL_ABORT"
         on the called page.
    Trigger Location of Runtime Error
         Program                                 Z_WEBSERVICE_TEST_SARAS=======FT
         Include                                 Z_WEBSERVICE_TEST_SARAS=======FT
         Row                                     68
         Module type                             (FORM)
         Module Name                             FUNCTION_CALL
    Source Code Extract
    Line  SourceCde
       38 DATA: %_VDISTANCE TYPE CHAR10.
       39 FORM EXISTENCE_CHECK CHANGING VARIA.
       40   VARIA = 1.
       41 ENDFORM.
       42 FORM FUNCTION_CALL.
       43   CLEAR %_ODISTANCE.
       44 *  TRANSAKTION = 'Repo', PROGRAM = REPORT
       45   IF ATRA = '1'.
       46     SET RUN TIME ANALYZER ON %_INTERNAL.
       47   ENDIF.
       48 IF DESTI IS INITIAL.
       49 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
       50 ENDIF.
       51 DEBUG = SPACE.
    52 GET RUN TIME FIELD TIME1.
    53 CALL FUNCTION 'Z_WEBSERVICE_TEST_SARAS'
    54 EXPORTING
    55 FROMZIP = %_IFROMZIP
    56 TOZIP = %_ITOZIP
    57 IMPORTING
    58 DISTANCE = %_ODISTANCE.
    59   IF ATRA = '1'.
    60     SET RUN TIME ANALYZER OFF %_INTERNAL.
    61   ENDIF.
    62 ELSE.
    63 GET RUN TIME FIELD TIME1.
    64 *  TRANSAKTION = 'Repo', PROGRAM = REPORT
    65   IF ATRA = '1'.
    66     SET RUN TIME ANALYZER ON %_INTERNAL.
    67   ENDIF.
    >> CALL FUNCTION 'Z_WEBSERVICE_TEST_SARAS' DESTINATION DESTI
    69 EXPORTING
    70 FROMZIP = %_IFROMZIP
    71 TOZIP = %_ITOZIP
    72 IMPORTING
    73 DISTANCE = %_ODISTANCE.
    74   IF ATRA = '1'.
    75     SET RUN TIME ANALYZER OFF %_INTERNAL.
    76   ENDIF.
    77   ENDIF.
    78   GET RUN TIME FIELD TIME2.
    79   RC = SY-SUBRC.
    80   CLEAR EXCEPTIONS.
    81   READ TABLE EXCEPTIONS INDEX RC.
    82   IF SY-SUBRC = 0.
    83   OEXCEPTION = EXCEPTIONS-NAME.
    84   ELSE.
    85   OEXCEPTION = RESULTAT.
    86   ENDIF.
    87   TIME1 = TIME2 - TIME1.
    I have made my function module Remote enabled.
    My RFC destination is working fine .
    I have already tested that.
    Please help me on this.
    Regards
    Saras Jain

    Hi,
    possible solution could be a ConversionException in you RFC Adapter because of mismatching data types in your source and receiver message.
    Just goto RWB an monitor the Processing Details for Cluster Node Server of your adapter in the Channel Monitoring.
    Afterwards you have to adjust your importing or exporting structure of the used RFC function module.
    Cheers,
    André

Maybe you are looking for

  • My iPhone 4 no longer connects properly to my car stereo.

    It charges fine and I can control the iPod through the stereo controls, but the sound comes out of the phone, not the speakers. How can I fix this?

  • Recover a deleted playlist in latest iTunes version

    Hi I accidentally deleted my burned MP3 playlist from iTunes and how do I recover it to burn some other MP3 CDs to give as a gift to my friends? I do not want to add songs again because there are very many songs in the playlist. Please help. Thank yo

  • Cross browser checking

    Please have a look at the following website http://www.mettsprogramme.com. The top part where the scrolling text is appears broken when viewed on a Mac Safari!! Why is that and how can I rectify that. Many thanks

  • How to install Exaprom PDF 1.0?

    Hi, I'm having problems to see the "Free PDF Report with ItextSharp" from Exaprom PDF. When I put it in the folder user.lib, the links not appears! Please, see the images below! Thks!  Solved! Go to Solution. Attachments: image1.JPG ‏19 KB image2.JP

  • Regarding type of file

    hi,     which function module is used to know type of file(like DAT,TXT,ASCII...). Thanks & Regards, Rajani.