SAP ARITH BRACKETS



Get Example source ABAP code based on a different SAP table
  


• ( ) ABAP_ARITH_EXPR

ABAP_ARITHEXP - ( )

ABAP_SYNTAX
... ( arith_exp ) ...

What does it do?
A full arithmetic expression arith_exp can be placed in parentheses. An arithmetic expression in parentheses can be used as the operand for another arithmetic expression and is calculated first when used in this way.
BEGIN_SECTION SAP_INTERNAL_HINT
Undocumented feature: The space before the closing bracket can be omitted if the last actual parameter is a text literal within quotes.
END_SECTION SAP_INTERNAL_HINT

ABAP_EXAMPLE_VX5
The parentheses in the second calculation correspond to the implicit parentheses in the first calculation. The parentheses in the third calculation change its order. The results are 2, 2, and 3. In the third calculation, the result of the parenthesis is rounded to the value 1.
ABEXA 00825
ABAP_EXAMPLE_END