2006 Nov 17 11:07 AM
Hi all,
When i ran the program in the background,the job has been canceled.
the report should download the records into the local file have checked in debug mode the job has canceled when it comes to GUI_DOWNLOAD,GUI_download will not work in background or not.
if i ran the program in foreground it will generate the file.
please help me.
thanks
sriman.
2006 Nov 17 11:12 AM
Hi,
GUI_DOWNLOAD FM is not supported in forground.
Better you use OPEN DATASET... and write the data in Application server.
Or if you are generating a List then it will create Spool when executed in Background. Which you can download later from SP01.
Reward points if this Helps.
Manish
2006 Nov 17 11:12 AM
Hi,
GUI_DOWNLOAD FM is not supported in forground.
Better you use OPEN DATASET... and write the data in Application server.
Or if you are generating a List then it will create Spool when executed in Background. Which you can download later from SP01.
Reward points if this Helps.
Manish
2006 Nov 17 11:13 AM
Hi Sriman,
GUI_UPLOAD and GUI_DOWNLOAD Function module doesnot run in the Background.
Regards
Sudheer
2006 Nov 17 11:18 AM
Hi Sriman,
The FM GUI_DOWNLAOD will not work in background mode, as it has to download to the local PC, but when run in background it is being run on the APP server and thus loses the link with the Desktop, so it does not know what desktop to download the file to and hits an error which is why the program will dump.
Better to use the open dataset commands if running in background as this will download the file to the server, where the code is being run, you can easily FTP the file back on to the desktop if need be.
2006 Nov 17 11:20 AM
Hi,
Please go through the following link for implementing download of a file in background. GUI_DOWNLOAD cannot be used for background process.
<a href="http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm">Download file during background process</a>
Regards,
Chetan.
PS: Reward points if this is helpful.