Skip to Content
0
Former Member
Aug 14, 2009 at 11:56 AM

convert the data from database table to xml file.

39 Views

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>