Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

How to Display positive & negative values separately in SAPSCRIPT

$
0
0

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


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>