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

After Creating XML from ABAP code

bastinvinoth
Contributor
0 Likes
387

Hi all,

I have generated XML file from abap code.

here the problem is

if the particular field is empty, for example plant is empty means,

its not giving the <PLANT> (empty value i want) </PLANT> .

but i need that field also in my XML output.

like this <PLANT> </PLANT>

how to bring that field empty ,  if the field is empty in internal table.??

Regards,

Bastin.G

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
352

Hello,

what is the code that are you using for the <PLANT> tag?

Regards

2 REPLIES 2
Read only

Former Member
0 Likes
353

Hello,

what is the code that are you using for the <PLANT> tag?

Regards

Read only

0 Likes
352

hi i got answer.

before that i have used

CALL METHOD l_xml->create_with_data( dataobject = cust_data ).

now i used

CALL METHOD l_xml->set_data

     EXPORTING

       dataobject = cust_data

       control    = lv_dcxmlsercl.

now its working fine,,issue closed.