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 module GUI_DOWNLOAD

Former Member
0 Likes
603

Hi,

I am using the function module GUI_DOWNLOAD in my program. When i run my program in foreground it runs fine but when i run it in background the job gets cancelled. When i comment out the call to the function module GUI_DOWNLOAD it runs fine even in background. Can we use this function only in foreground? If yes, is there any function module by which I can send the data to the notepad file while running it in background.

Thanks in Advance,

Rahul Rathi

3 REPLIES 3
Read only

Former Member
0 Likes
475

as the name specify it is a GUI Fm..

so can not execute it in BAckground.it will give u control flush error.

u can not use FMs like Gui download n upload in background..

hope it clarifies

amit

Read only

Former Member
0 Likes
475

GUI_UPLOAD and GUI_DOWNLOAD can only work in the foreground. The reason for this is that they use some code which reside on the frontend PC. A background process knows nothing of the PC connected thru SAPgui. In order to "download" data to files, you must write the files to the application layer using OPEN DATASET, TRANSFER DATASET, CLOSE DATASET.

Regards,

Santosh

Read only

Former Member
0 Likes
475

Hi,

GUI_DOWNLOAD should execute fine either in foreground or in background.

Check if you are passing all the required parameters to this FM.

Filename and Filetype is more important.

Regards

Subramanian