Polling with RFC Sender Adapter

Hi,
i am facing a general problem with the rfc sender adapter.
I have to design a scenario where periodically pi has to call a rfc fuba/bapi in R3 and insert the response into a database or create a file.
I looked for some possibilities to impelement this scenario and desided to use ABAP Proxies to transfer the data from R3 to pi.
The problem is that the wish of the department for R3 is not to plan a job to send the files. They want that pi itself call periodically the fuba in R3. I found out that the rfc sender adapter is not able to poll like jdbc oder file adapter.
I thought i could write a litte abap program in pi to be planned in a job or to create a dummy file and poll with the file adapter. But i mean that these solutions are not good. They feel like workarounds and not like a real good solution.
Beside this there is also the problem that we could use the inubit integration system. inubit is able to poll periodically the rfc adapter and is it hard to argument against this.
Are there any good solutions known for the problem?
Does anyone know what the official SAP meaning is for a process like the described above?
many thanks
Michael Eckstein
Edited by: Michael Eckstein on Dec 16, 2011 12:55 PM

hi,
1st: your R3 department is stupid (!).
As your flow is ECC -> PI -> Database. you could easily create a litle extraction program with a selection screen (and a variant which could be easily updated !!) (1) to send data to PI (by using a proxy or an idoc), with a log (at end of your program) and to create easily (!!) a sap job (ecc) based  on a country calendar (2).
2nd: If you really need to have "PI -> ECC (proxy)-> PI -> JDBC", you have to use the standard PI scheduler tool, called "Availibility time planning" (ATP). see this option in CC monitoring (RWB). you could trigger your sender CC (proxy)
And if you want, another possibility could be to trigger your sender CC by an external tools (to buy), or by creating an abap program....
(1) how you will pass the value to extract data with your solution (my 2nd point).
(2) in ATP of PI, the scheduling will be NOT based on a country calendar (holiday, religious/bank holiday), but just daily, weekly, inside a range, etc...
Mickael
Edited by: Mickael Huchet on Dec 16, 2011 12:53 PM

