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: 

How to edit the XML string

sachin_s_panchal
Explorer
0 Kudos

Hi Experts,

I have an XML file (converted from adobe pdf), and I have to update few fields.

I have used below code,

CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = l_XML_RAW
TABLES
xml_table = g_t_xml_info
return = g_t_return.

LOOP at g_t_xml_info ...

*update the fields from internal table

ENDLOOP

CALL TRANSFORMATION (`ID`)
SOURCE tab = g_t_xml_info[]
RESULT XML xml_out.

But the xml_out is not the same format as the original XML string, It has tags as HIER, TYPE, CNAME, CVALUE(fields of g_t_xml_info) which was not there in original XML string.

How can I get the same format after updating the XML, Please let me know.

Regards,

Sachin

1 REPLY 1

horst_keller
Product and Topic Expert
Product and Topic Expert