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

convert the data from database table to xml file.

Former Member
0 Likes
624

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>

3 REPLIES 3
Read only

Former Member
0 Likes
546

refer this link

Read only

0 Likes
546

thank u very much sir.. i would definitely work on it.

Read only

0 Likes
546

Use xml browser that is available with the ABAP workbench to read the xml string displayed with proper indentation.

can u please help me with this one..