‎2006 Dec 29 7:16 AM
HI,
I have data in a xml string now i need to get this data in some structure in my abap program so do i need to create the transformation for that in transaction STRANS?
Is there a way to generate autonmatic transformation.
Please advise.
Many Thanks.
Albert
‎2006 Dec 29 7:25 AM
hi,
There is good documentation and example code at:
http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm.
hope it helps
regards,
pankaj singh
‎2006 Dec 29 8:47 AM
‎2006 Dec 29 8:58 AM
If your xml string comprises of a only a single strcuture, you can try the ST itself. For example I have a work area named W_DATA and the same is read into the lv_xml_data_string variable. This is the transformation I use
* Calling the transformation to send xml data to internal tables/work area
CALL TRANSFORMATION id
SOURCE XML lv_xml_data_string
RESULT w_data = <fs_warea>.
This example will explain you more,
Regards
Kathirvel