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: 

How to Solve getting XML file on Application Server in Single Line

Former Member
0 Kudos

HI Experts ,

I have an Issue here,

The XML file on the Application server is in one continous line.

I need to get that in the same format as XML file.

Tried many posts in SDN,but didnt get correct answer.

5 REPLIES 5

Former Member
0 Kudos

Have U tried to split with separator CR-LF?

Use below code

SPLIT WA_LINE AT cl_abap_char_utilities=>cr_lf INTO: WA_LINE1 WA_LINE2.

Thanks and Regards,

Chandra

0 Kudos

HI Chandra...

Where should i use this clas?

0 Kudos

Read Appl server file data into internal table. There after you can split.

Thanks and Regards,

ThomasZloch
Active Contributor
0 Kudos

It still is an XML file and can be read by receiving systems, if structured properly. For "human readability" there are XML editors, even Internet Explorer will display it with nodes that can be exploded.

So why bother?

Thomas

Former Member
0 Kudos

Hi,

try LIST_TO_ASCII function module but with this u vl get output in ASCII and from here again u can change to XML format

Moderator message: please do not use SMS speak.

Edited by: Thomas Zloch on Nov 11, 2010 10:49 AM