Skip to Content
0
Former Member
Dec 03, 2007 at 03:46 AM

To Calulate Balance

29 Views

Hi Friends,

I Have field to calculate balance .

If it is ranges from + 50 to -50 it should be written as settled.

if not print the value of balance , here i am giving the code but i am unable to include negative value. i am getting error.

IT_FINAL1-BALANCE = IT_FINAL1-TOT_AMOUNT - IT_FINAL1-FC_AMT.

IF IT_FINAL1-BALANCE GE 50 OR IT_FINAL1-BALANCE LE ( - 50 ).

IT_FINAL1-BALANCE = 'Settled'.

ENDIF.

Thanks in advance.

ramesh