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

convert internal table data into xml

Former Member
0 Likes
476

Hi All,

   my requirement is to convert the internal table data into xml formatt.

   but iam unable to pass the node vlaue .please suggest me.

my requirement:

- -<Header>

- -<From>

- -<Credential domain="VendorId">

<Identity>229350</Identity>

</Credential>

</From>

how can we move the node value with in <> and ends with  </Credential> only.

<Credential domain="VendorId">

</Credential>

iam using this method

 

CLEAR : fs_output.
fs_output =
'Domain="VendorId"'.
CALL METHOD lr_xmldoc->create_simple_element_ns
EXPORTING
name =
'Credential'
parent = from_node
* PREFIX = 'Domain'

my output is

-<HEADER> 

- -<FROM>

- -<Credential>

Domain="VendorId"

<IDENTITY>0000246055</IDENTITY>

</Credential>

</From>

please help me how to pass the domian (credential) value with in <> and close with </credential>.

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
443

try out this one as well

http://scn.sap.com/thread/108582