Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with thousands separator

Former Member
0 Likes
726

Hi,

I'am working on dunning letters print and i've a problem with the thousands separator.

Data is stored in a table field typed CURR. The intern format is 119600,60

When i print directly this value on my SmartForm, there are many blanks before the number, corresponding to the size of the variable (15 caracters). I don't know hax to remove this blanks.

I tried to change the type of the variable by moving the value into a CHAR variable. The result is better : the blanks have been cleared out but unfortunatelly, the thousands seperators too.

Does someone know how to put the value of a variable typed CURR in a string or a char variable with thousands separators ?

To sum up my query :

The CURR variable contains 119600,60

I want a String or a char variable containing 119 600,00

Thanks a lot

regards

Edited by: Larrière Dorian on Jun 19, 2008 11:53 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
685

l_curr  = '1212.45'.

write l_curr to l_string.
condense l_string no-gaps.
write: l_string.

4 REPLIES 4
Read only

Former Member
0 Likes
686

l_curr  = '1212.45'.

write l_curr to l_string.
condense l_string no-gaps.
write: l_string.

Read only

former_member195383
Active Contributor
0 Likes
685

Hi...

write : wf_cu LEFT-JUSTIFIED.

This state ment removes the blanks at the beginning....

The wf_cu may be of curr type

Edited by: Rudra Prasanna Mohapatra on Jun 19, 2008 12:08 PM

Read only

Former Member
0 Likes
685

REPORT YCURR.

DATA: LV_CURR TYPE VBAK-NETWR.

LV_CURR = '10000000'.

WRITE: 'CURR', LV_CURR LEFT-JUSTIFIED.

Regards,

Janani

Read only

Former Member
0 Likes
685

hi,

use FM BAPI_CURRENCY_CONV_TO_EXTERNAL

Rgds.

subash