on 04-16-2008 10:54 AM
Hi everybody.
In my form currency values are gettng displayed like 20,000-( if negative value is there)
i want in my form - (negative)sign should come in front of the currency like -20,000 please let me know how to make it.
i want it from 20,000- to -20,000
Thanks
Hi,
Leading Sign to the Left
The leading sign is normally displayed to the right of a numeric value, except in the case of a floating point number. This option enables you to specify that the leading sign should be placed to the left of the number.
Syntax
&symbol(<)&
&ITCDP-TDULPOS& -> 100.00-
&ITCDP-TDULPOS(<)& -> -100.00
The SET SIGN LEFT control command specifies that all subsequent symbols with a numeric value should have a left-justified leading sign. If you use this control command, you must no longer repeat the < option for each individual symbol.
OR
Use the function module CLOI_PUT_SIGN_IN_FRONT to bring the sign to front.
if itab-shkzg = 'H'.
v_amount = itab-shkzg.
else.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = itab-shkzg.
v_amount = itab-shkzg
endif.
Also check this thread.
Regards,
Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.