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

Creating XML file from ABAP internal table data....

Former Member
0 Likes
1,821

Hello,

I am fethcing data froma custom table and I have to write data in XMl format. Following is the XML format in which I want data. Is there any function module iN SAP which will help me in writing data from internal table to XML file ?

<batch>
  <invoice>
    <StatusCode>10</StatusCode>
    <paymentamount>122.00</paymentamount>
     <ReferenceNumber>70980934</ReferenceNumber>
  </invoice>
  <invoice>
     <StatusCode>90</StatusCode>
    <paymentamount>122.00</paymentamount>
     <ReferenceNumber>70980934</ReferenceNumber>
  </invoice>
  <control>
    <InvoiceCount>2</InvoiceCount>
  </control>
</batch>

Please help.

Regards,

Jainam.

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
638

I suggest you look into "simple transformations". That's SAP's most recent technology for such purposes, as far as I know.

http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm

Thomas

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
638

Check

SAP_CONVERT_TO_XML_FORMAT

Check link:[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2dcbdfc-0801-0010-97bd-b3f39420759c]

Read only

0 Likes
638

When I try to test it, I get message, 'Error generating Test frame'.

Regards,

Jainam.

Read only

ThomasZloch
Active Contributor
0 Likes
639

I suggest you look into "simple transformations". That's SAP's most recent technology for such purposes, as far as I know.

http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm

Thomas