2007 Jun 06 7:34 AM
Hi all,
Does GUI_DOWNLOAD work in Background??
I have a download program, which downloads a server file onto local PC, I scheduled the program to run in BG, after call to GUI_DOWNLOAD, sy-subrc value is 21(Control_flush_error).
Please, need help..!
2007 Jun 06 7:36 AM
hI,
you cannot use GUI_DOWNLOAD in background. for that you have to use DATASETS
Regards,
Naveen
Hi all,
Does GUI_DOWNLOAD work in Background??
I have a download program, which downloads a server file onto local PC, I scheduled the program to run in BG, after call to GUI_DOWNLOAD, sy-subrc value is 21(Control_flush_error).
Please, need help..!
2007 Jun 06 7:36 AM
hI,
you cannot use GUI_DOWNLOAD in background. for that you have to use DATASETS
Regards,
Naveen
2007 Jun 06 7:37 AM
Hi
Welcome To SDN!!!!!!!!!!!!!!!
GUI_UPLOAD and GUI_DOWNLOAD will not work in back ground. If your version is less that 5 you can use ws_upload otherwise you can use OPEN DATASET..
Reward All Helpfull Answers.........
2007 Jun 06 7:39 AM
hi ,
GUI_DOWNLOAD does not work in background, check below link to find a detailed explanation and a work around solution for the same.
Thanks and Regards,
Raghavendra
2007 Jun 06 7:49 AM
Hi,
GUI function modules does not work in background.
Reward points if it is helpful.
Regards,
Sangeetha.a
2007 Jun 06 7:53 AM
Hi,
You need to understand that when u execute something in the background the frontend is not available .
so obviously the frontend functions will not work as Presentation server is not accessable.
Hope you have understood y these functions dont work..
to download files in background u need to use the application server ...
since Presentation server is not accessable
Kindly be generous with points
Regards,
Gaurav
2007 Jun 06 7:57 AM
2007 Jun 06 7:54 AM
Hi Sandhip,
Want any help to run Open dataset in background then reply. Its simple and I can take it for a walk in the park.
Thanks,
Tej..
2007 Jun 06 7:55 AM
hi,
GUI_UPLOAD and GUI_DOWNLOAD will not work in back ground. If your version is less that 5.0 you can use use OPEN DATASET.
if useful reward some points.
with regards,
suresh.
2007 Jun 06 7:57 AM
Hi Again Sandhip,
OPEN DATASET p_file2 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE text-015 TYPE 'E'.
ENDIF.
LOOP AT it_main1 INTO x_main1.
TRANSFER x_main1 TO p_file2.
ENDLOOP.
CLOSE DATASET p_file2.
Here <b>p_file2</b> is a parameter where we pass the path of the file. And it puts the file on to the application server.
<b>it_main1 is an internal table</b>.
To get data on to the desktop use GUI_DOWNLOAD.
Reward Points.
Thanks,
Tej..