‎2006 Dec 08 9:50 AM
Hi All,
Is there any function module in ABAP to generate an xml structure?
I want to generate an xml output in a string for the input structure (internal table)
Thanks
Ricky
‎2006 Dec 09 7:23 AM
Hello Ricky
To transform ABAP to XML you can use the simple transformation, e.g.:
DATA:
gt_itab TYPE TABLE OF knb1,
gd_xml TYPE string.
* Select data into gt_itab
CALL TRANSFORMATION id_ident
SOURCE abap = gt_itab
RESULT XML gd_xml.You could place this coding into a function module having an IMPORTING parameter of type TABLE (generic table type). However, this generic type will not work for a RFC-enable function module.
Regards
Uwe
‎2006 Dec 09 12:51 PM