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

Call printing report

bartlomiej_lach
Participant
0 Likes
390

Hello!

I have a problem with printing program. I want to print notification during creating of it (IW21). To do this I have to call new report for printing. I use SUBMIT syntax, but I red that there are some problem to trigger that kind of program, if it isn't true please correct me.

So maybe you know how to do somethuing like this?

I tried to create new job but always I get error with sy-subrc = 8 (Error in job scheduling (JOB_SUBMIT)) and I don't know why. I didn't have any experience with jobs so far, so I don't know what could be cause of problem.

My code is:


call function 'GET_PRINT_PARAMETERS'
  exporting destination           = 'LOCL'
            copies                = 1
            list_name             = 'TEST'
            list_text             = 'SUBMIT ... TO SAP-SPOOL'
            immediately           = 'X'
*            RELEASE               = 'X'
            new_list_id           = 'X'
            expiration            = 1
            line_size             = 79
            line_count            = 23
*            LAYOUT                = 'X_PAPER'
*            SAP_COVER_PAGE        = 'X'
*            COVER_PAGE            = 'X'
*            RECEIVER              = 'SAP*'
            department            = 'PM'
*            no_dialog             = ' '
  importing out_parameters        = params
            valid                 = valid.

if valid <> space.
  submit z_riprov00 via job 'name' number 1 to sap-spool
    spool parameters params
    without spool dynpro
    and return.
endif.

For all hints thanks in advance

BL

Hello!

I have a problem with printing program. I want to print notification during creating of it (IW21). To do this I have to call new report for printing. I use SUBMIT syntax, but I red that there are some problem to trigger that kind of program, if it isn't true please correct me.

So maybe you know how to do somethuing like this?

I tried to create new job but always I get error with sy-subrc = 8 (Error in job scheduling (JOB_SUBMIT)) and I don't know why. I didn't have any experience with jobs so far, so I don't know what could be cause of problem.

My code is:


call function 'GET_PRINT_PARAMETERS'
  exporting destination           = 'LOCL'
            copies                = 1
            list_name             = 'TEST'
            list_text             = 'SUBMIT ... TO SAP-SPOOL'
            immediately           = 'X'
*            RELEASE               = 'X'
            new_list_id           = 'X'
            expiration            = 1
            line_size             = 79
            line_count            = 23
*            LAYOUT                = 'X_PAPER'
*            SAP_COVER_PAGE        = 'X'
*            COVER_PAGE            = 'X'
*            RECEIVER              = 'SAP*'
            department            = 'PM'
*            no_dialog             = ' '
  importing out_parameters        = params
            valid                 = valid.

if valid <> space.
  submit z_riprov00 via job 'name' number 1 to sap-spool
    spool parameters params
    without spool dynpro
    and return.
endif.

For all hints thanks in advance

BL

1 REPLY 1
Read only

bartlomiej_lach
Participant
0 Likes
353

Maybe there is some mistake form the beginning.

So maybe you know how to print notification by standart report RIPROV00? Operation is triggered during creating so data are stored in memory.

If you know any example printing from memory. I will be grateful for any hints.

Regards

BL