SAP GET CURSOR LIST ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for GET_CURSOR

GET CURSOR - List

Short Reference
• GET CURSOR - list ABAP Statement
• FIELD GET CURSOR - list
• LINE GET CURSOR - list

ABAP_BASIC_FORM_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-subrcMeaning 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.

Return to menu