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: 

To Eliminate line-break from XML file

Former Member
0 Kudos

Hi Experts,

I have developed an abap report to download data from SAP tables and then converting it in XML format store it on a remote location using FTP.

SAP logic is working fine. and files are getting downloaded to desired location but when try to open file,

following error is encounterd:-

"The XML page cannot be displayed

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

-


A name contained an invalid character. Error processing resource 'file:///C:/Documents and Settings/..

"

When opened the same file with notepad, I found a rectangular character after every 255 characters.

Assuming it is inserting a line break that is an invalid character, it is showing this error.

How can i rectify the same. ??

5 REPLIES 5

Former Member
0 Kudos

Such errors arise in converting file.

Are you downloading file using function GUI_DOWNLOAD ?

I you are in this case, you may define a table with a field type STRING. In this case, the lenght of each line can be the same. I suppose that your line is currently of 255.

Or are you using file transfer (transfer command).

In this case, you're in the same case of above and you can have variance when transferring file from a place to another.

I hope these clues can help you.

Christophe

Former Member
0 Kudos

***************************

I am using CALL TRANSFORMATION to convert the internal table data into XML string. Then I am using TRANSFER statement to write the XML string to the application server file.

There is no issue in downloading the XML file into application server. The issue occurs when we open a HUGE XML file. We are getting formatting errors like

In a textpad, single line, the maximum number of characters is 65559 (not sure..this is what I get) and because of this sometimes a LINE BREAK occurs on a TAG. This causes the issue.

Is there any way to download the data from the XML string with correct formatting?

Former Member
0 Kudos

Did you find the answer for this formatting issue?

Please give me a reply

0 Kudos

Hi,

This issue is still unresolved.

Regards,

Shreya

Former Member
0 Kudos

closing an unresolved issue !