Application Development and Automation 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: 
Read only

GUI_DOWNLOAD

Former Member
0 Likes
977

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
898

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

9 REPLIES 9
Read only

Former Member
0 Likes
899

hI,

you cannot use GUI_DOWNLOAD in background. for that you have to use DATASETS

Regards,

Naveen

Read only

Former Member
0 Likes
898

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

Read only

Former Member
0 Likes
898

hi ,

GUI_DOWNLOAD does not work in background, check below link to find a detailed explanation and a work around solution for the same.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/abap-code-sam...

Thanks and Regards,

Raghavendra

Read only

Former Member
0 Likes
898

Hi,

GUI function modules does not work in background.

Reward points if it is helpful.

Regards,

Sangeetha.a

Read only

0 Likes
898

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

Read only

0 Likes
898

Thanks.... for all of u...!!!

Read only

Former Member
0 Likes
898

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

Read only

Former Member
0 Likes
898

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.

Read only

Former Member
0 Likes
898

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