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

FUNCTION 'GUI_DOWNLOAD'

Former Member
0 Likes
1,404

Hi !

When i execute an Online program that use the function 'GUI_DOWNLOAD', then the program is running OK.

However When i execute the same program in background i get an unknown

error from the function 'GUI_DOWNLOAD' (return code 6 ) !

I wanted to know the reason for the error, and how to correct it ?

Thanks

Moshe

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,292

Hi Solman,

Any sort of communicatipn with the presentation server in background is not supported. GUI_DOWNLOAD is one such Function module which tries to communicate with the presentation server.

YOu can perhaps only download it to an application server and later move it to presentation server.

There is one work around for this, but its too tedious a solution, which works only on the system on which it is configured.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c...

Regards,

ravi

8 REPLIES 8
Read only

Former Member
0 Likes
1,292

Hi,

it is meant to be used for online (foreground) processing only.

regards,

madhu

Read only

0 Likes
1,292

Hi madhu !

First Thanks for your answer.

How then can i correct the error ? Is in a SAP other function that download a text

file in background mode ?

Thanks

moshe

Read only

0 Likes
1,292

Solman,

U can download your text file on the Application server using statements OPEN DATASET, TRANSFER etc. For more info you can get the help by pressing F1 on the above statements in ABAP editor. The application server files you can read using transaction AL11.

Thanks.

Read only

Former Member
0 Likes
1,293

Hi Solman,

Any sort of communicatipn with the presentation server in background is not supported. GUI_DOWNLOAD is one such Function module which tries to communicate with the presentation server.

YOu can perhaps only download it to an application server and later move it to presentation server.

There is one work around for this, but its too tedious a solution, which works only on the system on which it is configured.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c...

Regards,

ravi

Read only

Former Member
0 Likes
1,292

Hi,

We can not use the GUI_DOWNLOAD function module in the Background, it won't support that process, so better to download the same file into Application server . you can download the file to Application server in the Background Mode

Regards

Sudheer

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,292

GUI_DOWNLOAD access the GUI through SAPGUI, this function cannot work in background. (the NO_BATCH exception is explicit)

To access these folders in batch use other tools like FTP or so.

Regards.

Read only

0 Likes
1,292

Hi Raymond !

First Thanks for your answer.

How then can i correct the error ? Is in a SAP other function that download a text

file in background mode ?

Thanks

moshe

Read only

Former Member
0 Likes
1,292

Hi Solman,

The FM gui_download is used for foreground only.When any report is executed in the background, it runs in the Appliaction server and thus this FM will not work there.

Cheers.

Rewards points if found useful.