RFC as sender

hi
i am trying to do RFC to JDBC scenario
My question is when I execute the RFC in SE37 transaction code, how does my output of the function module goes to SAP XI to so that the data goes to JDBC.
Please explain me how to execute the function modue in SE37 (if is executed by not pressing F8) button. And when we execute the function module, how does the data would reach the SAP XI.
Priya

Hi,
RFC has import and export structure
1. When you execute the RFC with the RFC destination you have created, the data in the import structure is passed to SAP XI.
2.  The metadata should be the same and hence you need to import the RFC for using as message type
3. the response from the DB should be mapped to the response of the RFC
4. If you want to send data in Async mode then you need to create a program and call the RFC in Background task so that the RFC does not wait for a response.
Regards
Vijaya

Similar Messages

  • BPM RFC synch send step

    Hi
    I am using RFC synch send step with in parforeach block in BPM. do I need to activate correlation to correlate synchronous request and synchronous response for RFC synch send step ?
    Please let me know if you have any ideas on this.
    Thanks
    Anand

    Hi Michal,
    Thanks for the reply.
    In SAP help I found the statement made below.
    Activating a Correlation
    An asynchronous or synchronous send step can activate correlations. This can be useful in the following cases:
    ·        Synchronous send step
    A synchronous send step waits for a reply message to be received. On receipt of this reply message,
    correlations can be activated to correlate additional messages.**********************************Any idea on highlighted sentence...
    Thanks
    Anand

  • RFC to send an idoc PEXR2002 using HTTP connection to an external server

    Hi,
      Iam working on RFC to send an idoc PEXR2002 using HTTP connection to an external server. first time iam working on this particular scenario on http connections. please clarify on this and explai me in detail about this.
    Points will be rewarded **
    Thanks & Regards,
    Ravi

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

  • Using the RFC adapter (sender), how do I know which RFC is being sent?

    Hello everyone!
    Has anyone used the RFC adapter (sender) in XI to pick up RFC messages? How would I know which RFC is triggered for example when a user creates a PO (purchase order)?
    Warm Regards,
    Glenn

    Glenn,
    When u are writinfg RFC program, u will have destination right?  There u know u have to give RFC Destination(SM59) while creating RFC destination we will be giving Program ID .
    Similarly in XI while creating Sender RFC u have to give the program id. So with these program id these programs are linked together and triggered from R/3 to the exact Sender adapter.
    Please see Michal weblog for more details
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    I hope it clears your doubt!!!
    Best regards,
    raj.

  • SYSTEM_FAILURE error after executing RFC for Sender RFC Scenario

    Hi ,
    I have configured a scenario where my sender is R3 System , data is sent via executing the RFC (BAPI) ........
    I have configured the TCP type RFC destination and also maintained a unique program ID ...... i am able to see the program ID as registered service in SMGW.....
    while executing the RFC i specify the RFC destination configured as the RFC target Sys...but when i execute ..i get a "<b>SYSTEM_FAILURE</b>" exception....
    Please suggest some solution.
    Thanks ,
    Sushil

    Hi,
    Execute your RFC in bakground mode. Create dummy report and polpulate your parameter of RFC in this report and execute RFC in background with following syntax.
    CALL FUNCTION <yourfunction>
    IN BACKGROUND TASK
    DESTINATION <yourRFCDest>
    <Export/Table/Exception etc Paramters>
    COMMIT WORK.
    You can found similar issues in forum.
    Regards,
    Gourav
    null

  • Sender RFC Adapter , Sender File Adapter  - Payload Compression

    Sender RFC Adapter or the Sender File Adapter compress the payload of any spaces in between the tags or remove any spaces at the start and end of the payload.
    We need to pass the spaces as is in the message payload to the receiving system?
    Is there a way to do it in PI 7.1.

    Hi Vikrant,
    Preserving white spaces while reading a file from FTP
    NameA.fieldContentFormatting
    - Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
    - Specify nothing to ensure that the value remains unaltered.
    For RFC you need to check your payload to see whether spaces are coming from R/3 itself or not.
    Regards
    joel

  • RFC Adapter - Sender

    We are unable to configure a RFC Adapter as a Sender one. We are using Netweaver '04 ramp up CD's. The Sender Radio button is always disabled.
    Any ideas why this is happening?
    Thanks,

    XI3.0; Any solution to this problem??? I have the same...
    And at the other side (RFC-Receiver-CommunicationChannel) I get an exception "com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel not in list of running clientPools";
    Probably the problems have the same reason, some missing configuration or installation? Any ideas?

  • RFC error sending a table

    People.. please... I am sending one table to one RFC with this code:
    wdContext.nodeZctftv003_Input().bind( inputSol );
    wdContext.nodeT_Saida().bind( new ArrayList() );
    wdContext.nodeT_Saida().addElement(  tSaida );     
    inputSol.modelObject().execute();
    but the RFC always returns me the follow:
    Caused by: com.sap.aii.proxy.framework.core.DataAccessException: Mandatory parameter T_SAIDA of method ZCTFTV003 missing
    Edited by: Michel Dambros Figueiredo - BR on Nov 6, 2008 12:22 PM

    This is the complete code:
    Yes I think the node is initialized, doesn´t it ?
    The server was restarted
    About the mapping.. I imported the nodes from de model side.
              IPublicFcTreReview.IZctftv003_InputElement inputSol= wdContext.createZctftv003_InputElement( new Zctftv003_Input() );
              inputSol.setV_Pernr( wdContext.currentEnviaParaRFCElement().getV_Pernr() );
              inputSol.setV_Reinr( wdContext.currentExpenseReportSave_OutputElement().getE_Tripnumber() );
              inputSol.setV_Botao( wdContext.currentEnviaParaRFCElement().getV_Botao() );          
              IPublicFcTreReview.IT_SaidaElement tSaida= wdContext.createT_SaidaElement( new Zctts001() );
              tSaida.setCountry_Beg( "BR" );
              tSaida.setCountry_End( "CO" );
              tSaida.setDate_Beg( new Date( System.currentTimeMillis() ) );
              tSaida.setDep_Arr( true );
              tSaida.setLocation_Beg( "SP" );
              tSaida.setLocation_End( "CA" );
              tSaida.setPernr( wdContext.currentEnviaParaRFCElement().getV_Pernr() );
              tSaida.setReinr( wdContext.currentExpenseReportSave_OutputElement().getE_Tripnumber() );
              tSaida.setRequest_Type("OF");
              tSaida.setTime_Beg( new Time( System.currentTimeMillis() ) );
              wdContext.nodeZctftv003_Input().bind( inputSol );
              wdContext.nodeT_Saida().bind( new ArrayList() );
              wdContext.nodeT_Saida().addElement(  tSaida );     
              inputSol.modelObject().execute();

  • RFC Synchronous Sender

    Hi ,
    I am Doing RFC->XI->SOAP Scenario.
    I am Posting the Data Using ABAP Program and The Data Received on other side.
    Now What Happend when I Post the Data My ABAp Program Goes into short DUMP.
    My Problem Is When The Request Received then The Receiver send the Response that it has been Received. How Should SAP Captures or Handles the Respose Message . How We Should Display.
    Points will be awarded.
    Regards,
    Jayasimha Jangam

    --->How Should SAP Captures or Handles the Respose Message .
    <b>What ever response you are getting you can put that thing in a table(ztable)/pass into a func module for further processing....bla bla...</b>
    --->How We Should Display. :
    <b>For display use another report prog for fetching the data from the table...as the data is now into ztable..</b>
    Regards,

  • Get PDF data from RFC and send in email.

    Hello,
    I need to get PO spool PDF from R/3 server into SRM server and send email from SRM.
    Code for sending PDF in email is working fine if executed from R/3 .But in SRM server PDF
    in email is not opening in SOST  transaction. Its showing error "Adobe reader cannot open document because either its not a supported file type or the file has ben damaged(for example,it was sent as an email attachment and wasnt correctly decoded).
    Is this due to some server specific settings? Any help is appreciated!

    Hi Kanchan,
    If the generated PDF file is opened properly in R/3 & not in SRM, then it should be a version issue.
    Please check for any relevant note wrt SRM/PDF.
    Best regards,
    Prashant

  • Help required for Sender Proxy/RFC and Receiver RFC approach. Urgent please

    Hi All,
    I have one sender R/3 system
    I have two receivers R/3 systems
    Business Partners data from sender R/3 system needs to be repliacted to 2 receivers R/3 systems
    From sender R/3 system one Sync Abap Client Proxy or
    Sync RFC will send Business Partners data to XI.
    For both receivers R/3 systems there is only one RFC Currently there is no flag condition for 2 receivers as this is
    Business Partner replication scenario.
    Also In XI there is restriction that multiple sync receivers cannot be there.
    Please let me know how to make this approach.
    Regards

    Rich,
    Create two O/B Interfaces - Synch. Create Proxy1 for O/B Interface1 , Proxy2 for O/B interface 2.
    So while defining Receiver determinatio, you will define as following,
    Receiver Determination----1
    Sender : Sender_BusinessSystem
    Sender Interface : O/B Interface 1 ( i.e Proxy1)
    Receiver : BusinessSystem_ C
    Interace Determination
    Sender : Sender_BusinessSystem
    Sender Interface : O/B Interface 1 ( i.e Proxy1)
    Inbound Interface: RFC_Rec
    Receiver Determination----2
    Sender : Sender_BusinessSystem
    Sender Interface : O/B Interface 2 ( i.e Proxy2)
    Receiver : BusinessSystem_D
    Interace Determination
    Sender : Sender_BusinessSystem
    Sender Interface : O/B Interface 2 ( i.e Proxy2)
    Inbound Interface: RFC_Rec
    Hope it helps!
    raj.

  • RFC to XML-RFC Parsing issue in RFC Adapter as Sender

    Hi all,
    I tried to use RFC adapter as a sender. The scenario I am trying to achieve is R3 -> RFC Adapter Sender --> BPM --> RFC Adapter Receiver --> SAP Auto-ID system.
    The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails. Everything works as expected, except the RFC Adapter Sender.
    The RFC I am calling has an input table. The input data I use works fine if I call it via SE37 or remotely from another SAP system. However, if I call it via RFC adapter, when XI parses the data into RFC-XML format, the input data is all messed up.
    DATA: BEGIN OF ID_STR,
            ID_VERSION(8)       TYPE C,
            ID(96)              TYPE C,
            ELEMENT_NAME(50)    TYPE C,
            ELEMENT_VALUE(128)  TYPE C,
          END OF ID_STR.
    DATA: it_id LIKE TABLE OF ID_STR,
          ls_id LIKE ID_STR.
    ls_id-ID_VERSION = 'EPC_1.30'.
    ls_id-ID = '30340242206DC3C00000000A'.
    ls_id-element_name = 'BATCH_ID'.
    ls_id-element_value = 'BATCH001'.
    APPEND ls_id TO it_id.
    CALL FUNCTION '/AIN/UI_MOBILE_MSG_SEND'
      IN BACKGROUND TASK
      DESTINATION  'RFC_UPDATEAII'
      EXPORTING
        IV_BUSINESS_PROCESS       = '09'
        IV_COMMAND                = 'DO'
        IV_ACTION_TYPE            = 'APL2'
        IV_PRT_ID                 = '31140242200000000F000000'
        IV_DEVGRP_EXTID           = 'MOBILE'
      TABLES
        IT_ID                     = it_id
      commit work.
    And the parsed RFC-XML message is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <rfc:_-AIN_-UI_MOBILE_MSG_SEND
    xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    <IV_ACTION_TYPE>APL2</IV_ACTION_TYPE>
    <IV_BTD_EXTID />
    <IV_BTD_TYPE />
    <IV_BUSINESS_PROCESS>09</IV_BUSINESS_PROCESS>
    <IV_COMMAND>DO</IV_COMMAND>
    <IV_DEVGRP_EXTID>MOBILE</IV_DEVGRP_EXTID>
    <IV_LOC_EXTID />
    <IV_LOC_TYPE />
    <IV_PRT_ID>31140242200000000F000000</IV_PRT_ID>
    <IV_PRT_ID_VERSION />
    <IV_REASON_CODE />
    <IV_UNAME/>
    <ET_RETURN />
    <IT_ID>
    <item>
    <ID_VERSION>EPC_1.30</ID_VERSION>
    <ID>206DC3C00000000A BATCH_ID</ID>
    <ELEMENT_NAME />
    <ELEMENT_VALUE />
    </item>
    </IT_ID>
    </rfc:_-AIN_-UI_MOBILE_MSG_SEND>
    You can see the data in the table is all wrong, it should be:
    <IT_ID>
    <item>
    <ID_VERSION>EPC_1.30</ID_VERSION>
    <ID>30340242206DC3C00000000A</ID>
    <ELEMENT_NAME>BATCH_ID</ELEMENT_NAME>
    <ELEMENT_VALUE>BATCH001</ELEMENT_VALUE>
    </item>
    </IT_ID>
    The calling system is a 4.6C non-unicode system, and the destination system is a unicode system (this does not matter since the first part of the integration is between R3 and XI). There is no config found on R3 side to specify non-unicode because it is a rather old system. In XI RFC Adapter config, I checked non-unicode checkbox (I also tested it with this unchecked, but still the same issue).
    Have any of you seen this problem and how you resolve it?
    Thanks a lot for your help!
    Regards,
    Hart

    Hi Hart
    long time no seen - hope you remember me
    >The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails
    there is an easy way (guess max 3-4 hours) to solve all of your issues
    and get rid of a BPM
    use IDOC - XI - ABAP Proxy
    then you will have IDOC and ABAP Proxy that always log the message on both ends (and you can restart ABAP proxies easily in AII - and every AII supports ABAP proxies) + you get rid of a BPM as it's not necessary as far as I understand (as it's asyn communication right?)
    maybe you can go this way and IDOCs always work...
    good luck,
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • RFC Sender Adapter in XI..Possible??

    Hi All,
    I am trying to send data from XI using RFC Sender Adapter.
    Have done all the configuration, ie created a tcp/ip destination in SM59 and then in the RFC adapter mentioned the program name.
    In Adapter monitoring i can see the adapter working fine.
    When i execute the Function Mouldule i get the following error in SM58.
    parameter JCO.Request was <null> (server: RfcServer[CC_RFC_TX1_OUT]1)
    Can anyone please lemme know if we can send data from XI box using RFC sender adapter.
    Regards,
    Sumit

    Sumit,
    Technically specking this should be possible.. I Havent tried it though..
    So, you are using a Sender RFC to send data from XI to XI itself uh?
    I have tried configuring a Receievr RFC adapter pointing to XI and it has worked fine.
    Also, take a look at these blogs if your config is correct,
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Regards,
    Bhavesh

  • RFC Adapter as Sender

    Hi Experts,
    We have a business scenario wherein I have to execute the RFC function(async) from an ABAP in R/3 and update the data in DB2 tables(async).
    I am using RFC as sender(async) and JDBC as receiver(async). I configured/registered the RFC connection in SM59 and used the same program id in RFC sender adapter. I tested the connection in standalone mode, it is working.
    The RFC function when I imported will have a request and a response. The data that I require to send to JDBC adapter is in the response. So I tried to use RFC response and created a message interface. Then I used that in my interface mapping and in the sender & receiver agreements. In the message mapping I used response that was imported.
    I get an error message saying sender agreement not found. The as per OSS note 730870 I changed the sender agreement to use RFC function as sender interface, I cannot use this function module for my mapping, as it does not contain the response.
    Am I doing something wrong. Can somebody show me some direction.

    Hi Srinivas ,
    If you want to capture the response of an RFC execution in XI and then map this response to another structure(In ur case a JDBC structure) inside XI message mapping , then you will have to use the RFC reciever adapter of XI and NOT the RFC sender adapter.If you use the RFC sender adapter, it means that your SAP system is acting as an RFC CLIENT, what happens is the REQUEST structure in your RFC destination will be converted to RFC-XML by the RFC sender adapter of XI and is available for furthur processing.
    But then, If you want to send the RESPONSE structure of an RFC to XI , one way is to execute the RFC in SAP(without passing this thru XI), now you have to pass the result of this RFC execution to XI by assigning it to a request structure of another RFC in your ABAP code and pass it to XI using RFC sender adapter.
    If not , you can use a dummy RFC in SAP to send a trigger to XI , execute the actual RFC in XI using RFC reciever adapter , capture the response , map it to ur JDBC structure and you are done.
    May be you can give a try on these lines. As for the error , you can chk these threads and see if it helps
    com.sap.aii.af.ra.ms.api.DeliveryException
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio
    RFC Sender Adapter error " Call to messaging failed"
    Thanks
    Saravana

  • Abap Proxy to Send RFC  data  -- xi - File    ,   how to do - pls help  ?

    Hi Friends ,
                           Our scenario is once in day an  RFC is to be triggered and create flat file .That RFC will return data .
       Using  below likns i have configured the RFC Sender adapter
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    First Activate the ABAP Proxy?
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    How to implement a Client Proxy?
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    My question is
    <b>     1.    Is it possible to use ABAP Client proxy   to achive this ?
          2.   Then do we need to write RFC Call in side this proxy call ?
          3.      If we go for proxy do we need RFC Sender Adpater ?</b>
            I am little confused can you please explain , as how it works ?
    <b>       Is there is any other way to trigger RFC to send data ?</b>
    Regards.,
    Shyam

    Hi sabrish ,
                          Tahnks for ur reply. I was waiting for ur response . i have doubt
    the foloowing code i got from ur blog .
    REPORT Z_TEST_RFC_XI_WEBSERVICE.data: lv_distance type char10.CALL FUNCTION 'Z_WEBSERVICE_TEST_SHABZ' <b>destination 'Z_WEBSERVICE' </b> EXPORTING FROMZIP        = '12222' TOZIP          = '22222' IMPORTING  DISTANCE       = lv_distance.write : 'Distance is : ' , lv_distance.
      <b>           1. i have to generate proxy from Out bound interface right ? inside that proxy class whare i have to in clude the code to call rfc ?
                  2. Can u please tell what is the Destination in that report.  What is z_webservice ?</b>
                  3 . Do we need to use RFC Sender adapter ? It is not related to proxy right ?
    Regards.,
    Shyam
    null

Maybe you are looking for

  • Auto resize a pop up window

    Hi, I have a pop up window that appears when you click on a link. The problem that i am having is that when the user does not select anything from a drop down list or inserts any comments within the pop up window, the pop window displays error messag

  • How to fix Import and folder-synchronize?

    Installed Lightroom 4.2 RC. Now Import and folder synchronize hang up. Uninstalled 42. RC with same result. Removed and then reinstalled 4.1 with same problem. Please advise. [email protected] Message was edited by: SD Rowdies

  • IPhone 3g S Video to Computer

    Does anyone know if video captured on the new iPhone 3G S be transferred to a PC Computer to be edited and burned to a DVD? Also, would the quality be acceptable or no? Thank you, Eric

  • Link to internal server

    Hi, I have a server with APEX that you can contact trough the web, now I want to retrieve a file from another server that has contact with the APEX server but it cannot be accessed from the web. I've tried multiple times to use the internal link that

  • How do I close all browsers to install a program I downloaded? I didn't think I had any open, how do I check?

    Please can anyone help, I am a new MAC user and am trying to install a program I have downloaded but I get a message saying to "close all browsers". I wasn't aware I had anything else open, how do i find this out?