Skip to Content
0
Former Member
Jul 21, 2009 at 09:16 AM

Need help in abap logic

25 Views

Hi All,

I need to concatenate '$' sign to a currency field.

The code i am using is -

-


DATA L_TOTAL_PRICE TYPE CHAR15.

L_TOTAL_PRICE = W_CAT2_PRICE. " W_CAT2_PRICE is currency field and its (type is CRMT_NET_PRICE....(in CRM)

CONDENSE L_TOTAL_PRICE.

CONCATENATE W_DOLLAR L_TOTAL_PRICE INTO W_TOT_PRICE.

-


The problem i am facing is 'COMMAs' are getting omitted as i have taken L_TOTAL_PRICE TYPE CHAR15.

If I take L_TOTAL_PRICE TYPE P then it gives a dump as the '$' cannot be interpreted.

I want the output to be like $1,23,456.00 (with commas) and i am getting $123456.00 (without commas).

Please help guys !!!