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: 

sending data from final internal table to application server in xml format

Former Member
0 Kudos

hi to all ,

can anyone send details about send data from final internal table to application server in xml format.right now i am able to download data to presentation server in xml format . love to here soon from all the abap gigs.

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

welcome to SDN.

are you using call transformation to convert itab to XML? the XML string is in which format?

convert it to xstring and then use the following code to store it in application server.

OPEN DATASET fname FOR OUTPUT IN BINARY MODE.

TRANSFER XML_content TO FNAME.

CLOSE DATASET FNAME.

where fname is the path to the file name.

Regards

Raja

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos

welcome to SDN.

are you using call transformation to convert itab to XML? the XML string is in which format?

convert it to xstring and then use the following code to store it in application server.

OPEN DATASET fname FOR OUTPUT IN BINARY MODE.

TRANSFER XML_content TO FNAME.

CLOSE DATASET FNAME.

where fname is the path to the file name.

Regards

Raja

0 Kudos

thanks raja.i was able to send the data in internal to application server in xml format .but now the issue i am facing is reading the xml file present in application server into my internal table.there are two fields ie ebeln and ebelp.that i need to put in the internal table.if u could post a sample code in complete.that would be great.by the way i am able to read the xml file from the presentation server.if u could hurry that would be of great help .

thanks and regards

rohan