cancel
Showing results for 
Search instead for 
Did you mean: 

call a BAPI n-times and collect the response in one message

0 Kudos

Hi,

in my project I have a structure like this:

<DOCUMENT>

<ITEM>

<SD_NO>111</SD_NO>

</ITEM>

<ITEM>

<SD_NO>222</SD_NO>

</ITEM>

<ITEM>

<SD_NO>333</SD_NO>

</ITEM>

...

</DOCUMENT>

Now I have to call for each SD_NO a BAPI and collect the result of all BAPI calls in one message.

How can I loop over ITEM, call for every SD_NO the BAPI and collect the responses in one message?

Thanks a lot in advance!

Stefan

Accepted Solutions (0)

Answers (2)

Answers (2)

prabhu_s2
Active Contributor
0 Kudos

u need to use BPM. have split mapping and using block parforeach step u can call the bpm using a send step and map the response and process further as per ur req

Former Member
0 Kudos

Hello stefan,

I think u should go for the BPM collect pattern where in the loop after receiving u r source structure call the BAPI synchonously . Get the reply from BAPI , use the Append step to append all the replies from the BAPI into the list .

Regards,

Keith.