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

Transform XML to ABAP

Former Member
0 Likes
417

Hi

I am creating a transformation program to retrieve values from XML elements (XML is returned as a string from a web service) into variables in my program. Previously I have used Simple Transformation for this (when return XML is similar each time), but in this case the XML elements can change their order and come 1 to n times for each call.

Is it possible to handle this with ST or do I have to use XSLT transformation for this?

Can anyone point me to a site where there are some examples where this has been done?

Thanks!

regards Ole Mugaas

Hi

I am creating a transformation program to retrieve values from XML elements (XML is returned as a string from a web service) into variables in my program. Previously I have used Simple Transformation for this (when return XML is similar each time), but in this case the XML elements can change their order and come 1 to n times for each call.

Is it possible to handle this with ST or do I have to use XSLT transformation for this?

Can anyone point me to a site where there are some examples where this has been done?

Thanks!

regards Ole Mugaas

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
328

Hi,

Please check these linksr

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d6dfa210-0a01-0010-fdb3-95bbf075...

/people/thomas.jung3/blog/2005/05/15/abap-46c-to-640-delta-training

/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach

aRs

Read only

Former Member
0 Likes
328

Hi,

the above links are very powerful. Especially, if you want to have a code dirsctly the link

/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach

is very good.

cheers

ajay