abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_79 - CLEAR as first use of variable

Improve this page
CODE

CLEAR as first use of variable

Checks if a variable is cleared in it’s first usage after it has been defined.

Note: Only works for local variables in global classes.

Example:

..
METHOD foobar.

  DATA lv_index TYPE i.
  CLEAR lv_index. 
  ..

ENDMETHOD.
..

Configuration

Configuration