on 07-27-2007 7:39 AM
hi all,
after passing through a function module i m getting a variable v_flash which is charc type , its value is coming 25.00-C n i want it to be as -25.00C at output
how can i do that .
himanshu sharma
hi,
after using this CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
sign is coming in front but the this is 25.00-*C is changed to -25.00 and the *C is not coming so how to bring that .
himanshu sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this code after getting the v_flash value from FM.
-
******************----
data text1(10) type c.
search v_flash for '-'.
if sy-subrc = 0 and sy-fdpos <> 0.
split v_flash at '-' into v_flash text1.
condense v_flash.
condense text1.
concatenate '-' v_flash text1 into v_flash.
else.
condense v_flash.
endif.
-
*****************----
If this solves ur query kindly close the thread and award points.
Cheers
Shafiq
Usually program symbols with numeric values can have leading sign.
Not sure it works on character fields or not. Since it is a numeric value try like this..
v_flash& --> 1000-
&v_flash(<)& --> -1000
OR
I guess this can be done by adding program lines in your Sf and using FM 'CLOI_PUT_SIGN_IN_FRONT'
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharma,
Yes, as per the above solutions we can move.
Reply for queries.
Regards,
Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Use the following function module for u r requirement
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = gv_temp_var1.
Regards,
Sankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Afetr getting the value..
Use this code..
v_amount = neg_value.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = v_amount.
write v_amount.
Reward if it helps..
Regards,
Omkar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.