Skip to content

Avoid Empty Procedures ​

WarningClean ABAP & Modern Syntax#EC NO_EMPTY_PROCRemote Enabled

Overview ​

Avoid empty procedures (methods, forms, functions).

ATC Finding Message: Procedure is empty; implement logic or remove procedure

Rationale ​

Methods, form routines, and function modules should not be empty. Implement required logic or remove superfluous empty procedures.

Non-Compliant ​

abap
METHOD do_work.
ENDMETHOD.

Compliant ​

abap
METHOD do_work.
  DATA lv_val TYPE i.
  lv_val = 1.
ENDMETHOD.

Configuration & Thresholds ​

This check can be fine-tuned directly in the ATC Check Variant Editor (CHKV) in Eclipse ADT:

Parameter NameData TypeDefault ValueDescription & Guidance
CHECK_METHODSBooleantrueCheck methods (defaults to true)
CHECK_FORMSBooleantrueCheck form routines (defaults to true)
CHECK_FUNCSBooleantrueCheck function modules (defaults to true)

Suppression ​

To suppress findings for this rule, append the pseudo-comment to the statement:

abap
" Standard pseudo-comment:
... "#EC NO_EMPTY_PROC

" SAP CI_ prefix format:
... "#EC CI_NO_EMPTY_PROC

Technical Details ​

Released under the MIT License.