sapdev logo background
sapdev logo sapdev logo
Comments

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



Return to Statement index



GET CURSOR - Dynpro

Short Reference

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

What does it do? If this statement is specified during PAI processing, depending on the specification for FIELD or LINE , it transfers either the name of the screen element or the number of the row of a table control or of the group of a step loop (on which the screen cursor is positioned after a user action) into the data objects field or line . For field , a character-type variable is expected; for line , a variable of the type i is expected. In field_properties , further properties of the screen element can be defined.
If the cursor is in the command field of the standard toolbar or on a pushbutton in the screen , the statement is ignored and the specified variables remain unchanged. If the cursor in the first variant is not in a screen element of the current screen but on a bar in the GUI status, the contents of field and the variables specified in field_properties are initialized. If the cursor in the second variant is not on a screen element that is part of a table control or a step loop, the variable line is initialized.

System Fields
sy-subrc Meaning
0The cursor is on a screen element of the current dynpro, if
FIELD is specified, or on the input field of the standard toolbar . If LINE is specified, the cursor is on a screen element within a table control or a step loop.
4 If FIELD is specified, the cursor is on a toolbar in the GUI status or, if LINE is specified, the cursor is outside a table control or a step loop.

Latest notes: In the second variant, the same additions VALUE , LENGTH , and OFFSET could be specified after LINE as specified for the use of the statement for lists. However, the variables specified during PAI processing are always initialized.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




GET_CURSOR
GET_CURSOR_FIELD




comments powered by Disqus