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

need to have 'variable name' node in the converted XML data.

former_member300258
Participant
0 Likes
303

i am converting the abap data to xml using cl_xml_document. in the converted xml data, i need to have one more node. in the below example, i want a node <variable name="productionOrderDetails"> to come after the Data node.

?xml version="1.0"?>

<Data>

<item>

<DISPO>100</DISPO>

<PLNBEZ>F126</PLNBEZ>

<GAMNG>300.000</GAMNG>

<ERFMG>285.000</ERFMG>

<PRE_PROD>100.000</PRE_PROD>

<PRE_BLOG>0.000</PRE_BLOG>

<BLOG_MTD>144.000</BLOG_MTD>

<BAL_PLAN>144.000</BAL_PLAN>

</item>

</Data>

thanks in advance

1 REPLY 1
Read only

Former Member
0 Likes
270

Hi ,

you can use class IF_IXML_NODE, first you need to read (go thru ) XML then need to Insert a New Node.

ref SAP Program BCCIIXMLT1/BCCIIXMLT*

regards

Prabhu