09-10-2014 8:11 PM
Hi All,
I need to write a report to local PC as an excel file. The program is working fine in foreground using cl_gui_frontend_services=>gui_download. However since the report data is very large, when the user runs the program in foreground, it always gets timeout. So it has to be run in background. I did a lot of research and tried the example posted here as well: http://abapblog.com/articles/tricks/33-create-xlsx-mhtml-file-from-internal-table-in-background
But I am still not successful. I am getting ""control_flush_error". Does anybody have any ideas?
Thanks,
Meiying
09-10-2014 9:27 PM
Hi ,
cl_gui_frontend_services=>gui_download is for front end if you use this for background job scheduling it will throw dump !!
so the solution is write a program to download the file to application server using
'OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE'
and from there you can get the file.
there is no way that you can schedule a program in background and store it on local PC.
09-10-2014 9:27 PM
Hi ,
cl_gui_frontend_services=>gui_download is for front end if you use this for background job scheduling it will throw dump !!
so the solution is write a program to download the file to application server using
'OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE'
and from there you can get the file.
there is no way that you can schedule a program in background and store it on local PC.
09-10-2014 9:30 PM
09-10-2014 10:28 PM