Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Event Blocks for Lists 

AT list_event

Other versions: 7.31 | 7.40 | 7.54

Syntax


AT  LINE-SELECTION 
  | USER-COMMAND
  | PFnn.

Effect

Definition of event blocks for interactive list processing. The relevant events occur if the screen cursor is positioned on a line in a displayed list and the user chooses a relevant function. Each interactive list event increments the system field sy-lsind by one.

If, for an interactive list event, the cursor is positioned at a line in a list displayed on the screen, all the values stored with HIDE belonging to the line in question are assigned the respective variables and the following system fields are filled with data:

System field Meaning
sy-cpage Page number of the uppermost displayed page in the list that triggered the event
sy-cucol Position of the column in the window that triggered the event (count begins with 2)
sy-curow Position of the line in the window that triggered the event (count begins at 1)
sy-lilli Number of the line that triggered the event
sy-lisel Content of the line that triggered the event (is limited to the first 255 characters)
sy-listi Index of the list that triggered the event
sy-lsind Index of the list level that was created in the even tblock
sy-staco Number of the first displayed column of the list that triggered the event (count begins at 1)
sy-staro Number of the uppermost line of the uppermost displayed page of the list that triggered the event (count begins at 1)
sy-ucomm Function code to which the user action that triggered the event is assigned

With each list event AT LINE-SELECTION, AT PFnn, and AT USER-COMMAND, the statement NEW-PAGE PRINT OFF is executed explicitly.


Note

The list event AT PFnn is obsolete and the other two list events, particularly ATUSER-COMMAND should be used instead.

Continue

AT LINE-SELECTION

AT USER-COMMAND