Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Manipulating XML

Hi all,

I have to create in a transaction an XML variable with multiple occurrencies of an element.

I mean

<xml>

<record>

<el1>el1</el1>

<el2>el2</el2>

</record>

<record>

<el1>el1</el1>

<el2>el2</el2>

</record>

</xml>

What is the best way to do it? With a simple xml, without multiple occurrencies, I created an xml variable with the XML structure and used XPath, in the assignment action, to populate it. What about multiple occurrencies of an element (like 'record' in my example)?

Thank you

replied

Append or append after xml in the links editor. fiddle with it using tracers till you get the desired output.

Regards,

Christian

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question