Ansicht
Dokumentation
ABENPRINT_ON_OFF - PRINT ON OFF
General Data in Customer Master CPI1466 during BackupThis documentation is copyright by SAP AG.
- Switching Spooling On and Off
If spooling is switched off, all list output is written to the list buffer for the current screen list. When spooling is switched on, a spool list is created. Spooling can be switched on as follows:
- Using the statement NEW-PAGE PRINT ON.
- Choosing the function Execute + Print on the standard selection screen of an executable program.
- Calling an executable program with the addition TO SAP-SPOOL of the statement SUBMIT.
- Scheduling an executable program in a background job using the additions VIA JOB and TO SAP-SPOOL of the statement SUBMIT.
If NEW-PAGE PRINT ON is used, spooling is switched on explicitly in the program. With the other three options, spooling is switched on from the start of execution of an executable program. Switching on spooling opens a new spool list level.
Only spooling switched on with NEW-PAGE PRINT ON can be switched off again using NEW-PAGE PRINT OFF. Spooling that is switched on at the start of a program cannot be switched off within this same program. In particular, spooling is always switched on when executing a program in background processing.
Examples
Example
Switches on spooling explicitly.
Example
Switching optical archiving on explicitly.
Example
Calling the program
DATA: params TYPE pri_params,
valid TYPE c.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING out_parameters = params
valid = valid.
IF valid <> space.
SUBMIT myreport TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params.
ENDIF.
Example
Scheduling a background job.
DATA: params TYPE pri_params,
valid TYPE c.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING mode = 'BATCH'
report = 'MYREPORT'
IMPORTING out_parameters = params
valid = valid.
IF valid <> space.
CALL FUNCTION 'JOB_OPEN' .... EXPORTING jobcount ...
SUBMIT myreport VIA JOB 'MY_JOB' NUMBER jobcount
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params.
CALL FUNCTION 'JOB_CLOSE' ...
ENDIF.
CL_GUI_FRONTEND_SERVICES - Frontend Services General Material Data
This documentation is copyright by SAP AG.
Length: 4286 Date: 20240425 Time: 165230 sap01-206 ( 45 ms )