‎2009 Mar 05 6:33 PM
Hi,
I want to convert numeric data(variable declared as numeric) to negative amount. so that after adding with positive amount it will be automatically deduct with that amount.
Thanks
‎2009 Mar 05 6:52 PM
‎2009 Mar 05 6:45 PM
‎2009 Mar 05 6:45 PM
Hi,
Please test the following code may be you need like this.
DATA amount TYPE i.
amount = '-23'.
amount = amount + 40.
WRITE: amount.Please Reply if else requirement
Kind Regards,
Faisal
‎2009 Mar 05 6:52 PM
‎2009 Mar 05 6:53 PM
Hi there..
just multiply by - 1.
lv_negatvie = -1.
lv_numc = lv_numc * lv_negative.