Application Development 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: 

Convert internal table to XML and store the XML in internal table?

Former Member
0 Kudos

Hey

I have an internal table which i need to convert to XML and then i need to store the xml in some internal table.

Is there any FM out there which i can use to convert my internal table to XML and then how would i store it in an internal table?

Any kind of help will be appreciated.

Thanks

Nahman

2 REPLIES 2

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

You can write code like similar...

DATA xml_string TYPE string.

DATA source1(10) TYPE c VALUE 'Field1'.

DATA source2(10) TYPE c VALUE 'Field2'.

CALL TRANSFORMATION ...

SOURCE root1 = source1

root2 = source2

RESULT XML xml_string.

For more help see

http://help.sap.com/saphelp_nw04/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/content.htm

Thanks,

Ramakrishna

alejandro_lpez
Contributor
0 Kudos

Hi,

Check these standard demo transactions:

SXSLTDEMO1

SSTDEMO1

SSTDEMO2

Here you can see an example how export data from ABAP to XML and XML data to ABAP.

regards,

Alejandro.