Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 07, 2010 at 02:34 PM

    Hello,

    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.

    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.

    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.

    Regards Otto

    Add comment
    10|10000 characters needed characters exceeded