Collect Messages using BPM

Hi all,
        Am doing a collect message pattern using BPM. After collecting messages wen mapping is called its throwing exception. CAn you help me out in this. I ll explain.
the input i give is :
<Root>
       <Name> asd </name>
       <ID> A </ID>
</Root>
i sent thid message 5 times to BPM (using collect pattern).
the stop message is of the format
<Stop>
   <ID> A</ID>
</Stop>
wen i send this the collect block is exited and the flow comes  to a transformation step which does a n:1 mapping
ie. in my mapping i add the source message type and changed its occurence to unbounded in messages Similarly in IM also i changed the occurence of source MI to unbounded. wen i test the message mapping with this
<Root>
       <Name> asd </name>
       <ID> A </ID>
</Root>
as input it gives the exception. But if i gve like this ten its showing successful.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
<Root>
       <Name> asd </name>
       <ID> A </ID>
</Root>
</ns0:Message1>
</ns0:Messages>
But how can wedo that as transforamtion happens in BPM. PLease help me out in this

Hi,
Check these links
/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
http://help.sap.com/saphelp_nw2004s/helpdata/en/76/5d373f5e550456e10000000a114084/frameset.htm
Regards,
Kumar

Similar Messages

  • Collect messages in BPM

    Hi experts,
    Need to create one scenario to collect payload of XML files, I have done this work in Design and Configuration :
    data types : test_collect
    Message Types : test_collect
    Message Interfaces :  Test_collect_1 (abs asy),  Test_collect_2 (abs asy)
    I need to collect Test_collect_1 and pass it to Test_collect_2
    Message Mapping : Test_collect_1 - Test_collect_1
    Interface Mapping :  Test_colect_1 - Test_collect_2
    Integration Process is created as example in Standard Process in SAP BASIS
    --> http://sap.com/xi/XI/System/Patters --> BpmPatternCollectPayload
    Need to created more mappings or not.
    How I will created proper Configuration Steps,
    mean no. of Sender Agreements, receiver agreements, Receiver Determinations and Interface Determinations etc.
    Regards,
    Study SAP

    hi study sap,
    check the below blogs to have a cleat understanding
    Check these
    BPM:
    Walkthrough with BPM - Walk through BPM
    BPM in XI https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/integrationProcess%28ccBPM%29inXI&
    BPM-1 Walkthrough with BPM
    BPM-2 Reconciliation of Messages in BPM
    BPM-3 RFC Scenario using BPM --Starter Kit
    BPM-4 The specified item was not found.
    Schedule BPM Schedule Your BPM
    Use of Synch - Asynch bridge in ccBPM Demonstrating Use of Synchronous-Asynchronous Bridge to Integrate Synchronous and Asynchronous systems using ccBPM in SAP Xi
    Use of Synch - Asynch bridge in ccBPM https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    without BPM Sync/Async scenarios without BPM
    without BPM1 Sync/Async communication in JMS adapter without BPM (SP19)
    IDOC BPM IDOCs (Multiple Types) Collection in BPM
    multimapping without BPM /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible---- Multi Map With out BPM
    Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI. Various multi-mappings and
    Optimizing their Implementation in Integration Processes (BPM) in XI.
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure --- Illustration of Multi-Mapping
    and Message Split using BPM in SAP Exchange Infrastructure
    IDOCs (Multiple Types) Collection in BPM (N:1 Mapping )
    regards
    kummari

  • Xpath in the collect message of BPM

    Hi,
    I created a BPM collect message. My source message has a field which is in the format of XXXX-NN such that XXXX can be any 4 letters and NN is a number 01 - 99. In the loop of the BPM, I made use of an Xpath command in the condition editor for the loop condition. The command is /header/segment1/segment2[(substring(field1,6,2))] for the left hand operand and comparing it as not equal to a counter variable.
    When I look at my graphical workflow log, there is an error in the Transformation step. In SXMB_MONI, I have a red flag with an error of "Message has error status on outbd. side" in the process view of SXMB_MONI.
    If I change the Xpath command to /header/segment1/segment2/field1 and change the value of my field to just use NN without changing anything else, my BPM is working properly. Is there something wrong with the added Xpath command? I followed the blog in /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination but I wonder if this only works for Receiver Determination. Please help.
    Regards,
    Elbert

    Hi Elbert,
    the expression
    means a condition and requires a
    =
    For example:
    [//person/name[../no='123'] code]
    means: select element person/name where person/no "123" is.
    Because of unclear results regarding the namespace i wouldnt put the full path. Use for example [code]substring(//segment2/field,6,2)
    The substring expression is ok, i m shure.
    <b>substring(X-Path on String value, No of letter in string, length of searched substring)</b>
    If the string is not long enough, it might give you strange errors, he, he. Cant cut 1m of 20 cm salami.
    Regards,
    Udo

  • Collect Messages with BPM

    Hi everybody,
    I need to know if it is possible to develop a integration process to collect messages without using correlation, until now I only developed that scenarios using correlation, but I have a special case that is not necessary identify a key to make a relation among the messages
    Thanks in advance.
    Ivan
    Edited by: Jose Iván Reyes Arteaga on Dec 3, 2008 10:42 PM

    If you do not need any key field for correlation, then you can go for dummy correlation in BPM.
    In the expression editor (properties column of the Correlation editor), select the "Constant" radio button and give some dummy name.
    For more explanation, refer Siva Maranani's post in the thread:
    /message/426236#426236 [original link is broken]
    Thanks,
    Geetha

  • Splitting Message using BPM

    hi,
    I am not able to see the split in BPM when using SWITCH.
    Scenario: IDOC->XI->Multiple Receivers with error handling using BPM
    In BPM SWITCH i have 2 steps.
    1st branch step has Transformation0, Receiver Determination0 and Send0
    2nd branch step has Transformation1, Receiver Determination1 and Send1
    Receivers will be differnt. Container elements have 2 receivers for Receiver0 and Receiver1
    When the IDOC is triggered i can see only one message in SXMB_MONI.
    I don't see any failure steps in SXMB_MONI_BPE.
    In the ID, i have 2 receivers configured.
    Why aren't the messages being processed?
    Thanks,
    Tirumal

    Hi Tirumal,
    Switch is condtional step. It is not for Split. It is like If-Else condition. If you want to split the messages in the same time, then go for Fork step.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/db283fd0ca8443e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/14/d5283fd0ca8443e10000000a114084/frameset.htm
    Hope this helps,
    regards,
    Moorthy

  • Collect Operation using BPM and

    Hi Experts,
    I have a scenario where Proxy to file communication happens.
    1.i have to collect all the data in XI that has sent from proxy ( Sender System ) via BPM and send to file system only after every 15 mins.
    2. For the same scenarion without using BPM.
    i have to append ( in the file construction Mode ) the data in the file for 15 mins only.ould you
    Kindly help me with these two questions with step by step procedure. Thanks in advance.
    Regards,
    Ruban.S

    Hi,
    In ESR you could go to SAP BASIS -> SAP BASIS 7.xx -> Integration Processes -> BpmPatternCollectTime. It contains the pattern/steps that you would need.
    Not sure if there is a good way of doing this without bpm.
    Regards,
    Mark

  • Split message using BPM

    Hi Experts
    I am getting the request through HTTP which i want to split using BPM and send each splitted message to synchronous step and get the response for each splitted message
    I have gone through the following blog
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    I am able to split the message into multiple messages but unable to send each splitted message to synchronous step and get the response.
    I am getting " NO Receiver Found" error.
    How to send each splitted message to synchronous step and get the response.
    Please suggest.
    Regards
    Sowmya

    Hi Sowmya,
    I referred to the same blog and the scenario was a success. Please note that in this scenario
    "Receiver Determination plays a key role.
    Three Receiver Determinations are required. One for the Sender to BPM and two others for BPM to the corresponding output files.
    In the Interface Determination for the two Receivers, specify the corresponding Interfaces."
    You are just a few steps from success.
    Rgds
    joel

  • How to collect records using BPM

    Hi All,
    i have a req that i need to collect records in chunks and want collect using BPM want make their single file.
    i have 10 fields in one table for that i have made one datatype ,i want to collect 1lac recods 5 times in BPM and want make a single file and send it to one file.
    please suggest what are the steps are req in BPM to do this.

    Hi Gangadhar,
    Check this links
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm (for one interface)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm (for multiple interfaces)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
    Regards
    Ramesh

  • Splitting of messages using BPM

    Hi
    Suppose we have a source Data structure with 3 nodes: Customer details, Site details and MPRN Details. Now I want to split the data into 3 data structures
    ( Customer Details, Site details and MPRN Details)  and want to send them to 3 individual systems. Basically I am using BPM to do this. But I heared that even we can implement this scenario without BPM. Could you plz confirm me whether it is possible to do this scenario without BPM ?? If so and if you have any blogs or links known plz do send me the same.
    Thanks
    Kumar

    About Multi-mapping:
    After the split using multi-mapping, the generated messages are sent using Adapter Engine. Thats why only those adapters could be supported which resides on adapter engine. Therefore, IDOC/HTTP adapters at inbound side is not supported
    About the sender and receiver agreements:
    The choice of sender agreement depends upon which information from the adapter configuration in the sender channel is required for successful inbound processing.
    It is not obligatory for all adapters.
    Receiver agreement is always required bcoz it is the responsiblity of the receiver channel to transform the XI compatible message to receiver compatible message.
    Regards,
    Prateek

  • XI3.0 BPM collect message using substring within correlation

    Hi,
    I have a requirement to collect a list of IDOCS using the first three characters of a field as a correlation.  I tried adding the XPATH expression
    substring(/ArticlePriceData/ArticlePrice/Site, 1, 3)
    within the correlation editor but this does not work - all IDOCS get added to a single process.  Has anybody been able to get this to work?  My integration process is based on the SAP example BpmPatternCollectMessage
    Many thanks
    Ian

    Hi,
    I have tried your suggestion and I still do not get the correlation value that I expect - now each message gets a new process ID with a correlation value of blank.
    Thanks for your help
    Ian

  • Processing of multiple messages Using BPM

    Hello everybody,
    I am pretty much a newbie to this XI technology. I am currently testing a File to File scenario Concerning BPM. The source file contains multiple messages in an XML structure. How can each of these XML messages be posted as individual files? I have reffered to this <a href="/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi on BPM as a guideline; but here the number of messages are restricted and I want to dynamically determine how many messages are contained in the XML file. Anybody has any idea how to achieve this?
    Thanks and Warm Regards,

    Hello,
    The blog you mentioned is for cutting one file into 2 files.
    I think you need to use the "<b>ParForEach</b>" step in the BPM. This step is used to loop on a multiple line message and create a single message in one branch. Then you can add a send step in this branch and end only one message.
    <u>See the Flight Demo :</u>
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/cede3fc6c6ec06e10000000a1550b0/frameset.htm
    <u>Object in IR :</u>
    BASIS -> http://sap.com/xi/XI/Demo/Agency -> BPM -> MultipleFlightBookingCoordination
    Regards,
    Chris

  • Collecting Messages in BPM

    I am trying to recreate and understand the BPMPatternCollectPayload. What I don't understand is We have a interface mapping in which we tryiing to append all the message into one inetrafce. so we create a one to one mapping between both the interface. The only difference is one is o to unbounded and the other one is just 1. Now how do I change the occurance in the interface mapping or in the message mapping given that both have the same data type. Please help.

    in teh message mapping
    under Messages tab u change the occurance to 0..unbounded
    similarly in interface mapping under Design tab where u select the Message interface u change the occurance to 0...unboundd

  • Doubts in validating message using BPM

    1)Have to check the response message has not been sent twice for the same id,
    if wrong stop processing the message further.
    2)Have to check the values coming in message is valid or not by comparing the values with R/3 table.
    3) When sending Email alert, some of the values of the invalid message also has to be send with alert.
    4) Have to check the details sent back and sent are same.
    eg: if i send vendorid and some more values for which inturn they sent back are same
    or not.
    5) I have configured deadline branch there I have given the alert category, description.
    I have configured only one recipient for the alert. so if delay in response am getting the mail in particular id.
    So when i send message to particular system its fine.
    But in my scenario, one system connected to more than four system.
    When i send message to morethan two system how to send email alert to particular
    system where delay to send response.
    Can anyone guide me how can i approach these validations.
    Thanks in advance,
    Sakthi

    Hi,
    1)Have to check the response message has not been sent twice for the same id,
    if wrong stop processing the message further.
    --> If you have a synchronous call you EVER have just one reponse message. So in SYNC this should not be necessary. In ASYNC mode you don't have a response, so this is also not neccessary
    2)Have to check the values coming in message is valid or not by comparing the values with R/3 table.
    >>>You need a RFC in R/3 that gives you table records. In this case see, if a RFC is already available; otherwise you have to develop the RFC
    3) When sending Email alert, some of the values of the invalid message also has to be send with alert.
    >>> Design a sender step and send the interface which caused the error. The message will be attached.
    4) Have to check the details sent back and sent are same.
    eg: if i send vendorid and some more values for which inturn they sent back are same
    or not.
    >>> I would suggest that you inspect the samples delieverd by SAP. In Integration Repository goto SWC SAP BASIS. There are samples.
    5) I have configured deadline branch there I have given the alert category, description.
    I have configured only one recipient for the alert. so if delay in response am getting the mail in particular id.
    So when i send message to particular system its fine.
    But in my scenario, one system connected to more than four system.
    When i send message to morethan two system how to send email alert to particular
    system where delay to send response.
    Regards Mario
    null

  • BPM collect message

    Hi All,
    I am doing a scenario for collecting messages using BPM, the objective was i need to collect the input messages and to be stored, when the message reaches 10, then it should deliver all these 10 messages to the target.
    for this, i have designed bpm with the
    1. Receiver Step
    2. Container Operation
    3. Transformation and Send.
    but i am getting the following error while activating
    Exptession must not return an multiline value
    Expression must return the interface type MI_OUT_A
    Expression must return the interface type MI_IN_A
    Container element var1 in step Receive1 is initialized but is not used.
    Here var1 is the abstract interface
    the datatype& message type  was DT_A and MT_A and the interfaces are MI_OUT_A and MI_IN_A.
    could anyone clarify regarding this issue..
    regards,
    Sai

    Hi,
    Check some links on BPM.
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    Regards,
    Phani
    Reward points if Helpful

  • Corelating messages using the Dynamic Values

    Hi all,
    I want to collect message using BPM.I have sucessfully executed the same using corelation from one of the fields.The ID field was used for corelation
    I was able to sucessfully execute the senario the messages with same ID were going to same process ID and getting collected as well
    Now i wanted to have some dynamicconfiguration parameters for eg i thought i can use the filename.That is collate the messages using the filename.
    I changed the corleation and tried but for each messages even with the same file name its creating a different process ID and thus my messages are not collected at all.
    To tel you more about the senario i created its a file to file with BPM collecting the messages. i send the first file and then the second file also with the same file name.
    I have configured the AdapterSpecific Attributes and able to view the filenames in the XML Messages header
    Can anyone put some light as too why there are different Process IDs being created.I heard in some of the forums that its an error in some of the SPs
    I am on XI 7.0 SP11 and think it should not be a problem.
    Thanks in Advance
    Rgds
    Aditya

    thnks for ure replies
    But all of the above steps are checked
    It seems that i have given the right co-relation as well but still dnt knw y i'm not able to collect the messages
    The loop is defined to complete after a fixed count and the container variable increments by 1 after each loop
    The senario works perfectly if i use any field corelation to collect the messages but fails when i use a dynamic value like filename. And yes i have double checked the filename they are same
    Rgds
    Aditya

Maybe you are looking for