‎2007 Jan 18 7:20 AM
Hi,
I am using the function module GUI_DOWNLOAD in my program. When i run my program in foreground it runs fine but when i run it in background the job gets cancelled. When i comment out the call to the function module GUI_DOWNLOAD it runs fine even in background. Can we use this function only in foreground? If yes, is there any function module by which I can send the data to the notepad file while running it in background.
Thanks in Advance,
Rahul Rathi
‎2007 Jan 18 7:25 AM
as the name specify it is a GUI Fm..
so can not execute it in BAckground.it will give u control flush error.
u can not use FMs like Gui download n upload in background..
hope it clarifies
amit
‎2007 Jan 18 7:26 AM
GUI_UPLOAD and GUI_DOWNLOAD can only work in the foreground. The reason for this is that they use some code which reside on the frontend PC. A background process knows nothing of the PC connected thru SAPgui. In order to "download" data to files, you must write the files to the application layer using OPEN DATASET, TRANSFER DATASET, CLOSE DATASET.
Regards,
Santosh
‎2007 Jan 18 7:26 AM
Hi,
GUI_DOWNLOAD should execute fine either in foreground or in background.
Check if you are passing all the required parameters to this FM.
Filename and Filetype is more important.
Regards
Subramanian