SET MARGIN macol [marow].
This statement determines the left margin of a print list to the columns specified in macol, and the upper margin to the rows specified in marow, and sets the system fields sy-macol and sy-marow to these values. For macol and marow, data objects of type i are expected, with values within the current page width and page length. If macol or marow contain invalid values, the associated operand is ignored.
The set values apply for the current page and all subsequent pages until the next SET MARGIN statement. If there are several SET MARGIN statements on one page, the last statement always applies.
SET MARGIN has no effect on displaying screen lists. The
set margins are only inserted in the list as blank characters or empty rows if a list page is sent to
the SAP spool system. This applies for print lists created using
NEW-PAGE PRINT ON, SUBMIT TO SAP-SPOOL, and by the selection of Execute and Print on the
selection screen. SET MARGIN also applies if a screen list is printed while it is being displayed, through selection of
Print (function code "PRI").
For printers with an active list driver, margins can be defined in millimeters in the print dialog. When pages are sent from the spool system to the printer, the pages, including the margins set using SET MARGIN, are set up within these margins.