abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_22 - Conditions contain identical code

Improve this page
RFC enabled
CODE

Example:

IF lv_foo = lv_bar.
  lv_moo = abap_true.
  WRITE: / lv_moo.
ELSE.
  lv_moo = abap_true.
ENDIF.

can be reduced to

lv_moo = abap_true.
IF lv_foo = lv_bar.
  WRITE: / lv_moo.
ENDIF.

Configuration

Configuration