Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

ABAP trasformation and undefined XML structure

Former Member
0 Kudos

Hi everyone,

I'm developing a trasformation to deserialize an XML file into ABAP data. The problem is that the sequence of the tag into my XML files is not always the same.

e.g. the XML could be:



but also:



I developed the transformation using the <> tag and it works.

In this way I have to read all the xml tag, because if I use the <tt:skip> the program loose its "sequence-independent" attribute.

Someone knows how I could create a transformation for undefined XML tag sequence and at the same time skip the value I don't want to read?

Thank you


Former Member
0 Kudos


I worked on similar requirement.I converted internal table to XML by using FM

***Converting internal table to XML format


    SOURCE header = wa_header.

    RESULT XML xml_out.

XML_OUT is of type string.

I am replacing the text in XML_OUT by using Replace Statement.

    REPLACE '<SCHI>'        IN  xml_out WITH 'XYZZZZZZ'.

In your case also you can proceed in similar manner.You can also replace unwanted  thing by

replace <xxxxx> in xml_out with  '    ' .