ABAPASSIGN_DECIMALS - ASSIGN DECIMALS

CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

ASSIGN

Addition 3

... DECIMALS dec
See Obsolete casting in ASSIGN not allowed.

Effect

You should only use this addition with type P. The field symbol has dec decimal places.

Example

Display output in TDM

DATA SALES_DEC2(10) TYPE P DECIMALS 2 VALUE 1234567.
FIELD-SYMBOLS <SALES_DEC5> TYPE ANY.

ASSIGN SALES_DEC2 TO <SALES_DEC5> DECIMALS 5.
WRITE: / SALES_DEC2,
       / <SALES_DEC5>.

Output:
        1.234.567,00
         1.234,56700


Note

This statement causes a runtime error if the field symbol does not have type P or the number of decimal places is not between 0 and 14.


Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 1166 Date: 20120518 Time: 192019     triton ( 33 ms )