Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

To Calulate Balance

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

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question