‎2007 Oct 12 4:22 AM
hai how to change sign of a variable based on some condition.
i means based on condition the positive value should become negative value pls help me
‎2007 Oct 12 4:23 AM
‎2007 Oct 12 4:23 AM
‎2007 Oct 12 4:24 AM
check condition and just multiply by -1 if condition is true for change of sign
Rewards if useful.........
Minal
‎2007 Oct 12 4:24 AM
if <condition> = TRUE.
value = value * (-1).
endif.
Just multiply with -1 (MINUS ONE) if the condition satisfies
Regards
Gopi
‎2007 Oct 12 4:28 AM
Hi,
use this FM.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = v_amount.Thanks,
Reward If Helpful.