sapdev logo background
sapdev logo sapdev logo
Comments

ABAP GET CURSOR LIST Statement syntax, information and example SAP source code



Return to Statement index



GET CURSOR - List

Short Reference

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

What does it do? 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
0The cursor is on a field or a list row and the statement was executed successfully.
4The cursor is not on any field or any list row.

Latest notes: 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




GET_CURSOR_FIELD
GET_CURSOR_LIST_FIELD




comments powered by Disqus