N = ABS( M
). WRITE: 'ABS: ', N.
N = SIGN( M
). WRITE: / 'SIGN: ', N.
N = CEIL( M
). WRITE: / 'CEIL: ', N.
N = FLOOR( M ).
WRITE: / 'FLOOR:', N.
N = TRUNC( M ).
WRITE: / 'TRUNC:', N.
N = FRAC( M
). WRITE: / 'FRAC: ', N.
DATA:
lv_decimal TYPE mara-ntgew,
lv_frac TYPE mara-ntgew,
lv_string(11) .
lv_decimal = '22.592'.
lv_frac = FRAC( lv_decimal ) .
IF lv_frac IS INITIAL .
WRITE lv_decimal TO lv_string DECIMALS 0 .
WRITE lv_string.
else.
WRITE lv_frac .
ENDIF.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com
Social Plugin