Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.07 KB

self-reference.md

File metadata and controls

37 lines (22 loc) · 1.07 KB

code pal for ABAP > Documentation > Self-Reference

Self-Reference

What is the intent of the check?

This check searches for unnecessary usages of explicitly self-references using me-> to qualify an instance variable or method. Since this self-reference is implicitly set by the system, it should be omitted.

How to solve the issue?

Omit the self-reference.

What to do in case of exception?

In exceptional cases, you can suppress this finding by using the pseudo comment "#EC SELF_REF which should to be placed after the self-referenced statement:

  DATA(sum) = me->aggregate_values( values ). "#EC SELF_REF

Example

Before the check:

  DATA(sum) = me->aggregate_values( values ).

After the check:

  DATA(sum) = aggregate_values( values ).

Further Readings & Knowledge