SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → User Dialogs → Classic Lists → Event Blocks for Lists →Syntax
AT LINE-SELECTION
| USER-COMMAND
| PFnn.
Effect
Defines event blocks for interactive list processing. The associated events occur if the screen cursor is positioned on a line in a displayed list and the user chooses an appropriate function. Each interactive list event increases the system field sy-lsind by one.
If the cursor is positioned on a line in a list displayed on the screen in an interactive list event, all the values stored using HIDE and 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 first displayed page of the list from which the event was triggered |
sy-cucol | Position of the column in the window from which the event was triggered (counting starts with 2) |
sy-curow | Position of the line in the window from which the event was triggered (counting starts with 1) |
sy-lilli | Number of the line from which the event was triggered |
sy-lisel | Content of the line that triggered the event (is limited to the first 255 characters) |
sy-listi | Index of the list from which the event was triggered |
sy-lsind | Index of the list level that was created in the event block |
sy-staco | Number of the first column displayed in the list from which the event was triggered (counting starts with 1) |
sy-staro | Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1) |
sy-ucomm | Function code to which the user action that triggered the event is assigned |
After each list event AT LINE-SELECTION, AT PFnn,
and AT USER-COMMAND, the statement NEW-PAGE PRINT OFF is executed explicity.
Note
The list event AT PFnn is obsolete
and the other two list events (preferably AT USER-COMMAND) should be used instead.