Ansicht
Dokumentation

Mode abend when PRINT-CONTROl is used <br />Tip-No.: 2685 ( INFO2685 )

Mode abend when PRINT-CONTROl is used
Tip-No.: 2685 ( INFO2685 )

CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Short text

Mode abend when PRINT-CONTROl is used
Tip-No.: 2685

Symptom

When a report is started with PF13 (execute and print), or when a
report is started in batch, a mode abend
occurs. In the report, a PRINT-CONTROL statement is executed before
the first WRITE statement.

Cause

An ABAP list is first initialized through a WRITE statement. If a
PRINT-CONTROL statement is executed with a non-initialized list, then
invalid parameters are transferred, which leads to a mode abend at
the next print attempt.

Solution

1. Do not execute PRINT-CONTROL until after the first WRITE.
2. At the start of the report, and thus before the PRINT-CONTROL,
set a dummy output instruction, e.g.: *
SET BLANK LINES ON.
WRITE ' '.
SET BLANK LINES OFF.
3. Corr. no. B11K007914






General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 986 Date: 20240328 Time: 114219     sap01-206 ( 12 ms )