Skip to content

Omit the self-reference me when calling an instance attribute or method

Since the self-reference me-> is implicitly set by the system, omit it when calling an instance attribute or method

DATA(sum) = aggregate_values( values ).

instead of the needlessly longer

" anti-pattern
DATA(sum) = aggregate_values( me->values ).
" anti-pattern
DATA(sum) = me->aggregate_values( values ).

unless there is a scope conflict between a local variable or importing parameter and an instance attribute

me->logger = logger.
From SAP/styleguides under CC BY 3.0 — more details
Last updated on