2005 Dec 14 6:58 AM
i want to display 4- as -4 do we have any function module
or any abap statements to convert 4- to -4
2005 Dec 14 7:06 AM
2005 Dec 14 7:19 AM
data int type i.
data char(10).
int = -4.
int = int * -1.
write int to char.
concatenate '-' char into char.
try this...
2005 Dec 14 12:51 PM
can use this
IF SIGN( V_FLDVAL ) EQ '1-'.
SPLIT V_FLDVAL AT '-' INTO ACT MINUS.
SHIFT ACT LEFT DELETING LEADING SPACE.
CONCATENATE '-' ACT INTO V_FLDVAL.
ENDIF.
Regards,
Bikash.
Please close the thread if u r done.
2005 Dec 14 1:19 PM
use FM CLOI_PUT_SIGN_IN_FRONT , but u have to declare the amount field as char