‎2008 Feb 06 9:00 AM
Hi,
My program amount is disply 2000- but i want display the amount like this -2000.
please tell me.
‎2008 Feb 06 9:01 AM
‎2008 Feb 06 9:02 AM
‎2008 Feb 06 9:03 AM
‎2008 Feb 06 9:03 AM
Move minus sign from end to begining of number value
i.e. from 100.00- to -100.00
check if negative amount
IF p_amount LT 0.
SHIFT p_amount RIGHT DELETING TRAILING '-'.
SHIFT p_amount LEFT DELETING LEADING ' '.
CONCATENATE '-' p_amount INTO p_amount.
ELSE.
SHIFT p_amount LEFT DELETING LEADING ' '.
ENDIF.
‎2008 Feb 06 9:04 AM
Follow these steps:
1. Multiply this value by -1.
2. Declare a variable type string.
3. And then write :
Concatenate '-' <variable> into <variable>.
You shall surely get the output.
reward pts if u find it useful.
‎2008 Feb 06 9:04 AM
Hello Karunasri Vinnakota,
If it is character field you can do that. Other than character fields negative values will be displayed like that only. There is no other alternative to do that.
If it is character field You can use the FM CLOI_PUT_SIGN_IN_FRONT
Reward If Helpful.
Regards
--
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Feb 6, 2008 2:35 PM
‎2008 Feb 06 9:41 AM
‎2008 Feb 06 10:00 AM
Hi,
How we move string data type to currency data type.
It is possible or not.