Skip to Content
0
Former Member
Jan 06, 2009 at 09:50 AM

Regarding XML download on Application Server

87 Views

Hi ,

I have to create an XML file (which is generated from itab's data).

Now I have to download this file :

a) to Local System (i.e. from where i am executing the program)

b) to the Application server's specified path.

Now Download to Local system works perfectly fine and the file is generated with all proper data.

But When I save the same file on Application Server Using following code:

OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

LOOP AT ITAB_XML INTO REC.

TRANSFER REC TO FILENAME.

ENDLOOP.

CLOSE DATASET FILENAME.

, it does create a file but there is no data inside it. Instead it contains error message like :

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.

----


Switch from current encoding to specified encoding not supported. Error processing resource 'file://Msaperpdbd01/dev/Interf...

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

Can someone give me any hint on the solution?

Thanks in advance.

Tejas