cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop over nodes of xml-schema

Former Member
0 Kudos

Hi experts,

I have a BP where I get a xml (internal SAP table) in a step. In the next step I want to loop over the items of the xml in order to transform and send every single position.

My questions:

1. What to write in the expession editor, so that the number of loops depends on the number of items (nodes).

2. What to write in transformation step (or container operation), so that only the actual node (depending on the loop counter) is processed.

Best regards

Mathias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In my opinion it is better to create transformation step with mapping 1 to many. It is much easier.

Regards,

Wojciech

Former Member
0 Kudos

Hi,

I have to send every single node/element/row.

E.g., if the xml has 6 nodes, so the loop has to work 6 times. Using the loop index (?), only one node has to send!

Mathias

Former Member
0 Kudos

Hi,

Your bpm should look like that:

INPUT->TRANSFORMATION(single message to multiline message)->LOOP OVER multiline message and send one by one

here is tutorial:

http://help.sap.com/saphelp_nw04/helpdata/en/69/4ad13fa69a4921e10000000a1550b0/content.htm

Regards,

Wojciech

Answers (0)