cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenate $ Currenncy field?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

is this field wa_vbap-kzwi4 a character field??

u can concatenate only using character fields

Former Member
0 Kudos

Hi,

No, Its a Currency field, thats y I am struggling!

ThanQ.

Former Member
0 Kudos

Then u have to declare one more CHAR field and move the currency field to that and then use concatenate

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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