Similar Messages

  • Help with RFC sender, Program And RFC Destination

    Hi!!
    my scenary is asynchronous
         RFC Sender -> SAP-XI -> Oracle reciever
    I have a problem with abap, especially rfc, program and rfc destination. The connection with SAP-XI exist and SAP-XI  receive the message but the message is empty.
    1. In my program on the line
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error system_failure = 2 and it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC
    2. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' STARTING NEW TASK 'NEW' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error communication_failure = 1 but the rfc ZBAPI_SD_PED_ORD_SERVIC is executed but no send to SAP-XI
    3. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' IN BACKGROUND TASK DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              No error but it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC and the message in SAP-XI is empty, display the tables but not the row. i check the table PED_ORDEN and RETURN but the controls fields dont are afected.
    What is my Error?
    Where am i making a mistake?
    RFC
    FUNCTION zbapi_sd_ped_ord_servic.
    *"Interfase local
    *"  TABLES
    *"      PED_ORDEN STRUCTURE  ZSD_RFC_T04
    *"      RETURN STRUCTURE  ZSD_RFC_R06
      TABLES: zsd_ped_orden, zsd_rfc_r01.
      DATA: tb_ped_orden LIKE zsd_ped_orden  OCCURS 0 WITH HEADER LINE,
                     tb_rfc_orden_error LIKE zsd_rfc_r01 OCCURS 0 WITH HEADER LINE.
    *Get Pedido by Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_ped_orden
              FROM zsd_ped_orden
              WHERE estatus  EQ  space.
      LOOP AT tb_ped_orden.
        MOVE-CORRESPONDING tb_ped_orden TO ped_orden.
        APPEND ped_orden.
        tb_ped_orden-estatus = 'X'.
        tb_ped_orden-fecha_actualiz = sy-datum.
        tb_ped_orden-hora_actualiz = sy-uzeit.
        MODIFY tb_ped_orden.
      ENDLOOP. 
      MODIFY  zsd_ped_orden FROM TABLE tb_ped_orden.
      COMMIT WORK.
    *Errors in Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_rfc_orden_error
              FROM zsd_rfc_r01
              WHERE estatus  EQ  space.
      LOOP AT tb_rfc_orden_error.
        MOVE-CORRESPONDING tb_rfc_orden_error TO return.
        APPEND  return.
        tb_rfc_orden_error-estatus = 'X'.
        tb_rfc_orden_error-fecha_actualiz = sy-datum.
        tb_rfc_orden_error-hora_actualiz = sy-uzeit.
        MODIFY tb_rfc_orden_error.
      ENDLOOP.
      MODIFY  zsd_rfc_r01 FROM TABLE tb_rfc_orden_error.
      COMMIT WORK.
    ENDFUNCTION.
    PROGRAM
    REPORT  ZBAPI_SD_PED_ORD_SERVIC.
    DATA: ped_orden LIKE ZSD_RFC_T04 OCCURS 0 WITH HEADER LINE,
          return LIKE ZSD_RFC_R06 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
         TABLES
              ped_orden             = ped_orden
              return                = return
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF sy-subrc <> 0.
      MESSAGE 'error' type 'I'.
    ENDIF.
    COMMIT WORK.
    RFC DESTINATION
    RFC Destination: ZXI_ENVIAR_PED_ORD_SERVIC
    Connection TYpe: TCP/IP Connection
    Register Server Program: ZBAPI_SD_PED_ORD_SERVIC
    Gateway host: host00
    Gateway service: sapgw00

    hi
    For rfc sender adapter we hv to do some settings .Please chk whether this settings are well configured or not.
    a) RFC destination
    b) RFC channel in the XI directory
    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)
    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
    And we're done:)
    Now you can test the RFC destination in SM59 to see if it works.
    Please chk this following link.
    1. RFC Processing with the RFC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    2. Configuring the Sender RFC Adapter -
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    3.  /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    regards
    Manas

  • Call rfc sender adapter from non-sap systems

    Hi,
    is ist possible to connect to an rfc sender adapter from non-sap systems? I want to use the the RFC-Connector from http://rfcconnector.com, but in the client connect options there is no way to specify the program id.
    Best regards,
    Daniel

    hi,
    you don't need to use RFC type T (with program ID) - you can use whole connection string - just like in the example:
    http://www.rfcconnector.com/documentation/examples/client/#functioncall
    so just specify: host system number etc.
    it should work like that - but let me know as I don't know this RFC connector
    Regards,
    Michal Krawczyk

  • How to send data to RFC Destination(RFC SENDER Adapter)

    Hi ,
    Scenario:  R/3 Backendà RFC Sender Adapterà XIàsome other system.
    I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
    Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
    Thanks and Regards,
    Siva Maranani

    I have one query for you that
    I am trying to develop a scenario in SAP XI
    SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
    I am able to send the data/message and it is successfully received at the third party web application.
    But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
    Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
    Regards
    Gopesh

  • Problem in receiving messages via RFC Sender Adapter

    Hi,
    I have problems in receiving messages from SAP backens systems. Sometimes we are getting all messages sometimes not. Strange.
    We are transfering report-results via asynchronous RFC calls. To avoid big message sizes we split them up in max. 1000 rows blocks.
    Each RFC call on backend side is completed with COMMIT WORK!
    We increased the number of connections in the RFC sender adapter. Then it was better, but the problem still exists! Not so often, but sometimes !?!?!
    I hope everybody can help me. Thanks a lot!
    best regards,
    Hannes

    hi,
    when you don't receive messages what do you see in SM58
    on the r3?
    any errors over there?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • RFC sender adapter not running

    Hi there,
    I have following scenario: R3 -(rfc)-> XI -(ftp)-> LEGACY.
    In R3, i created a RFC DESTINATION (type T) : with Program_ID & GW options (hostname= R3 hostname & service= sapgwXX where XX means sys number). This RFC currently works!!
    In the RFC sender adapter, i used the same program ID and the same hostname and service mentioned above.
    If i execute SMGW + GoTo->Logged clients, i can see my program ID there but if i click on it, the register status is WAITING!!!!!
    Besides, if i execute the program, no information is transmitted to XI via RFC so i cannot see any error message.
    Do i have to do anything else??? Maybe i am missing something...
    Could you please help?
    best regards,
    david

    Hi,
    In sender RFC :
    Configuration takes place using a RFC adapter communication channel and TCode SM59 (Create rfc connections).
    - All systems that send an RFC via RFC Adapter require an RFC connection to the respective RFC Adapter(inbound). Metadata is gathered in the same way. Register the program id of the RFC adapter in SM59. The rfc destination must be of type "T" tcp/ip.
    - You cannot send IDocs using this rfc connection. you must send IDocs to the RFC destination of the IDOC Adapter.
    Also check out that Program id is case sensitive.
    in the functiion check out for the COMMIT WORK at the end of LUW.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Doubts in RFC sender Adapter

    Hi XI Gurus,
    Can any body plz explain me about the parameters used in RFC Sender Adapter (like RFC Server Parameters: Program ID, Gateway, etc..)
    Thanks in advance.

    Hi,
    Refer this link there they have given everything clearly
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/frameset.htm
    Application Server (Gateway) : host name of the sender system.
    Application Server Service (Gateway):  Gateway service of the sender system. This can be the numeric description of the service port in the sender system or the alphanumeric equivalent (for example, sapgwXX, where XX is the system number of the sender system).
    Program ID: Program ID of the registered server program. The selected program ID must uniquely describe the RFC sender channel in the configured gateway (Application Server (Gateway) and Application Server Service (Gateway) parameters).
    For Program id: In sender R/3 system Tcode SM59
    1.Create RFC Destination with connection type: T
    2.Choose Registered server program
    3.Give program id(you can give any name here, the program id you give in sender RFC adapter and here should be same )
    4. Give Gateway host and Gateway value.
    You can also check this blog
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Regards,
    Sakthi

  • Errors in RFC sender Adapter

    Hi Guys,
    I am configuring a RFC sender Adapter in a newly installed system.
    I configured the adapter as per the parematers given in SAP help in the exact way and started getting the error
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '*', fromService 'RD1CLNT020', toParty '', toService '', interface 'Z_TEST', NS 'urn:sap-com:document:sap:rfc:functions' for channel 'RD1CLNT020_IN' (channelId 897afca12ee93b86a5bfcd738c037099)
    If I go into SXI_CACHE of the PI system I can see the entry.
    My gut feeling is that the adapter is not fetching the metadata properely.
    Because I switched the metadata loging from the ECC system to PI system and I got the error
    JCO.Server could not find server function 'Z_TEST'
    I think in the basis setup we have missed something The version on which we are working is the Latest PI 7.1
    If somebody has a document at the the config for JCO or a solution for this problem will be much appreciated.
    Thanks & Regards
    Gagan Kasana

    Hi,
    there is no magic with this error - it's a common one
    1. my blog - RFC sedenr adapter config -
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    then is still does not work:
    2.check out OSS note  730870 - FAQ RFC Adapter
    "Question 19:
    While sending a RFC call to the RFC Adapter I get a error message like "com.sap.aii.af.rfc.afcommunication.RfcAFWException: lookup of binding via CPA-cache failed..." or "com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed...". What is missing?"
    and you have it working
    please let me know if this helped
    Regards,
    Michal Krawczyk

  • What function name to use when calling an XI RFC Sender adapter?

    Hello experts, I need some help please...
    We are trying to setup an RFC Sender adapter in XI 3.0 for the first time.  We followed Michal's <a href="/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step on how to setup the RFC destination in the sender system (ECC 5.0 in our case) and the corresponding communication channel in XI.  We can make a connection from ECC to XI via the destination, but we are getting an error in the communication channel monitor stating that the JCO.Server could not find the server function '<i>message interface name</i>'.   We have tried to use the message interface name, the message type name and the data type name, but all return the same error.  What function name should we be using and how does this name get registered with the JCO server?
    Message was edited by:
            Matt Austin

    hi
    Have you registered the pragram id properly in sender system ?
    Steps to that
    1. first create RFC sender adapter in XI and give any name as program id Give Gateway host n gateway service of appilcation system
    2. activate it properly
    3. program get regiostered on app system
    4. go to application system and create RFC destinationn there give the same program id name
    now it should work
    regards
    Sheetal

  • RFC Sender Adapter - tRFC

    Hi -
    Does the XI RFC Sender Adapter (R/3 -> XI) support tRFC?
    For example, in R/3 I'll be calling the RFC Async using 'IN BACKGROUND TASK'.
    I believe it does based on the information in the following thread:
    Problem with Scenario tRFC -> XI -> File
    Can someone please confirm that they have this working.
    Thanks,
    Jesse

    Hi Jesse,
    Also check this Blog
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    In R/3, when u create connections of type Logical & TCP
    The gateway host/ service have to be your R/3's,
    and the same to be given in the RFC sender adapter
    Regards
    Vishnu

  • RFC sender adapter doesn't reconnect after a R/3 down

    Hi everybody,
    We are in PI 7.0.
    The RFC sender adapter doesn't reconnect automaticaly after a shutdown/restart of the R/3 system.
    Theoritically, the system should retry after 2, 4 .... 3600 seconds  but it doesn't do.
    Is there anybody who have an idea ?
    Thank in advance.
    Best regards.
    Eric.

    After the restart of R/3 system , when I look in SM59, I receive the answer that the program is not registered ( RFC sender adapter) .
    As I told in my previous post, since the RFC adapter has lost the connection, the RFC destination is not registered. Just try to stop/start the channel and reactivate. the destination should work fine then.
    I read in documentation that is done automatically but that is not the case.
    Thats right. but it doesn't happen usually. probably u can ask SAP to explan this with an OSS

  • Rfc Destination problem in RFC Sender Adapter

    Hi experts
    I created a Rfc destination type TCP/IP for Rfc Sender adapter.
    while creating i passed following parameter:
    1) I selected Activation Type option-> Registered Server  
    2)Given a Program id , same as i given in Rfc sender Adapter config.   
    3)Gateway option:
       i) Gateway Host:Server IP address where i created  Rfc.
      ii) Gateway Service:sapgw00
    After making these entry, i m unable to receive message at XI end (I am executing Rfc at R/3 site due to Rfc sender)

    Hi
    please check for the following things.
    1. check the RFC destination using the connection test tab in the R/3 system.
    2. check whether the program id that u have given is registered or not.
    to check the program id go to the transaction SMGW, in the menu select Goto-->LoggedonClients
    check for ur program id name in the table.
    3. when you configure the RFC sender adapter in XI then you have to give the same program id name that you will give while creating the RFC destination in the R/3 system.
    if u still face the problem please reply me back.
    Thanks
    Rinku

  • 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 Sender Adapter - Java Mapping

    Hello
    i want to make a call from R3 -> XI via the RFC Sender Adapter, process the R3 Call inside a Java Mapping and return to results to R3 (synchronous RFC call)
    how do i setup Interface and Message mappings and the corresponding sender and receiver agreements?
    regards franz

    i've got some java services from a sap business connector application
    these java services where called from R3 -> SAP/BC, BC did some proecessing and filled return parameters (synchronous RFC call from R3 -> SAP BC)
    I now have to convert these SAP BC Services to XI Services because SAP BC won't be supported any more
    any ideas how to do do this?

  • Problems in RFC Sender adapter

    Hello
    I am having a scenario where I am sending the message through RFC sender. The message is getting posted on integration server but its giving error in SXMB_MONI.
    The error says
    "HTTP response contains status code 503 with the description Service Unavailable XML element Envelope missing in SOAP message header (SAP XI Extension)" in call adapter.
    I checked some notes mentioning about poll parameter of sap af messaging in visual admin but still the problem is same.
    Thanks in advance.
    Regards
    Rajeev

    Udo,
    I checked the file adapter but the status is green which says "No message processing till now" and also it is not listed in Message monitoring.
    Also as described in note mentioned by shekhar I tried to change the Visual Admin poll interval. also i tried that URL which gave "Messaing servlet is active"
      <?xml version="1.0" encoding="UTF-8" ?>
    - <scenario>
      <scenname>MSG_SCEN</scenname>
      <scentype>SERV</scentype>
      <sceninst>MSG_001</sceninst>
      <scenversion>001</scenversion>
    - <component>
      <compname>SERVLET</compname>
      <compdesc>Messaging System</compdesc>
      <comphost>localhost</comphost>
      <compinst>MSG_001</compinst>
    - <message>
      <messalert>OKAY</messalert>
      <messseverity>100</messseverity>
      <messarea>QR</messarea>
      <messnumber>801</messnumber>
      <messparameter>na</messparameter>
      <messtext>MessagingServlet is active.</messtext>
      </message>
      </component>
      </scenario>

Maybe you are looking for