Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Displaying Lists 

GET CURSOR - Liste

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


GET CURSOR { {FIELD field [field_properties]} 
           | {LINE line [line_properties]} }.

Effect

If this statement is specified during list processing, it will transfer - depending on the specification of FIELD or LINE - the name of the output field or the number of the list line on which the screen cusor in the currently displayed list is positioned (after the user action) into the variables field or line. For field, a character-type variable is expected; for line, a variable of the type i is expected. With the additions field_properties and line_properties, further information on the cursor position can be imported.

With the FIELD addition, only the names of global data objects of the ABAP program can be determined. If the cursor is positioned on the output of a data object that is not visible in the current context or a literal, field will be initialized. The latter has no influence on the other additions or on sy-subrc.

System Fields

sy-subrc Meaning
0 The cursor is on a field or a list row and the statement was executed successfully.
4 The cursor is not on any field or any list row.


Note

If the cursor is on the output area of a data object that was accessed in the WRITE statement using a field symbol, the name of the data object is assigned and not the name of the field symbol.

Continue

GET CURSOR - field_properties

GET CURSOR - line_properties