Skip to Content
author's profile photo Former Member
Former Member

To Eliminate line-break from XML file

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. ??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 03:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 08:29 PM

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

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 08:30 PM

    Did you find the answer for this formatting issue?

    Please give me a reply

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 04:44 AM

    closing an unresolved issue !

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.