BPM response

Hi all,
I have a File to RFC scnario, My RFC return message's internal table contains 5 entries. How can i capture all the 5 entries from the RFC as a response
Is there a way?? Is it possible to capture multiple responses from a single RFC??
or we have to make changes in RFC??
Regards,

Hi
How can i capture all the 5 entries from the RFC as a response
You can capture the response using a Sync interface and creating the message type for response
With BPM
RFC Scenario using BPM --Starter Kit
Without BPM
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file(Without%2bBPM)
Is there a way?? Is it possible to capture multiple responses from a single RFC??
or we have to make changes in RFC??
Yes you can capture the response from RFC. If your RFC is not able to provide response then you need to make changes to RFC
Thanks
Gaurav

Similar Messages

  • Getting BPM response in a synchronous web service

    We have a synchronous web service - an EJB whose methods are exposed as web service
    methods. The EJB acts as a broker, and channels web service requests to the BPM.
    Each web service request (i.e. each EJB method) needs to interact with a few AppView
    services. We plan to use the BPM as an intermediate layer. Hence each EJB method
    needs to start a BPM workflow, wait for its completion (as the web service is
    synchronous) and get the output response XML to return to the web service client.
    In this scenario, we have questions in two major areas -
    1) How does the EJB get the response from the workflow? For e.g. If we use sendXMLToClient
    in the workflow, how is it received by this EJB? Alternatively, is it better to
    put all the response in workflow variables, and inspect it after the workflow
    completes i.e. after WorkflowInstance.waitForCompletion() ? What would happen
    in case of exceptions = where would they be caught?
    2) There are various simultaneous tasks in the workflow, and we want to merge
    the XML response of all of these. How is it best done?
    Note that all of these are dynamic and need to be done in code i.e. Human intervention
    through worklist / studio is not expected.
    Please advise.
    Regards,
    Milind Prabhu
    [mailto:[email protected]]

    You can try the message driven bean.
    It will slove your problem.
    and you can use the database to save your run time xml response.
    Good luck!
    "Milind Prabhu" <[email protected]> wrote in message
    news:3c55830c$[email protected]..
    >
    We have a synchronous web service - an EJB whose methods are exposed asweb service
    methods. The EJB acts as a broker, and channels web service requests tothe BPM.
    Each web service request (i.e. each EJB method) needs to interact with afew AppView
    services. We plan to use the BPM as an intermediate layer. Hence each EJBmethod
    needs to start a BPM workflow, wait for its completion (as the web serviceis
    synchronous) and get the output response XML to return to the web serviceclient.
    In this scenario, we have questions in two major areas -
    1) How does the EJB get the response from the workflow? For e.g. If we usesendXMLToClient
    in the workflow, how is it received by this EJB? Alternatively, is itbetter to
    put all the response in workflow variables, and inspect it after theworkflow
    completes i.e. after WorkflowInstance.waitForCompletion() ? What wouldhappen
    in case of exceptions = where would they be caught?
    2) There are various simultaneous tasks in the workflow, and we want tomerge
    the XML response of all of these. How is it best done?
    Note that all of these are dynamic and need to be done in code i.e. Humanintervention
    through worklist / studio is not expected.
    Please advise.
    Regards,
    Milind Prabhu
    [mailto:[email protected]]

  • PAPI -Dynamic Object is not retuning bpm response

    Hi ,
    I am trying to invoke bpm process form my struts application.For invoking bpm process iam using PAPI.While invoking the bpm process iam capturing the response throgh Dynamic Object.
    When i run my application for the first hit iam not getting the response.2nd hit onwards iam getting the response.
    Can u any body suggest me.
    Regards,
    Srinivas

    Properties configuration = new Properties();
              configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
              configuration
                        .setProperty(ProcessService.PROJECT_PATH,
                                  "C:\\Documents and Settings\\mm0c14214\\OracleBPMWorkspace\\GAT_PROCESS");
              try {
                   ProcessService processService = ProcessService
                             .create(configuration);
                   ProcessServiceSession session = processService.createSession(
                             crmForm.getUserId(), crmForm.getUserId(), "localhost");
                   Arguments a = Arguments.create();
                   a.putArgument("contactIdArg", crmForm.getContctId());
                   a.putArgument("jobIdArg", crmForm.getJobid());
                   a.putArgument("organizationIdArg", crmForm.getOrganizationId());
                   a.putArgument("requestTypeArg", crmForm.getRequestType());
                   InstanceInfo processinstance = session.processCreateInstance(
                             "/GATSERVICE", "BeginIn", a);
                   processinstance = session.activityExecute(processinstance
                             .getActivityId(), processinstance.getId(), a);
                   DynamicObject dynamicObject = session
                             .instanceGetData(processinstance);
                   ArrayList productIdList = (ArrayList) dynamicObject
                             .asDynamicObject().getField("pIDList").asList();
                   ArrayList productNameList = (ArrayList) dynamicObject
                             .asDynamicObject().getField("nameList").asList();
                   HashMap map = new HashMap();
                   for (int i = 0; i < productIdList.size(); i++) {
                        map.put(productIdList.get(i), productNameList.get(i));
                   HttpSession httpSession = request.getSession();
                   httpSession.setAttribute("list", map);
                   httpSession.setAttribute("processinstance", processinstance.getId());
                   httpSession.setAttribute("session", session);
                   session.close();
                   processService.close();
              } catch (Exception e) {
                   e.printStackTrace();
    Regards,
    Srinivas

  • When i run report in workspace error

    hi
    when i run the report in workspace i got the below error
    xml version =1.0 encoding utf 8? BPM response actiion error
    please send solution urgent
    Thanks
    ravi

    Hello Ravi,
    Try the following:
    Edit Adf.jsp file from\Hyperion\BIPlus\AppServer\InstalledApps\Tomcat\5.0.28\Workspace\webapps\workspace\modules\com\hyperion\tools\cds\repository\bpm\mode folder
    Open it in notepad and remove if there are any extra characters like "^m" and resave the file in UTF-8 encoding format.
    Thanks,
    BHANU

  • When i open report in workspace i got error

    hi
    when i run the report in workspace i got the below error
    xml version =1.0 encoding utf 8? BPM response actiion error
    please send solution urgent
    Thanks

    Hi,
    Try doing this:
    1. Close your NWDS
    2. navigate to <installation drive>:\Documents and Settings\<username>\SAP\workspace\.metadata
    Delete the .registry file.
    3. Open NWDS
    Regards,
    Murtuza

  • Triggering a BPM(NW) using sync interface and get the sync response

    Hi Folks,
    I have a scenario where in I have to trigger a BPM (NW) using a sync interface from a SOAP client by making request to get the response from SAP webservice . If the response from SAP is successful then its a happy path but if it fails or times out then there is an failure mapping to ECC using an IDOC. My question is to achieve the sync process how many synchronous interfaces do I need to use? Please let me know if my design works with 4 sync interface. One outbound sync interface at the source (i.e the request ing system), the other inbound sync interface to the BPM to trigger the BPM, another outbound sync interface within BPM for the request to SAP. the fourth inbound sync interface at the ECC for the response from ECC. Or please let me know if there is a better design option than this.
    Regards
    Kalyan.

    Hi,
    Control Step
    Use
    You use a control step () to do the following:
    ·        Terminate the current process
    ·        Trigger an exception
    ·        Trigger an alert for Alert Management (see also: Triggering an Alert)
    Activities
    Terminate the Current Process
    Choose Terminate Process.
    At runtime, the system terminates the current process instance, including all active steps, and sets the status for the process to logically deleted.
    Trigger an Exception
    Choose Trigger Exception and specify the triggering exception (see also: Exception Handling). The relevant exception handler must be defined in the same block or a superordinate block.
    The system triggers the specified exception at runtime.
    For more information about using exceptions, see Example: Collecting and Bundling Messages - One Interface.
    Proxy..
    How to create proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    How to Activate Proxy.
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Server Proxies (Inbound Proxy)
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    OutBound Proxy (Client Proxy)
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    File to R/3 via ABAP Proxy with good example
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    Debug your inbound ABAP Proxy implementation
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    Thanks,
    Satya Kumar

  • Problem in BPM where Sync Intrf has to send same response to 2 Async intrf

    Hi Experts,
           I am facing a complicated case.
           I have the following scenario:
    Input File data -> Validate file data against SAP table using RFC FM -> insert the response of RFC FM into custom table using another RFC call -> Send the same response of RFC validation FM as Email using email adapter.
    If you see above, the response of validation FM has to be sent to two receivers.
    My BPM setup is like this:
    Recv Step -> Send Step for validation RFC FM (Sync) -> Send Step for inserting response of validation RFC FM to custom table using another RFC call(Async) -> Send Step for sending email(Async)
    Is my above BPM design correct? the last send step is not able to get the response of validation RFC FM. If I put this email step immediately after Send Step for validation RFC FM (Sync) then I get receiver cannot be determined error even though may email adapter/channel setups are correct. However, my receiver determination has two receievers one for email and another for inserting response of validation RFC FM to custom table using another RFC call(Async). Is here some problem?
    Is there some better way to handle this situation.
    My problem is that I have to insert response data first and then send email.
    please help me!
    I will be greateful to you!
    Thanks
    Gopal

    Hi,
    How are you getting the Response back from First RFC call ?
    Are you mapping this RFC response to some structure ? If not , it is easier way to do.
    So your BPM will be
    1) Recieve the File message type
    2) Send the File Message Sync (Assumption Mapping is done outside the BPM
    3) Send the Target Structure (some structure of similar of RFC repsonse )ie. Mapped RFC response structure to SAP System
    4) Send to mail system.
    So you need to have 4 reciever determinations
    1) File to BPM
    2) BPM to First RFC
    3) BPM to second RFC
    4) BPM to Mailing system
    To check the error , you can go to SXMB_MONI->PE->Technical Workflow log and check what are steps/containers are correct in the BPM
    Hope this helps,
    Regards,
    Moorthy

  • Async system - XI BPM Sync - Web service - SOAP response

    Dear Experts:
    I have the following scenario:
    Async Proxy to XI to web service. I use BPM to make this a sync call to the web service. It works fine!
    I have a XSLT mapping for the response message from the web service. I use XSLT because the structure of the positive and fault responses are different. Anyway, I could get the positive response post ok back in the XI system.
    But the fault response does not get mapped and I get a APPLICATION_ERROR of category UNKNOWN in the SXMB_MONI. I also configured exception handling in the BPM. But it does not catch this error.
    Can anyone suggest how to handle the fault response from the web service?
    Thank you.

    I just had the same problem and solved it like this: I modified the WSDL slightly by removing the prefix from the reference to the element of the response message, as well as the "targetNamespace" in the xsd:schema segment of the WSDL. Like this, SAP is able to parse the response.
    Philippe

  • How to read fields from response message in send step in BPM

    Hi ,
    I have one  BPM scenario where I am using synchronous send step to insert data into database and to get response back from database as success or failure .My scenario involves inserting data into multiple tables and in multiple rows . If all the inserts are successful then I want to write success message  else I want the messaage as error . So can we read all the  SQL response and store it in container varibale and the have soem decision logic ?

    Hi,
    for everyinsertion, you will get a response
    <INSERT_COUNT> </INSERT_COUNT>
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    if the value ==1 , then insertions is sucessful, if value ==0, then insertion not succsful.
    So, in your mapping, just check if any of the values is 0 and if yes, then decide if you have to write a sucess message or a failure message.
    Regards,
    Bhavesh
    Regards,
    bhavesh

  • Webservice response in BPM scenario

    I am doing a BPM scenario where I take data from ERP asynchronously using proxy and send it as a request to a third party synchronous webservice. The webservice gives a response and I am using the response to send it further along to other systems.
    Everything works fine if correct messages are sent and received. The problem starts when PI/BPM receives an un-expected response from the webservice. If the webservice sends an unknown error message in the response, the mapping fails and goes into the error queue. (smq2)
    And the real problem is every successful message or response after that also goes into the same queue and getting stuck. Why is this happenning? Do we need to monitor and clear the error queues all the time so that subsequent successful messages go through BPM corrrectly?
    Do you guys think it is a cache problem or something else?
    Thank you.

    this is because there is no proper error handling in your BPM.
    you need to handle the exceptions in case of mapping or communication failures.
    refer : http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm

  • BPM - sync response

    Guys,
    In my BPM i have one sync rfc send.
    For example:
    BPM: async soap -> sync rfc -> async jdbc.
    Where can i to see the payload from sync rfc response?
    sxmb_moni - i dont found the payload.
    communication channel monitoring - i too dont found the payload.
    Then, where can i to see?

    hi,
    I think your file not reach the xi.
    If sender side you are using SOAP(HTTP protocal) you cant see the message in sender communication.
    It will directly put the file into integration engine.using TCP gateway you will get the file which you passed.
    Like bellow ,
      HTTP protocal-TCPgw--XIserver.
    *Reward Ponis If Helpful*
    Regards,
    Prakasu

  • Web service response processing inside a BPM

    Hi Experts,
    Please can you let me know if it is possible to achieve the following inside a BPM:
    u2022     Once you getting the web service  SOAP response, determine if itu2019s a SOAP fault or a normal web service response.
    u2022     If itu2019s a SOAP fault, create a retry loop with a wait step inside the BPM to try and retry the process (perhaps 5 times in 1 minute intervals).
    u2022     After the retry intervals, if the message is still in a failed step, force the BPM to go into an error state
    u2022     If the Web Service returns a normal response, log the response inside a database table and end the BPM
    If it is possible, please can you provide an example?
    Thank you,
    Brendon

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • Response in BPM

    Dear All
    I am doing a scenario where I am receiving an asynchronous message in BPM and sending it Synchronously to the external system A.
    When I get a response from the external system I have to check a condition in BPM and based on that either have to supress it or send it to another external system B.
    My BPM works like this
    Receive Step (Asynch)
    Send Step (Synch)
    Switch Step (with condition for the response message)
    1. Branch: Transformation step for response message
    2. Branch: No Step
    The problem is that the System B component is not called even if the condition in the switch step is satisfied. I checked PE graph in moni and I can see the request message coming till Send Step (Synch).
    Please guide
    Sourabh

    at least one of the branches in switch should be executed..
    if not then i think the switch step must not be reached..chk if the sync send precious to switch is workign fine and u are getting the response..
    also refresh SXI_Cache.....
    sometimes after there is a error in BPM u have to delete the erroneous process instance using SWWL else the next message will alaso take that erroneous process instaqnce

  • Problem accessing value of response message of synchronous call in BPM

    Hello,
    I've a problem with a synchronous sending step (in BPM) and a following container operation.
    In the message monitoring I can see the right response of the sending step. But the value of the container is empty.
    If I navigate from the container of the sending step to the message, I can also see the right message.
    But I can't access any elements in the message, they will be ignored.
    Here is the response message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <ns0:Envelope xmlns:ns0="http://xmlns.bp.com/UEHReply" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <ns0:Header>
      <ns0:Event businessDocRef="" component="VEST" domain="MyPoCVest" id="" objectPayloadRef="" timestamp="" />
      </ns0:Header>
    - <ns0:Body>
    - <ns0:ObjectPayload id="" version="">
    - <ns0:uehReply version="2.0">
    - <ns0:component type="BUSINESS">
      <ns0:name>VEST</ns0:name>
      <ns0:application>Vest</ns0:application>
      </ns0:component>
    - <ns0:exception id="0" type="">
      <ns0:triggerMsg format="" />
      </ns0:exception>
      <ns0:detail />
      <ns0:resolutionOption>WAIT</ns0:resolutionOption>
      <ns0:nextChoice>NONE</ns0:nextChoice>
      </ns0:uehReply>
      </ns0:ObjectPayload>
      </ns0:Body>
      </ns0:Envelope>
    And the XPath statement, to get the value:
    /p2:Envelope/p2:Body/p2:ObjectPayload/p2:uehReply/p2:resolutionOption
    Someone an idea?
    Cheers
    Daniel

    Hi ,
    I am facing similar problem , in case you have a resolution about the FAX number , then please let me know .
    Thanks,
    Abhishek
    ([email protected])

  • Is it possible to compose XML in BPM from responses of multiple BAPI calls?

    Hi guys!
    I want to send into BPM an XML document, which will be parsed and it will call some BAPIs more times. And I need to get response. Is it possible, to compose an XML document from these BAPI return codes to be sent back as response? Concretely I will use SOAP->XI->SAP and response SAP->XI->SOAP...  I will use it as asynchronous call..
    Thanx, Peter
    Message was edited by: Peter Jarsunek

    Hi Peter,
    It depends:
    - what kind of bapi is it? (does it have some sort of number?) like delivery number or something else?
    if not you'll have to add something
    so you can correlate your bapi with bapi response
    if you want to know which response corresponds to which bapi call
    but you can do it with a bapi wrapper
    >>>>Is it possible, to compose an XML document from these BAPI return codes to be sent back as response?
    you you can collect message in a BPM - standard pattern
    (but remember about the "correlation")
    Regards,
    michal

