SAP GET CURSOR - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for GET_CURSOR

GET CURSOR

ABAP Reference
ABAP Code Snippet


ABAP Syntax GET CURSOR { { FIELD field

[VALUE val]
[LENGTH len]
[[DISPLAY|MEMORY] OFFSET off]
[LINE line]
[AREA area] }
| { LINE line
[VALUE val]
[LENGTH len]
[[DISPLAY|MEMORY] OFFSET off] } }.
ABAP Code Snippet

What does it do? Evaluates the cursor position on screens and lists.

ABAP Addition FIELD field
Returns the name of the screen element of the field displayed on a list in field and determines further field-related properties of the cursor position.

VALUE val - Returns the value of the screen element or the output area of a list in val.

LENGTH len - Returns the length of the screen element or the output area of a list in len.

[DISPLAY|MEMORY] OFFSET off - Returns the offset of the cursor in the screen element or in the output area of a list in off. In lists, DISPLAY and MEMORY distinguish between the screen position and the position in the list buffer.

LINE line - Returns the number of the row for a table control, for a step loop, or the list in line.

AREA area - Returns the name of a table control in area.
LINE line
Returns the number of the row of a table control, of a step loop, or the list in line and determines further row-related properties of the cursor position in lists.

VALUE val - Returns the value of the list row in val.

LENGTH len - Returns the length of the list row in len.

[DISPLAY|MEMORY] OFFSET off - Returns the offset of the cursor in the list row in off. DISPLAY and MEMORY distinguish between screen position and position in the list buffer.

Return to menu