Application Development 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: 

Problem with GUI_download in background

Former Member
0 Kudos
1,258

Hi all,

When i ran the program in the background,the job has been canceled.

the report should download the records into the local file have checked in debug mode the job has canceled when it comes to GUI_DOWNLOAD,GUI_download will not work in background or not.

if i ran the program in foreground it will generate the file.

please help me.

thanks

sriman.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
347

Hi,

GUI_DOWNLOAD FM is not supported in forground.

Better you use OPEN DATASET... and write the data in Application server.

Or if you are generating a List then it will create Spool when executed in Background. Which you can download later from SP01.

Reward points if this Helps.

Manish

4 REPLIES 4

Former Member
0 Kudos
348

Hi,

GUI_DOWNLOAD FM is not supported in forground.

Better you use OPEN DATASET... and write the data in Application server.

Or if you are generating a List then it will create Spool when executed in Background. Which you can download later from SP01.

Reward points if this Helps.

Manish

Former Member
0 Kudos
347

Hi Sriman,

GUI_UPLOAD and GUI_DOWNLOAD Function module doesnot run in the Background.

Regards

Sudheer

Former Member
0 Kudos
347

Hi Sriman,

The FM GUI_DOWNLAOD will not work in background mode, as it has to download to the local PC, but when run in background it is being run on the APP server and thus loses the link with the Desktop, so it does not know what desktop to download the file to and hits an error which is why the program will dump.

Better to use the open dataset commands if running in background as this will download the file to the server, where the code is being run, you can easily FTP the file back on to the desktop if need be.

Former Member
0 Kudos
347

Hi,

Please go through the following link for implementing download of a file in background. GUI_DOWNLOAD cannot be used for background process.

<a href="http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm">Download file during background process</a>

Regards,

Chetan.

PS: Reward points if this is helpful.