SAP OO OBS NEW PAGE 1

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet
ARTICLE

Missing Print Parameters in NEW-PAGE
You can only use the NEW-PAGE PRINT ON statement to declare print parameters in ABAP Objects , provided there is no user dialog needed.

In ABAP Objects, the following statement causes an error message:

NEW-PAGE PRINT ON NO DIALOG.
Correct syntax:

DATA pripar TYPE pri_params,
arcpar TYPE arc_params.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING out_parameters = pripar
out_archive_parameters = arcpar
...

NEW-PAGE PRINT ON NO DIALOG
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar.
Cause:

Printing without a user dialog and without consistent print parameters leads to errors in the printout.