Skip to Content
0
Former Member
Jul 27, 2006 at 10:22 PM

decimals

20 Views

Hi all,

this is my code

MOVE ITAB_COSR-SME001 TO ITAB_CCOSR-SME001.

ITAB_CCOSR-SME001 = ( ITAB_CCOSR-SME001 ) - ( ITAB_CCOSR-SME001 * P1 / 100 ).

if decimal is grater than 5 i need to take whole value.

if value is 11.88 i need to take it is 12.

else i need to take it as 11.

for that i have written this code .but its not working.

IF ITAB_CCOSR-SME001+3(1) > '5'.

ITAB_CCOSR-SME001 = ITAB_CCOSR-SME001 + 1.

ELSE.

ITAB_CCOSR-SME001+0(02) TO ITAB_CCOSR-SME001.

ENDIF.

is there any other method to take whole value?

Thanks,