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

Error executing in Background

Former Member
0 Likes
1,264

Hello people,

I have a program that when running on line, the files are saved in a local Folder or in a Folder in the server but when try to execute in Background saving in the same Folders, a error occurs.

Anybody knows what can I do to resolve this problem, please ?

tks

regards

Flavio Ferreira

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,233

In backgroung when files which are locally stored are accessed , It will end up in errors.

Rhea.

9 REPLIES 9
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,233

in Background you can only save files on the Application Server (the SAP Server itself)

Read only

Former Member
0 Likes
1,234

In backgroung when files which are locally stored are accessed , It will end up in errors.

Rhea.

Read only

0 Likes
1,233

Ok, but can I use the GUI_DOWNLOAD Function normaly ?

Read only

0 Likes
1,233

as told, any operation, which is dealing with the network outside the SAP Server works only in foreground. It means GUI_DOWNLOAD works only in foreground. In background only the SAP server is visible.

Read only

0 Likes
1,233

If you are not scheduling it in Backgroung you can use that FM .

you cannot download to the frontend in a background job simply because the GUI isn't available. You will have to use OPEN DATASET and put the file on the Application server in the background and then use the transaction CG3Y in the foreground to download the file to the pc from the application server.

Rhea.

Edited by: rhea on Nov 27, 2008 3:31 PM

Read only

0 Likes
1,233

if u need it to be saved in local machine...

change the code to first save in app server using open data set and then use CG3Y to download it to your local machine any time u want...

Read only

0 Likes
1,233

Hi

You cannot use GUI_DOWNLOAD in background mode.

Cheers,

Hakim

Read only

0 Likes
1,233

hi,

dont think ALV grid display can work in background , since it will require the ABAP list processor to execute the FM. but this processor is not available at backgrnd.... because of this many SAP GUI based operations cannot be carried out in background..

regards,

ags

Read only

Former Member
0 Likes
1,233

Hi,

To find the error try using transaction JDBG which helps to debug the program executed in background. Moreover as every said GUI_download or GUI_UPLOAD FM's cant be used in background.

Regards,

Krishna Reddy