Problem solve Get help with specific problems with your technologies, process and projects.

Avoiding accidental printouts in background jobs

Here's a simple piece of code that will save you heaps of paper.

When starting a background report, someone may forget to clear the "Print immediately" checkbox on the "Background Print Parameters" screen. This simple code, placed before the first WRITE statement, will save listing in spool and heaps of paper.


if   not sy-batch is initial.
    new-page print on immediately ''
             keep in spool 'X'.
  else.
    new-page.
  endif.

Dig Deeper on SAP ABAP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close