10-11-2006 9:53 PM
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
10-11-2006 10:09 PM
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
10-11-2006 10:58 PM
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.