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

Generating XML in the background

Former Member
0 Likes
661

Hello SAP Gurus,

I am trying to generate XML files on SAP 4.6. I able to generate the files in the foreground using GUI_DOWNLOAD function, but do not know how to do in the background.

I have tried searching some on the SDN network, but have no solution yet.

Can anyone help me.

Thanks you,

Reeta

Hello SAP Gurus,

I am trying to generate XML files on SAP 4.6. I able to generate the files in the foreground using GUI_DOWNLOAD function, but do not know how to do in the background.

I have tried searching some on the SDN network, but have no solution yet.

Can anyone help me.

Thanks you,

Reeta

3 REPLIES 3
Read only

Former Member
0 Likes
546

Check for OPEN DATASET and WRITE DATASET...you must keep in mind that if you generate the file in background you're going to need to store it in the SAP server.

Greetings,

Blag.

Read only

0 Likes
546

Hi Blag,

Thanks for your response. Using the OPEN DATASET and TRANSFER statements, I am now able to transfer data in the binary mode over to the Application Server. Dowloading the file from there to presentation server helps viewing the xml file.

Just like Pierre Martinez I am also getting the same error at the end of file , it says

" XML page cannot be displayed......

invalid character was found in text content. Error processing ....."

That is in 4.6 while running in both background and foreground but in 4.7 same process works just fine. I am not able to figure out a solution in 4.6.

Can anyone help.

Thanks,

Reeta

Read only

Former Member
0 Likes
546

Hi,

I am also in 4.6c and when I send the file to the Unix server via a open dataset in binary mode and do the transfer, the XML file gets to the Unix server but it is corrupted. In the last record,at the end of the record, it has invalid characters.

Did you figure out a way to send the XML file in the background successfully?

Thanks many.

P.S. When I send teh XML file using FM GUI_DOWNLOAD, the file is in prefect condition.