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

Convert Deep internal table to XML

Former Member
0 Likes
2,920

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?

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
2,205

<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>
...
Read only

isuru_fernando24
Explorer
2,205

Hi,

Check if my article on serialization using XSLT_TOOL would help.

Cheers!

Isuru