Ansicht
Dokumentation

ABENCALC_EXPRESSSION_GUIDL - CALC EXPRESSSION GUIDL

ABENCALC_EXPRESSSION_GUIDL - CALC EXPRESSSION GUIDL

ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Calculations

In ABAP, the arithmetic operators in arithmetic expressions are used for numeric calculations. Calculation assignments with the operators +=, -=, *=, and /= are available for the basic arithmetic operations. These operator formats are accompanied by the dedicated ABAP keywords ADD, SUBTRACT, MULTIPLY, and DIVIDE.

Use the operator format

For calculations, use the operator format with the operators (+=, -=, *=, or /=) instead of the ABAP keyword format.

Calculations with the statements ADD, SUBTRACT, MULTIPLY, and DIVIDE do not allow expressions in the operand positions and are often more difficult to read than the corresponding operator format.

The following source code shows a multiplication using the statement MULTIPLY.

MULTIPLY n1 by n2.

The following source code shows the same example as above, but in the more compact operator format.

n1 *=  n2.






Fill RESBD Structure from EBP Component Structure   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1829 Date: 20240328 Time: 162910     sap01-206 ( 38 ms )