‎2008 Jun 19 10:53 AM
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
‎2008 Jun 19 11:02 AM
l_curr = '1212.45'.
write l_curr to l_string.
condense l_string no-gaps.
write: l_string.
‎2008 Jun 19 11:02 AM
l_curr = '1212.45'.
write l_curr to l_string.
condense l_string no-gaps.
write: l_string.
‎2008 Jun 19 11:08 AM
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
‎2008 Jun 19 11:11 AM
REPORT YCURR.
DATA: LV_CURR TYPE VBAK-NETWR.
LV_CURR = '10000000'.
WRITE: 'CURR', LV_CURR LEFT-JUSTIFIED.
Regards,
Janani
‎2008 Jun 19 11:11 AM