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

Problem in writing ITAB data into XML file.

Former Member
0 Likes
967

Hi Friends..

I used below example to read files from XML and write the files into XML.

http://www.heidoc.net/joomla/content/view/15/1/

while reading I can able to read the XML file into internal table, But when I tried to write the file into XML

I can able to transfer, but there is no data available in the generated XML file.

so anybody familiar with transformation concept kindly check with above link example and let me know the solution.

I want to implement same scenario in my project.

Thanks

Gowrishankar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
932

Hi Shankar,

try this FM..

SWF_ABAP_TO_XML..

Regards,

Vamshi

Hi Friends..

I used below example to read files from XML and write the files into XML.

http://www.heidoc.net/joomla/content/view/15/1/

while reading I can able to read the XML file into internal table, But when I tried to write the file into XML

I can able to transfer, but there is no data available in the generated XML file.

so anybody familiar with transformation concept kindly check with above link example and let me know the solution.

I want to implement same scenario in my project.

Thanks

Gowrishankar

6 REPLIES 6
Read only

Former Member
0 Likes
933

Hi Shankar,

try this FM..

SWF_ABAP_TO_XML..

Regards,

Vamshi

Read only

abapdeveloper20
Contributor
0 Likes
932
Read only

0 Likes
932

Hi Thanks for your updates,

But I got the same error, while pass the data from abap into XML.

error message,what I am getting is

-


The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

Invalid at the top level of the document. Error processing resource 'file:///C:/tempcustomers.xml'. Line 1, Position 1

#<?xml version="1.0" encoding="utf-16"?>

-


Thanks

Gowrishankar

Read only

Former Member
0 Likes
932

Hi,

Try the FM "WS_DOWNLOAD"

Regards,

Vijay

Read only

0 Likes
932

hi Vijay..

Its related with FTP, so we cant use ws_download here...

Thanks

Gowrishankar

Read only

Former Member
0 Likes
932

Issue solved closing this