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

open dataset

Former Member
0 Likes
672

Hello,

I use open dataset to download an xml file on a server, but when I open it with an text editor tool I get only one line, with the internet explorer I get the xml layout.

When I open an original xml file I get the layout of the xml also in the text editor tool.

what is the issue therefore?

6 REPLIES 6
Read only

Former Member
0 Likes
648

I use simple transformation to generate the xml data file.

Is this wrong that I get only one line the text editor?

Read only

Former Member
0 Likes
648

Most probably it has to do with the whole document being on one line due to lack of valid endline characters under Windows.

Anyway, if you want to view/edit a XML file, the best way is a XML viewer/editor.

Read only

0 Likes
648

I think this is not a windows problem, anyway when I open an original xml file in the text editor I see the xml layout, but when I open my xml file which I have created with simple transformation I get all the values in one line.

How can I solve this?

Read only

0 Likes
648

search the forum on Line feed , XML applicationserver page breaker and CL_ABAP_CHAR_UTILITIES=>CR_LF

Read only

0 Likes
648

Hi,

While uploading the each line Data to the Application server from the internal table concatenate the CL_ABAP_CHAR_UTILITIES=>CR_LF char.

LOOP AT ITAB INTo WA.

CONCATENATE WA CL_ABAP_CHAR_UTILITIES=>CR_LF char INTO String.

TRANSFER string to P_file.

ENDLOOP.

Read only

0 Likes
648

I don't have an internal table, my xml is one string which I download with open dataset and transfer, but how can I state at the transfer statement that the donloading file has the structure of a xml?