on 04-18-2007 6:17 AM
Hi Experts,
In Smartforms, I hv a need like prefixing the $ symbol in front of the Price field with out gap! So,
I did like, but not accepting! (error is like, only allowed with CNDT types!)
How to Concatenate '$' wa_vbap-kzwi4 into wa_vbap-kzwi4.
(condense wa_vbap-kzwi4 no-gaps.)
ThanQ.
Message was edited by:
Sridhar
is this field wa_vbap-kzwi4 a character field??
u can concatenate only using character fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
You can only concatenate character fields. If wa_vbap-kzwi4 is not a character field, this is what you can do -
DATA : w_char(20) type c.
MOVE : wa_vbap-kzwi4 to w_char.
CONCATENATE '$' w_char INTO w_char.
CONDENSE w_char NO-GAPS.
Now you can use the field w_char to print the price in Smartform.
Hope this helps!
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai,
Do like this.
<b>DATA:
W_CURR(15) TYPE C.
CONCATENATE '$' CURRENCY INTO W_CHAR.</b>
Now pass W_CHAR to smartform instead of CURRENCY filed.
This is beacaue currency field can'nit hold characters.It holds only numeric values.
Reward points if it helps you.
Regds,
Ram chary.Pammi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.