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

Scheduling

Former Member
0 Likes
611

My program upload file by Fxn GUI_UPLOAD. When I schedule it in background it is cancelled with the error message 'Front End Fxn cannot be used in background'.

What should I do ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
577

Hi Dinesh ,

GUI_UPLOAD is not possible in background

You can upload this file into application server and then from there you can use it .

use CG3Z/CG3Y to upload to application server.

Check this document to handle gui_upload in background mode.

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

Thanks to Srilatha Thirukkovalluri

Regards,

Raghav

4 REPLIES 4
Read only

Former Member
0 Likes
577

You cannot read from a file on the local system in a background job. You will have to run it in the foreground.

Regards,

Manoj

Read only

Former Member
0 Likes
577

That means Batch Mode is not Supported . If the system variable SY-BATCH is X, i.e. if the program is running in background, this exception is raised, That means GUI_UPLOAD does not Support Background Processing.

Cheers...

Santosh

Read only

Former Member
0 Likes
578

Hi Dinesh ,

GUI_UPLOAD is not possible in background

You can upload this file into application server and then from there you can use it .

use CG3Z/CG3Y to upload to application server.

Check this document to handle gui_upload in background mode.

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

Thanks to Srilatha Thirukkovalluri

Regards,

Raghav

Read only

0 Likes
577

Thanks for this help Raghav...........