Synchronous RFC Receiver inside of a Loop in BPM

Hi there,
we have a RFC -> XI scenario where a BPM needs to receive messages from a RFC inside of a loop, to bundle these messages, just like the first example here: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm</a>.
But the problem is that the RFC is set as synchronous (best effort), thus we need to use a receiver in "Open S/A Bridge" mode, but this mode is not available for receivers inside a loop.
Actually, we have managed to get the scenario working by creating another BPM which just receives the RFC messages in a S/A Bridge, sends the asynchronous message to the main BPM and sends a response back to RFC, closing the S/A bridge. But I think this solution is kind of "messy".
Is there any other cleaner way of doing it?
Thanks in advance,
Henrique.

Hi Henrique,
Read this page carefully:
http://help.sap.com/saphelp_nw04/helpdata/en/43/d92e428819da2ce10000000a1550b0/frameset.htm
"Do Not Transfer Application Logic
Do not use integration processes to transfer application logic from the application systems to the Integration Server.
No Replacement for Mass Interfaces
Check whether it would not be better to execute particular processing steps, for example, collecting messages, on the sender or receiver system."
I so recommend to rewrite the sending interface to collect the messages before sending.
Andother idea is sending the messages with an asynchronous call.
Regards
Stefan

Similar Messages

  • XI Scenario synchronous RFC (ABAP program) over XI to C program Receiver

    Hi experts,
    I have a synchronous RFC-Call between an SAP System (Sender) and an C-programm (Receiver). But now XI should become a part of this scenario. 
    Regarding this I have a few problems to include XI.
    1. SENDER:
    I have an abap application which calls a function module and send the data over synchronous RFC to XI. 
    e. g. call function 'FM_XYZ'  DESTINATION 'RFC_SENDER'
            exporting PARAMETERS
            importing PARAMETERS
            changing TABLES.
    Whis this part I have had no problems. But I have problems on my receiver side.
    2. RECEIVER:
    As receiver I have a server, where only a C-program starts a process and register the RFC Program on server side. The program is now waiting for requests. How can be called this C-Program on XI side.
    So could anybody help me. Thank you.
    Regards
    Mario

    Hi Ravi,
    thanks for your fast reply.
    In our current RFC Szenario (without XI)
    1. In SAP side we have configured a TCP/IP connection
    2. On C program side we start the C-program as follows:
    We start a File which contains  the name of c-program.exe RFC-Program-ID gateway. Then the RFC destination is registered on external Server side.
    By using the Testing connection feature on SAP RFC (SM59) the RFC-connection works fine.
    3. But now this scenario should be displaced by the XI scenario. Is it possible to use on receiver side a RFC-ADAPTER which calls an external RFC server.
    Regards
    Mario
    Message was edited by:
            Mario Bauer

  • Missed data JDBD Sender- RFC Receiver Scenario

    Hello,
    I simulated a JDBC synchronous scenario by developed a JDBC Sender-RFC Receiver Scenario to retrieve data from an Oracle Database and inside the RFC , ECC executed a Proxy-JDBC scenario to mark the retrieved items in the Oracle Database.
    Sometimes, in my productive system, some of the items retreived from de JDBC sender seems to be missed. In TA sxmb_moni i saw the message from the JDBC sender channel but the ECC don´t send the message from de proxy request inside the RFC, wich means that RFC doesn´t execute. And a time after without any kind of action, the complete scenario work fine.
    We found this trace log in the NWA stack :
    "Catching com.sap.aii.af.service.cpa.CPAException: Couldn't retrieve outbound binding for the given P/S/A values: "
    Thanks in advance.

    Hi Mariluz,
    Make a full CPACache refresh using the following url:
    http://XIhost:port/CPACache/refresh?mode=delta
    http://XIhost:port/CPACache/refresh?mode=full
    note: use PIDIRUSER for refreshing CPA CACHE for the above uri's
    Also Check the note #1057990 for more details
    there might be other reason that below services might abruptly stop check this also:
    - XPI Adapter: File
    - XPI Adapter: JDBC
    Regards,
    Naveen

  • RFC Receiver Adapter and RFC Destination -- Help

    Hi,
    I would like to configure the RFC Receiver Adapter for the invokation of a RFC on SAP System (Name: ALPHA) using a RFC destination provided by another system named BETA.
    I have set External Server as server type.
    My first question is: I have to quote an application server gateway and a gateway service. Is this information related to a service on ALPHA or BETA?
    My second question is:
    It is also necessary to provide a Programm-ID. The destination on BETA is a R/3 connection and doesn't have a programm id. Where do I get this from?
    And my last question is:
    Is at all possible to use the RFC destination on BETA?
    Any help is really appreciated...
    Kind regards,
    Heiko

    Hi Heiko,
    I don't fully understand your need but:)
    since both of your systems are SAP systems
    why are you trying to use external server?
    can't you just call RFC on BETA
    and inside this RFC on beta call RFC on ALPHA?
    in a sync or async way?
    can you tell a little more about your requirement ?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Synchronous RFC functions from XI

    Please confirm my observations. 
    I wanted to call a synchronously RFC Function i.e. Importing some data and Exporting some reply. 
    The XI message monitor shows that the RFC adapter handles this call asynchronously i.e. QOS of EO and not BE as I would have expected.
    Is this behaviour I observe correct and does this then imply that there is no way of calling RFC enabled Functions on SAP expecting anything back
    Thanks
    Andre

    Hi Vijaya,
    Here is the message seq from the monitor for a call to a synchronous Function module :
    Status     Successful
    Repeatable     No
    Cancelable     No
    Error Category     
    Error Code     
    Start     29.03.2006 11:51:47
    End     29.03.2006 11:51:47
    Sender Party     
    Sender Service     DXI_Client_400
    Receiver Party     
    Receiver Service     DR3_Client_100
    Interface     
    XML_Interface_With_RFC
    <b>Quality of Service     Exactly Once</b>
    Message     a2f1d6e0-bf09-11da-8b8a-000d6098578c
    Reference     
    Conversation ID     
    Direction     INBOUND
    Message Type     Recv
    Profile     XI
    Connection     AFW
    Transport     HTTP
    End Point     http://ntcdxi01:50100/MessagingSystem/receive/AFW/XI
    Authorization     
    Sequential Number     0
    Number of Retries     3
    Failed     0
    Retries     300000
    Valid to     
    Persist Until     28.04.2006 11:51:47
    Schedule Time     29.03.2006 11:51:47
    The Audit log also shows that the call was handled asynchronously -
    2006-03-29 11:51:47     Success     SOAP: request message entering the adapter
    2006-03-29 11:51:47     Success     SOAP: completed the processing
    2006-03-29 11:51:47     Success     The message was successfully received by the messaging system. Profile: XI URL: http://ntcdxi01:50100/MessagingSystem/receive/AFW/XI
    2006-03-29 11:51:47     Success     Using connection AFW. Trying to put the message into the receive queue.
    2006-03-29 11:51:47     Success     Message successfully put into the queue.
    2006-03-29 11:51:47     Success     The message was successfully retrieved from the receive queue.
    2006-03-29 11:51:47     Success     The message status set to DLNG.
    2006-03-29 11:51:47     Success     Delivering to channel: RFC_MethodCaller
    <b>2006-03-29 11:51:47     Success     RFC adapter received an asynchronous message. Attempting to send tRFC for Z_THE_METHOD with TID XIel7MuBy94TgBYW0DO9XNZ0</b>
    2006-03-29 11:51:47     Success     The message status set to DLVD.
    Any iead what I'm missing ?

  • How to configure RFC receiver adapter

    HI,
    I have a Proxy-to-RFC scenario. But I have no knowledge in RFC receiver adapter. Could you please provide me the step-by-step guideline or sample about how to configure RFC receiver adapter.
    Thanks in advance.
    Best regards, Johnney.

    Hi,
    Refer these links which will help you understand the concept and configure the Scenario.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    The specified item was not found.
    Refer this blog for synchronous scenario
    RFC Scenario using BPM --Starter Kit
    Sender RFC Adapter:
    The specified item was not found.
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    RFC -> file scenario: application stopped
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfctofile&cat=sdn_all
    RFC to file
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Send RFC to SAP XI – Asynchronous
    The specified item was not found.
    ABAP Proxies in XI(Client Proxy)
    Regards,
    Nithiyanandam

  • BPM synchronous RFC calls

    I have two messages, one coming from SOAP and second one from JDBC adapter. I want to map this two messages to Single BAPI call. How do I go about doing this using BPM.

    SSG,
    1. You will have a fork with 2 branches with 2 receiver steps. One for the SOAP request and the other the JDBC sender adapter.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/content.htm">Step Type - FORK</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm">Multiple Start Process Receiver Steps</a>
    2. Transformation Step -- N:1 mapping where the 2 source messages are mapped to the Single BAPI message.
    3. Send Synchronous Step -- You will be sending the BAPI request message and getting the Response message.
    You can use the <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC">File - RFC  - File</a> blog as a template to see how synchronous RFC calls are made and then , you can get the RFC response and do the needful as per requirements.
    Regards,
    Bhavesh

  • Asynchronous RFC vs synchronous RFC

    Hi Experts,
    Can you give me what are the differences between asynchronous RFC and synchronous RFC?
    thanks.
    Moderator message : Not enough re-search before posting. Thread locked.
    Edited by: Vinod Kumar on Jul 4, 2011 4:45 PM

    Gabriel,
    <b>synchronous</b>
    the sender sends a request message to the receiver and waits for a response message.
    for eg. consider a scenario.. where u have a customer no. and u need customer details.which is stored in R/3...so u can configure a HTTP to R/3 synchronous scenario... a http request will be sent to R/3 having a CUSTOMER NO....and in response u will get details of customer like...cust name,address, etc...
    <b>asynchronous</b>
    sender send a request message but doesn't wait for response.
    for eg consider a file to file scenario .where u need to pick a file from a source location to a destinartion location....so...it will asynchronous interface
    hope u r lil bit clear!!.
    Regards
    Biplab

  • RFC Receiver adpater Connection problem , Help us to solve ?

    Hi  Friends ,
                          Our scenarilo is Mail to RFC. It was running fine. In RFC Receiver adapter i have given <b>Maximium connection property to 1</b> .
                      While multiple set data passed to rfc will connection problem will come ?
                     Most data not uploaded . I am getting the following error.
                     <b>   If i set max connection to 5 . It is 5 times or more than that it is pusing the data .</b>
                    i am getting the following error <b>while i set the Max   connection to 1 .</b> . <b>Any other place i need to change configuration ?</b>
                   <i><b> - Error: 2007-09-24 10:51:22 GMT-05:30: Message processed for interface YRFC_EXT_WARR: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_EXTE_WAREN_2W_RFC_RECEIVER]e7fa21f86ec535e883636c0beffc0f0c is exhausted. The current pool size limit (max connections) is 1 connections.</b></i>
                            Please give the description . I have referred many likns . Help us to solve this problem .
    Regards.,
    V.Rangarajan<b></b>
    Message was edited by:
            ranga rajan

    Hi,
    Have a look at this.This will help you.
    1.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
    2. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar

  • Open and close visa inside a while loop

    Hi,
    I need to read a position from a control unit device continuously or even by click a button, for this I have to put "visa configure serial port" and" "visa close" inside a while loop. Dose it make any problem?

    You shouldn't need the VISA Event nodes.  Get rid of those.
    Why are you using Concatinate String just to build up a constant.  Just create a single string constant.  It is a lot cleaner.
    Is the antenna constantly sending data to you or only when you request it?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I vary a PWM´s duty cycle inside a while loop?

    Hi,
    I'm using the "Generate Pulse Train.vi" to generate pwm signals in counters 0 and 1 in order to drive a DC motor both ways.
    The problem is, I need to control the movement of the dc motor with my PI controller which is inside a while loop. I've tried letting the "generate pulse train.vi" outside the while loop, but the problem is, it only changes the value of the duty cycle when the loop is stopped. I also tried putting it inside the loop, but then it doesn't even work.
    So, how can I vary a PWM´s duty cycle inside a while loop?
    I'm attaching the VI with the PI controller.
    Thanks for your help!
    Guilherme
    Attachments:
    controleValvula.vi ‏332 KB

    Here's some code I threw together a while back to change a duty cycle on the fly. It generates a fixed 5KHz or 25KHz frequency depending on laser selection, then allows duty cycle to be changed continously. Maybe you can use the premise of it for your application.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Attachments:
    Pulse_Width_Modulator.llb ‏197 KB

  • Can we place Analog in Read(AI-RE​AD) Vi inside the while loop for high sample rate like 22ks/s?

    I am using E-series Card for data acquisition.My requirement is to sample the channel, and check the 10 samples for certain condition.both at a time.What should be done can we place the AI-READ vi inside for or while loop for this purpose?

    Hello,
    Yes, you can include the AI Read.vi inside the while loop, you would just need to specify the number of scans to read for every iteration of the loop. Then, after AI Read.vi has read the data, you can do what ever kind of manipulation of the data you would like, before the next iteration of the loop. The one thing to watch out for is what ever manipulation of the data you do, be sure that it doesn't take to long whereas the buffer holding the data starts to back up. That can be checked by looking at the scan backlog output of the AI Read.vi, which will tell you how many scans have been acquired but haven't been read into your program.
    Hope this helps!
    Regards,
    Steven B.
    Applications Engineering, NI

  • SubVi with feedback nodes used more than once inside a While Loop

    All,
    I have a subvi that does a set of operations and uses 3 feedback nodes. I am using this subvi inside a While Loop a total of 4 times. I've noticed that all instances used share the same result at each corresponding feedback node but I would like to have an individual result from each of them. Is there an easy way to go around this problem? I have come up with ways to avoid this: a) create a different vi for each time the subvi was used. b) use global variables instead of feedback nodes. Is there any easier way to go around this issue?
    ExamplePlease note that both subvi's are the same) If on my first subvi I calculate a maximum value and get 1.29 (then goes to feedback node) on my second subvi i get 1.01 my feedback node at the second subvi still registers the maximum value to be 1.29. (and I want it to be 1.01!)
    Hope this is not too confusing, I've been scratching my head with this for a while, can't find the "easy" button. Thanks in advance.
    -Pop
    Im using 9.0.
    Solved!
    Go to Solution.

    Attaching the code would be helpful. Anyway, I am not sure how multiple feedback nodes are supposed to operate so I will defer that to others to answer. As far as being able to use distinct values or instances if you are using a subVI you could mark it as reentrant. That way each call to it will behave as it it were a copy of the VI and it will have its own memory space. This should include the feedback node. You may be ending up with a single subVI and in reality a single feedback node. If you need to pass data between calls than simply wire the data through. You could also use an Action Engine to store and retrieve values. An AE is a MUCH better solution than a global variable.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Java.lang.NullPointerException in RFC Receiver Adapter

    Hi Experts,
    i have configured SQL Sender Adapter and this works fine, i can see the payload. and at the receiver adapter i have configured RFC Receiver Adapter this is throwing NullPointerException as mentioned below.. can someone help me out to fix this issue..
    Error Description:
    Error     Exception caught by adapter framework: null
    Success     MP: Processing local module localejbs/AF_Modules/RequestResponseBean
    Error     MP: Exception caught with cause java.lang.NullPointerException
    Error     Delivery of the message to the application using connection   
                    RFC_http://sap.com/xi/XI/System failed, due to:
                    com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.
    Success     The message status set to WAIT.
    Thanks,
    Srikanth

    Hi Srikanth,
    This error Occurs because of incomplete configuration in the reciever communication channel.Please check all the required configurations in the reciever communication channel and then activate the channel.
    Regards,
    Naveen

  • RFC Receiver Adapter Problem- Sending Blank XML Node

    Hi,
    I'm using the RFC receiver adapter to call a RFC in R/3 from XI 3.0
    In the payload XML one node is blank as I want to pass a blank parameter to the RFC. But in R/3 the blank node is getting converted to #
    Can anyone suggest how can I pass a blank node while calling the RFC using RFC receiver adapter in XI 3.0?
    Thanks in advance,
    Dipankar

    Hey
    Please check the outbound payload in sxmb_moni and RWB,if the field is blank there,then it means that PI is passing correct value to ECC.its possible that RFC has been coded in such a way that it converts blank spaces to #.Please look at RFC documentation in that case and see if it helps more.
    If the outbound payload itself in PI is showing as # instead of blank,then check the message mapping in PI.
    Thanx
    Aamir

Maybe you are looking for

  • Closing Unwanted Open Apps

    I wanna know what do i do to close open apps such as chat,watsapp..bucz i thought not being them means thewre closed. Buh wen i wanted to go on my mail it said to much opened apps, then it showed me all that was open an choose one. So i wanna know ho

  • Nikon d810 won't tether

    My Nikon D810 will not tether with lightroom. I've tried three different USB 3.0 Cords, Two different computers and reinstalling lightroom and have made sure its up to date 5.6 Help?

  • Alert Category - Runtime Work Bench

    Hi Experts, Can any please let me know how to logon to Runtime Workbench (RWB) to create an alert rule...as I'm new to Alert Management? Thanks in advance, Regards Vinod

  • Possible caching problem

    I have a Pag1.jsp with 2 buttons, a dropdown with a button, as well as a datatable with an action link. Everthing works fine; the buttons, action links and dropdown. The problem arises with the actionLink; on the remote jsp pages the user can hit a b

  • Servlets & images

    hi i'm using apache server my servlet class files r in /home/test102/servlet directory in the browser i give http://<ipadd>:8080/servlet/<filename> so whr do i store images and how to retrieve them and access in client side pls help me out