2019 Aug 05 11:36 AM
Hello Experts,
I have a requirement to convert a deep internal table (which is dynamically generated at runtime) to XML. I used the basic CALL TRANSFORMATION ID for this requirement, which gave me the output but not as expected. The table data got converted into an array with tags <item> </item>. I want to eliminate this tag , as this XML file will be used by the third system. How do I achieve this result?
Hello Experts,
I have a requirement to convert a deep internal table (which is dynamically generated at runtime) to XML. I used the basic CALL TRANSFORMATION ID for this requirement, which gave me the output but not as expected. The table data got converted into an array with tags <item> </item>. I want to eliminate this tag , as this XML file will be used by the third system. How do I achieve this result?
2019 Aug 05 3:38 PM
<item> is generated by the ABAP runtime environment when serializing an internal table (either the serialized variable itself or one of its components), for each row. To remove it, don't use an internal table (just a structure). Note that if there are several rows, you understand that XML requires that each row is identified by a tag.
To be clear, the so-called ASXML serialization of an internal table gives this kind of XML:
...
<TABLE>
<item> (elements and values describing the row 1) </item>
<item> (elements and values describing the row 2) </item>
...
</TABLE>
...
2019 Aug 05 8:28 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |