Skip to Content
author's profile photo Former Member
Former Member

convert the data from database table to xml file.

CALL TRANSFORMATION ('ID')

SOURCE output = itab[]

rESULT XML xml_out.

write:/ xml_out.

i used this code to transfer the data from database table into xml file.. the output is stored in xml_out.. but i wonder how to put the output in the xml file..

i mean, i need the output in this format in a file that has to be stored in a folder.

<?xml version="1.0" encoding="iso-8859-1" ?>

<CUSTOMERS>

<PERSON>

<customer_id>1</customer_id>

<first_name>Jan</first_name>

<last_name>Krohn</last_name>

</PERSON>

<PERSON>

<customer_id>2</customer_id>

<first_name>James</first_name>

<last_name>Kirk</last_name>

</PERSON>

</CUSTOMERS>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2009 at 12:13 PM

    refer this link

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.