SAP GET CURSOR FIELD ABAP Statements

Get Example source ABAP code based on a different SAP table
  



GET CURSOR - Open-SQL

Short Reference


ABAP Syntax ... [VALUE val] [LENGTH len] [OFFSET off] [LINE
lin] [AREA area].

ABAP Addition
1 ... VALUE val
2 ... LENGTH len
3 ... OFFSET off
4 ... LINE lin
5 ... AREA area

What does it do? Using these additions, further information on the cursor position can be imported during PAI processing if the addition FIELD is attached to the statement GET CURSOR.
• VALUE GET CURSOR FIELD - dynpro

ABAP Addition

What does it do? The VALUE addition assigns the formatted content of the screen element on which the cursor is positioned to the data object val as a character string. For val, a character-type variable is expected.
• LENGTH GET CURSOR FIELD - dynpro

ABAP Addition

What does it do? The addition LENGTH assigns the length of the screen element on which the cursor is positioned to the data object len. For len, a variable of the type i is expected.
• OFFSET GET CURSOR FIELD - dynpro

ABAP Addition

What does it do? The addition OFFSET assigns the position of the cursor within the screen element on which the cursor is positioned to the data object off />. For off, a variable of the type i is expected.
• LINE GET CURSOR FIELD - dynpro

ABAP Addition

What does it do? If the screen element on which the cursor is positioned is within a table control or a step loop, the addition assigns the number of the row of the table control or the group of the step loop to the LINE data object lin. Otherwise, lin is set to 0. For lin, a variable of the type i is expected.
• AREA GET CURSOR FIELD - dynpro

ABAP Addition

What does it do? If the screen element on which the cursor is positiioned is within a table control, the addition AREA assigns the name of the table control to the data object area. Otherwise, area is initialized. For area, a character-type variable is expected.

Return to menu