Application Development 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: 

JSON TO XML conversion code in SAP-ABAP

sudip_samal3
Discoverer
0 Kudos


Hi,

I am working on online service forms. I will be receiving data from the forms in JSON format and convert it to XML format to proceed further. I don't want to create structures for each forms to do so.Can a generalised code be created irrespective of the fields in the online forms to generate the XML data.

Please help me out with any sample code you have.

Regards,

Sudip.

1 REPLY 1

jack_graus2
Active Contributor
0 Kudos

Hi

Have a look at CL_SOAP_XML_PARSER=>GET_FORMATTED_DATA

It's input is a XML string and the output is table with XML tags, their values and hierarchy level.

Regards Jack