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

spool

Former Member
0 Likes
468

hi,

in a report i have ALV grid as output-1. i put a check on SY-BATCH and coded GET_PRINT_PARAMETERS for output-2.

if i run the report in foreground, and in debugging change SY-BATCH to 'X', then things are fine. i see output1 normally and i get a spool no. for output2.

now when i run the report in background the job gets calcelled. the log says "Job cancelled after system exception ERROR_MESSAGE".

what is the reason and how can i fix it? any ideas ?

thanks in advance.

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
415

Hello,

If any screen comes in your report while running in background, it will give you an error.

So, try to remove the screens.

Regards,

Naimesh

Read only

0 Likes
415

no screen related to report but a pop up appears when i run in foreground and keep sy-batch = 'X'. this screen is for changing print parameters

Read only

0 Likes
415

log in SM37 also says 'Specify printer name' and then 'Job cancelled after system exception ERROR_MESSAGE'

Read only

0 Likes
415

hi,

i got it. i found that the FM is not provided the printer name. in foreground i get a popup i fill it. but in backgrouond there was no such scope. so the job had to be terminated.

thanks.