2007 Dec 27 9:09 AM
Hello,
I am trying to upload data from the Presentation Server to the SAP System using the FM 'GUI_UPLOAD'. But the program that calls this is to run in the background, so it fails in this case, therefore could you kindly suggest me an alternative for this FM or any other method!
Quick Reply Much Appreciated
Points will be rewarded for correct answers.
Regards,
Bharath
2007 Dec 27 9:16 AM
Hello,
I am trying to upload data from the Presentation Server to the SAP System using the FM 'GUI_UPLOAD'. But the program that calls this is to run in the background, so it fails in this case, therefore could you kindly suggest me an alternative for this FM or any other method!
Quick Reply Much Appreciated
Points will be rewarded for correct answers.
Regards,
Bharath
2007 Dec 27 9:16 AM
2007 Dec 27 9:32 AM
Hello Kiran,
I do not think OPEN DATASET works for files in the Presentation Server(let alone background).
What all the suggestion have said is to upload the file first to Application Server and then read the data from there.
So I need a method to read the data from the Presentation Server in the Background.
2007 Dec 27 9:36 AM
Hi,
Use transaction CG3Y TO download data from application server to internal table.
Thanks
2007 Dec 27 9:36 AM
Hello Bharath,
Let me first explain to you the concept. When u call the program in background mode then the program is getting executed on the server and the connection to your presentation server/desktop is not available so the program doesn't understand where to dump the file or on which presentation server the file needs to be downloaded. When u are executing the program in foreground then the connection to the desktop is avaialble and the program even though running on the server can still download the file. So coming to you problem either u have to use GUI_DOWNLOAD with foreground execution or if you need to execute it in background you have to use OPEN dataset.
2007 Dec 27 9:44 AM
2007 Dec 27 9:45 AM
Hi,
pass on the file path as constant value.
and assign the extension to it what ever your requirement is.
Regards,
Vikas.
2007 Dec 27 9:49 AM
Hi,
Check this article
It gives a sample code to access text file on presentation server in background mode.
Regards
Sailaja.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |