Hi all experts,
I am working on a sapscript in which I need to display the positive and negative amounts in separate columns.
I added two columns into the sapscript, namely Debit and Credit columns. Previously it was a single Amount column.
Currently, my requiremnt is that If the amount values is negative, i will display it in
the credit column and vice versa.
The amount field is having CURRENCY data type.
I am using the following code for separating the positive & negative amounts.
/: IF &RF140-WRSHB& < 0
*credit column*
/: ELSE
*debit column*
But this code is not working and all the positive and negative values are going in the same column.
Please help me in getting the values displayed separately.
Best regards,
Lucy