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

Simple transformation

Former Member
0 Likes
549

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

3 REPLIES 3
Read only

Former Member
0 Likes
513

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

Read only

Former Member
0 Likes
513

You can use standard transformation 'ID'.

Read only

Former Member
0 Likes
513

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,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80...

Regards

Kathirvel