Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 840 Bytes

equals-sign-chaining.md

File metadata and controls

33 lines (21 loc) · 840 Bytes

code pal for ABAP > Documentation > Equals Sign Chaining

Equals Sign Chaining

What is the intent of the check?

This check identifies chained assignments to multiple variables as they usually confuse the reader.

"anti-pattern
x = y = z

How to solve the issue?

Break the assignment into multiple rows:

y = z.
x = y.

What to do in case of exception?

In exceptional cases, you can suppress this finding by using the pseudo-comment "#EC EQUALS_CHAINING which should be placed after the attribution:

x = y = z.        "#EC EQUALS_CHAINING

Further Readings & Knowledge