2009 Jun 12 4:57 PM
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
2009 Jun 12 5:01 PM
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.
2009 Jun 17 4:02 PM
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
2009 Jun 16 5:17 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |