AT LINE-SELECTION
Short Reference
ABAP Syntax AT LINE-SELECTION.
What does it do? This statement defines an event block whose event is
triggered by the ABAP runtime
environment when a screen list is displayed. This is provided the
screen cursor is on a list line and you select a function using the
function code PICK . By defining this event block, the
standard list status is enhanced
automatically in such a way that the function code F2 and, with
it, the double-click mouse function is associated with the function code
PICK .
Latest notes: If the function key F2 is associated with a function
code other than PICK , each double click triggers its event,
usually AT USER-COMMAND , and not AT LINE-SELECTION .
Example ABAP Coding This program works with the standard list status.
Selecting a line with the left mouse key triggers the event
AT
LINE-SELECTION and creates details lists.
REPORT demo_at_line_selection.
START-OF-SELECTION.
WRITE 'Click me!' COLOR = 5 HOTSPOT.
AT LINE-SELECTION.
WRITE: / 'You clicked list', sy-listi,
/ 'You are on list', sy-lsind.
IF sy-lsind <(><<)> 20.
SKIP.
WRITE: 'More ...' COLOR = 5 HOTSPOT.
ENDIF.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved