Adding a Page break/new page in SAP Script

SAPSAP Scripts

To add a new page, you can use Control command NEW-PAGE in Transaction SE71.


Syntax

NEW-PAGE [page_options] [ spool_options]

Effect

This statement creates a new page in the current list and writes the subsequent list output into a spool list.

In T-Code: SE38 Print Program, you can use Function Module CONTROL_FORM to call NEW-PAGE command as below −

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

COMMAND = 'NEW-PAGE'

EXCEPTIONS

UNOPENED = 1

UNSTARTED = 2

OTHERS = 3.
raja
Published on 25-Dec-2017 20:04:35
Advertisements