10-01-2008 10:40 AM
Hi
Is there any function module apart from ( CLOI_PUT_SIGN_IN_FRONT ) to move the negative sign from the left hand side of a number, to the right hand side of the number.
Regards
Sathya
10-01-2008 10:43 AM
Hi
I think by default it comes on right, to move to left we use the funciton module CLOI_PUT_SIGN_IN_FRONT
Regards
MD
Edited by: Madhan Doraikannan on Oct 1, 2008 11:43 AM
10-01-2008 10:46 AM
hi
by default negative sign will come on right side.
if you want negative sign on left side of a number use this piece of code.
IF fc_wk_field LT 0.
SHIFT fc_wk_field RIGHT DELETING TRAILING '-'.
SHIFT fc_wk_field LEFT DELETING LEADING ' '.
CONCATENATE '-' fc_wk_field INTO fc_wk_field.
endif.