Skip to content

Compound Assignment Operators

SAP NetWeaver 7.54 introduces shorthand versions for arithmetic assignments and string concatenation. These assignments also allow expressions in the operand position.

x += 1. " short
x = x + 1. " long

x -= 1. " short
x = x - 1. " long

x *= 1. " short
x = x * 1. " long

x /= 1. " short
x = x / 1. " long

x &&= `abc`. " short
x = x && `abc`. " long
From SAP/styleguides under CC BY 3.0 — more details
Last updated on