Skip to content

Enforce Naming Conventions ​

WarningClean ABAP & Modern Syntax#EC NAMINGRemote Enabled

Overview ​

Standard Naming Conventions.

ATC Finding Messages:

  • Class attribute name does not match configured pattern
  • Method parameter name does not match configured pattern
  • Local variable name does not match configured pattern
  • Local class name does not match configured pattern
  • Global class name does not match configured pattern
  • Selection screen element name does not match configured pattern
  • Type name does not match configured pattern
  • Macro name does not match configured pattern
  • Form routine name does not match configured pattern
  • Function module name does not match configured pattern
  • Local interface name does not match configured pattern
  • Global interface name does not match configured pattern
  • Event or event handler name does not match configured pattern
  • Test method name does not match configured pattern
  • Program name does not match configured pattern
  • Function group name does not match configured pattern

Rationale ​

Without a naming convention, local variables, parameters, and types are indistinguishable and the code becomes harder to navigate. Prefixes such as lv_, iv_, and ty_ encode scope and kind at a glance. Apply the configured patterns consistently within a team.

Non-Compliant ​

abap
DATA customer_name TYPE string.

Compliant ​

abap
DATA lv_customer_name TYPE string.

Configuration & Thresholds ​

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

Parameter NameData TypeDefault Value
ATTR_IGN_EXCBooleantrue
ATTR_IGN_LOCALBooleantrue
ATTR_IGN_INTFBooleanfalse
ATTR_STATICSString^G._.+$
ATTR_INSTANCEString^M._.+$
ATTR_CONSTANTSString
PARAM_IGN_EXCBooleantrue
PARAM_IMPORTINGString^I._.+$
PARAM_RETURNINGString^R._.+$
PARAM_CHANGINGString^C._.+$
PARAM_EXPORTINGString^E._.+$
LOCAL_DATAString^L._.+$
LOCAL_CONSTString^LC_.+$
LOCAL_FSString^<L._.+>$
LOCAL_STATICSString^S._.+$
CLASS_LOCALString^LC(L|X)_.+$
CLASS_TESTString^LTCL_.+$
CLASS_GLOBALString^ZC(L|X)_.+$
SSCR_PARAMString^P_.+$
SSCR_SELOPTString^S_.+$
TYPES_PATTERNString^TY_.+$
MACRO_PATTERNString^_.+$
FORM_PATTERNString^F_.+$
FUNCTION_PATTERNString^Z.*$
INTF_LOCALString^LIF_.+$
INTF_GLOBALString^ZIF_.+$
EVENT_NAMEString^[A-Z][A-Z0-9_]+$
EVENT_HANDLERString^ON_.+$
TEST_METHODString^(TEST|SHOULD)_.+$
PROG_PATTERNString^Z.+$
FUGR_PATTERNString^Z.+$

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.