Maybe you are looking for

  • How to define target window when redirecting within frames using servlet?

    Howdy: Is there a way to define target window when redirecting within frames using servlets? How to do it in JSP as well? T.I.A. Oriental Spirit

  • Java Problem in Safari 5.0.3

    Safari 5.0.3 has a problem with Java applets. On the page http://www.cnlab.ch/speedtest/index.jsp?language=en is no Googlemap on the right site of the page. And I can not start the speedtest. I use Mac OS X 10.6.6 and Java 1.6.0_22. I already tried t

  • IPod Classic Does Not Show Up in iTunes...

    I have an iPod classic and a Macbook, and whenever I plug in my iPod it is not recognized in iTunes, in the Finder, or on the desktop. I have tried uninstalling and reinstalling iTunes, and that works - but only temporarily. Currently I am having to

  • External iSight not working on Powerbook G4

    Hi, I have had an external isight for awhile, however recently it has not been working. When I plug the camera into the firewire port the green light at the top lights up, then the camera makes a shuttering noise and then the light goes off. Twisting

  • How does replace work?

    I have an encoded string that I want to decode:             // input:   %3cFSParm%3e%3cHouseholdSize%3e03%3c%2fHouseholdSize%3e             var locDecodeParm:String = decodeURI(locationParm);             //  output:<FSParm><HouseholdSize>03<%2fHouseh