Skip to Content

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

issue in Creation of XML file from ABAP data

Hi,

I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.

The required format is

-<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>

- <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>

<Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>

<Header4 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>

<Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>

</Header2>

</Header1>

Iu2019m using the call transformation to convert ABAP data to XML file.

So please anybody can help how to define XML structure in transaction XSLT_TOOL.

And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.

Please help me in this to get it resolved.

Former Member
Not what you were looking for? View more on this topic or Ask a question