2007 Jul 25 11:40 AM
I am getting output as 1,000.53.But, I want to remove the comma and the result to be displayed as 1000.53.
2007 Jul 25 11:54 AM
hi veeru,
try this replace keyword.
data : var type string value '1,000'.
write var.
replace all occurrences of ',' in var with ''.
write : / var.
Regards,
Roshani
2007 Jul 25 11:44 AM
Hi,
Let, v1 = 1,000.53.
U want 1000.53 in v2.
concatenate v10(1) v12(6) into v2.
Reward points if helpful.
Regards.
Srikanta Gope
2007 Jul 25 11:44 AM
2007 Jul 25 11:45 AM
Goto ->
System -> User Profile -> Own data -> Defaults -> Decimal Notation..
make ur choice parameters without comma...
In ur all reports, you will see decimal numbers without comma...
Reward if useful
Regards
Prax
2007 Jul 25 11:47 AM
Hi Veera,
You can change this in transaction SU01 in tab defaults. But this is going to change this only for your user...
Regards,
Marcelo Moreira
2007 Jul 25 11:54 AM
hi veeru,
try this replace keyword.
data : var type string value '1,000'.
write var.
replace all occurrences of ',' in var with ''.
write : / var.
Regards,
Roshani
2007 Jul 25 12:34 PM
Hi,
There are two ways to do this.
1. Execute transaction SU3 -> Defaults -> Decimal Notation. Altering this will give your results. But this will be for all your transactions.
2. Changing the variable to character format. This is easier and specific to your program only.
Hope it helps. Award points if useful.
- Irudayaraj Peter
2007 Jul 25 1:04 PM
hi veera,
if ur variable is numeric type then first convert it into a string type variable
data var TYPE p LENGTH 8 DECIMALS 2 value '10000000.86'.
data var1 type string.
write var.
var1 = var.
write : / var1.
Regards,
Roshani