Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

"Exception condition "CONTROL_FLUSH_ERROR" raised." during background jobs

Former Member
0 Kudos
588

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

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos
158

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

Former Member
0 Kudos
158

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

Former Member
0 Kudos
158

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......