SAP PRINT ON OFF
Get Example source ABAP code based on a different SAP table
ABAP_LIST - 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:
If
Only spooling switched on with
Examples
Example ABAP Coding
Switches on spooling explicitly.
ABEXA 01548
ABAP_EXAMPLE_END
Example ABAP Coding
Switching optical archiving on explicitly.
ABEXA 01549
ABAP_EXAMPLE_END
Example ABAP Coding
Calling the program
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.>
ABAP_EXAMPLE_END
Example ABAP Coding
Scheduling a background job.
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.>
ABAP_EXAMPLE_END