2007 Mar 13 11:23 AM
hi all,
the program ZTEST is used for downloading a txt file into 😧 using GUI_DOWNLOAD. this program works fine but when I schedule this porgam in background jobs in tcode SM36 using "job wizard", i am getting errors as Exception condition "CONTROL_FLUSH_ERROR" raised and the error analysis is as
'A RAISE statement in the program "SAPLSFES " raised the exception condition "CONTROL_FLUSH_ERROR".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.'
How to rectify this error???
points will be rewrded
thanks in advance
2007 Mar 13 11:27 AM
Hi,
You cannot run a program in background if it uses GUI_UPLOAD or GUI_DOWNLOAD.
You have to download the data to application server instead.
Then you can use the transaction CG3Z/ CG3Y to trasnfer the file from the application server to presentation server later.
Regards,
Ravi
2007 Mar 13 11:34 AM
GUI_DOWNLOAD is a FM that is designed to download files by interation with the PC directories (only possible in foreground). If the file download is the requirement the u can use application server files for it.
But if you are insisting on notepad and excel documents, then you have to use CLIP and EXECUTE function modules. Refer to Class CL_GUI_FRONTEND_SERVICES that has all the required methods
2007 Mar 13 11:56 AM
gui_download function module is designed for foreground processing so if you schedule in background it will give error, ok and this function module contains 3 lines of code which is preventing not to execute in background ok, if you are executing in background at that time your system may not be active means it may be shutdown then hw will you down load it & think all posssiblities ok bye......