‎2007 Feb 01 4:19 PM
Hi !
When i execute an Online program that use the function 'GUI_DOWNLOAD', then the program is running OK.
However When i execute the same program in background i get an unknown
error from the function 'GUI_DOWNLOAD' (return code 6 ) !
I wanted to know the reason for the error, and how to correct it ?
Thanks
Moshe
‎2007 Feb 01 4:21 PM
Hi Solman,
Any sort of communicatipn with the presentation server in background is not supported. GUI_DOWNLOAD is one such Function module which tries to communicate with the presentation server.
YOu can perhaps only download it to an application server and later move it to presentation server.
There is one work around for this, but its too tedious a solution, which works only on the system on which it is configured.
Regards,
ravi
‎2007 Feb 01 4:20 PM
Hi,
it is meant to be used for online (foreground) processing only.
regards,
madhu
‎2007 Feb 04 7:32 AM
Hi madhu !
First Thanks for your answer.
How then can i correct the error ? Is in a SAP other function that download a text
file in background mode ?
Thanks
moshe
‎2007 Feb 04 7:38 AM
Solman,
U can download your text file on the Application server using statements OPEN DATASET, TRANSFER etc. For more info you can get the help by pressing F1 on the above statements in ABAP editor. The application server files you can read using transaction AL11.
Thanks.
‎2007 Feb 01 4:21 PM
Hi Solman,
Any sort of communicatipn with the presentation server in background is not supported. GUI_DOWNLOAD is one such Function module which tries to communicate with the presentation server.
YOu can perhaps only download it to an application server and later move it to presentation server.
There is one work around for this, but its too tedious a solution, which works only on the system on which it is configured.
Regards,
ravi
‎2007 Feb 01 4:23 PM
Hi,
We can not use the GUI_DOWNLOAD function module in the Background, it won't support that process, so better to download the same file into Application server . you can download the file to Application server in the Background Mode
Regards
Sudheer
‎2007 Feb 01 4:25 PM
‎2007 Feb 04 7:35 AM
Hi Raymond !
First Thanks for your answer.
How then can i correct the error ? Is in a SAP other function that download a text
file in background mode ?
Thanks
moshe
‎2007 Feb 01 4:25 PM
Hi Solman,
The FM gui_download is used for foreground only.When any report is executed in the background, it runs in the Appliaction server and thus this FM will not work there.
Cheers.
Rewards points if found useful.