Skip to Content
0
Former Member
Jul 02, 2009 at 04:23 AM

Need help on converting a single line message type to multiline message typ

25 Views

All,

I need some help in designing this scenario. I do not have the luxury to write a custom BAPI. Here is my scenario. A typical async >sync >async with little modification

1. Async call to BPM with input payload

2. BPM calla BAPI_SALESORDER_GETLIST with customer number and sales organization from input payload and returns a list sales order items (Sync)

3. I need to call the BAPI_SALESORDER_GETSTATUS for each sales order number that I got from the first call (Sync?). Not sure how this has to be designed

4. Transfer the data through HTTP adapter (Async)

I am able to perform step 1, 2 and 4 (of course only line item data). I need some pointer help on how to incorporate it in step 3 of BPM.

Can I use a block with foreach and call the BAPI_SALESORDER_GETSTATUS after the first sync call to GETLIST BAPI ? but I am struggling to convert the response from first BAPI call BAPI_SALESORDER_GETLIST which is a single line message type to multiline message type. In fact all I need is the list of sales order number from the first call and loop through it and call the status BAPI. How do I loop through the response and collect the order number into a container? Is this possible?

Need some help badly!

Thanks