SAP LIST TOP OF PAGE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_LIST - Page Header
The example shows how to define the page header at the TOP-OF-PAGE event.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
This program creates a two-page list. In the user-defined page header, column headers are placed in relative position to each other using the system field sy-colno and the POSITION statement. The actual list output is positioned under the fields of the header line using the addition UNDER of the WRITE statement. The line breaks are achieved using NEW-LINE.
The alignment of the individual fields results from the ABAP default of representing character strings as left-aligned and numeric fields as right-aligned. The alignment can be adjusted using the formatting options LEFT-JUSTIFIED, RIGHT-JUSTIFIED, and CENTERED of the WRITE statement (see WRITE - format_options).