Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call printing report


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.

For all hints thanks in advance


Not what you were looking for? View more on this topic or Ask a question