2008 Feb 04 11:53 AM
hi,
i have variable1 like bsid-wrbtr but when stored in variable1 it only stores for example, 12345.80 and not 12,345.80.
may i know how to add the thousand separator into this variable1 where i subsequently move to a text type variable2. this text type variable2 will store value 12,345.80 and not 12345.80.
thanks
2008 Feb 04 11:55 AM
when u move CURR /QUAN fields to text variables, u will not get commas.
If u need it in print, use ALV thousand separator options
Narendra
2008 Feb 04 11:57 AM
Hi,
check your defalut user paramters
on the menu bar
system>User profile> own data
In that click on defaults and check Decimal notation
Regards,
Satish
2008 Feb 04 11:58 AM
Hi,
use this
data: val type bsik-wrbtr value '1434323.00'.
write:/ val.
if the output is 1434323.00
then change the settings in you user menu
system- user profile=- own data
defaults
Decimal Notation check here
regards,
Venkatesh
2008 Feb 04 11:58 AM
write bsid-wrbtr into stringvar
where stringvar is a char or streing variable. Depending on your usersettings (transaction su3) the amount is formatted.
2008 Feb 04 11:58 AM
Hi
Use the WRITE statament to move the amount from currency field to char field:
WRITE VARIABLE1 CURRENCY <CURRENCY CODE> TO VARIABLE2.
Max
2008 Feb 04 12:01 PM
Hi,
System Internally stores the data in 1234.00 you will not find any comma for thousand separators. This separator will depend on the user profile. To check whether you have thousand separator or not.
Go to SU01 --> Input user name --> display --> Click on Default tab there you will find the Decimal notation.
And currency display notation will be changed from currency to currency. For that you need to write statement with currency.
Thanks,
Sriram Ponna.
Edited by: Sriram Ponna on Feb 4, 2008 5:32 PM
2008 Feb 04 12:13 PM
Ok..Try like this...
DATA l_amount TYPE bsid-wrbtr VALUE '12345.80'.
DATA l_char_amount(16).
WRITE l_amount TO l_char_amount.
WRITE 😕 l_amount.
WRITE 😕 l_char_amount.
2008 Aug 01 8:30 AM
Hi,
i was looking for a solution for this and thanx Perez C , ur solution has worked fine for me.thanx again.
2011 Dec 22 7:54 AM