SAP LIST TOP OF PAGE ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Lists, 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 generates a two-page list. In the user-defined page header, column titles 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 feeds are achieved using NEW-LINE.
The alignment of the fields is determined by the rule that character strings are left-aligned by default and numeric fields are right-aligned by default. You can adjust the alignment using the editing options LEFT-JUSTIFIED, RIGHT-JUSTIFIED, and CENTERED of the WRITE statement (see WRITE - format_options).