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: 

How to Print Directly Background JOB List

Former Member
0 Kudos
63

Hi all,

I have background scheduled one program. I need to print that JOB list when that JOB is finished through the report without going to SM37.

Thanks in advance.

Regards,

Balavardhan.K

1 REPLY 1

Former Member
0 Kudos
33

Try this:

call function 'GET_PRINT_PARAMETERS'

exporting

mode = 'CURRENT'

no_dialog = 'X'

importing

out_parameters = ls_params

exceptions

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

others = 4.

if sy-subrc <> 0.

message a000 with 'get_print_parameters fail:' sy-subrc.

endif."subrc.

ls_params-primm = space. " print immediately = no

ls_params-prrel = space. " delete after print = no

...but change 'space' to 'X' for primm.

Best!

Jim