Creating and Changing List and Column Headers

To create or change the titles in the output screen, select Titles and headers from the ABAP Text Elements screen and choose Change.

You can enter a list header of up to 70 characters in the List header field and column headers of up to 255 characters in the four lines of the Column header field.

You can use the options of the Edit menu to format the headings. If you do not specify any list header, the program title is displayed on the output screen instead.

Save your changes by choosing Save.

In the list and column headers, you can specify up to 10 placeholders &0 to &9 followed by up to 18 dots (.). During the TOP-OF-PAGE event (see Page Header Layout ), the system replaces these placeholders with the contents of the system fields SY-TVAR0 to SYTVAR9. The output length of the system fields is given by the length of the placeholders including the dots. In case of a placeholder ' &3...... ', for example, the contents of SY-TVAR3 is output with a length of 8.

 

Suppose you have the following program:

PROGRAM SAPMZTST.

DATA: NUM1 TYPE I, NUM2 TYPE P DECIMALS 2.

DO 5 TIMES.
  NUM1 = SY-INDEX ** 2. NUM2 = SQRT( SY-INDEX).
  WRITE: / SY-INDEX, NUM1, NUM2.
ENDDO.

If the headers are created as shown above, the output screen looks as follows:

 

For include programs (see INCLUDE Programs), you can only maintain the program title.