Online Tutorials & Training Materials | STechies.com
Register Login

SUBMIT TO SAP-SPOOL in a background job

|| || 0

SUBMIT TO SAP-SPOOL in a background job
Stechies

If the statement SUBMIT TO SAP-SPOOL is called up in a background program without the explicit specification of print parameters, then the current print parameters are not used for the SUBMIT call but the usual default print parameters are used.The statement SUBMIT TO SAP-SPOOL behaves in the same way as almost all ABAP/4 statements online and in the background. Print parameters other than the default ones are only used if they are explicitly specified.

Read the current print parameters using the following call and use this for the SUBMIT command:

Related: Scheduling Background Job

CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
  MODE                        = 'CURRENT'
  NO_DIALOG                    = 'X'
IMPORTING
  OUT_PARAMETERS              = pripars
   OUT_ARCHIVE_PARAMETERS       = arcparams
   VALID                        = valid
EXCEPTIONS
.....
SUBMIT ... TO SAP-SPOOL AND RETURN SPOOL PARAMETERS pripars
ARCHIVE PARAMETERS arcparams.


 


Related Articles

0.0137 seconds.