CHECK_17 - Definitions in top of routine
Improve this pageRFC enabled
CODE
Check that DATA and other definitions are in top of routine(FORM/METHOD). Traditionally variables are declared at top of modularization block.
See https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenlocal_declar_guidl.htm
Example:
FORM foo.
gv_moo = 2.
DATA: lv_bar TYPE i.
....
ENDFORM.
should be changed to
FORM foo.
DATA: lv_bar TYPE i.
gv_moo = 2.
....
ENDFORM.
Note: this check allows for customizing the order of TYPE, DEFINE, CONSTANT, STATIC and FIELD-SYMBOL declarations