cancel
Showing results for 
Search instead for 
Did you mean: 

Loop through table in XI

Former Member
0 Kudos

Hi Guys,

I have scenario where i call a BAPI and get return parameter as a table. I want to loop through this table in XI/BPM. Can i get some help on how to loop thorugh table in XI?

Accepted Solutions (0)

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi,

you can for example use step "block" with mode "for each".

Regards,

Udo

Former Member
0 Kudos

Udo,

Can you eloborate more on Block and 'For each' mode since i am new to XI

bhavesh_kantilal
Active Contributor
0 Kudos

Hi yashpal,

Bloack Step in a BPM is used to process a sequence of steps repeatedly for different information.

The block step can be processed using FOR EACH and PAR FOR EACH. For each will process the info one after the other and PAR FOR EACH will do it in parallel.

For more info on the Block Step Type in particular and the BPM in XI , check these links,

http://help.sap.com/saphelp_nw04/helpdata/en/f6/e1283f2bbad036e10000000a114084/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm

Hope this helps,

Regards,

Bhavesh

udo_martens
Active Contributor
0 Kudos

Hi yashpal,

Your bapi table will come as XML to Integration Engine. Now you create one data type like a line of that table, create next a message type of that data type and then a abstract interface of that message type.

At your business process create a single line and a multiline containter of that abstr interface.

Create a block with mode "for each".

Reference the multi line element (the table) and the current line (the actual line of that table) and work with the current line.

http://help.sap.com/saphelp_nw04/helpdata/en/f6/e1283f2bbad036e10000000a114084/content.htm

Regards,

Udo

Former Member
0 Kudos

thanks Udo,

It really helped.

Homiar
Advisor
Advisor
0 Kudos

Hello Yashpal,

If the replies help, please consider rewarding.

Here is the link to the Contributor Recognition Program FAQ.

https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/e7b06b5c-0501-0010-3c80-f82a07c9838a [original link is broken]

Thx,

Homiar.

former_member185846
Active Participant
0 Kudos

Hi,

Check the following link

Hope it helps you.

Rgds,

Jothivel.