‎2007 Feb 07 11:45 AM
Dear friends
I have field with the values like 1.000 and 17.10 , i need to cut the zeros after decimal point in case of 17.10 it should come like 17.1
give the sample code for the above
thanks in advance
karthik
‎2007 Feb 07 11:48 AM
write f no-zero.or pass the values to type C variable ..
i.e,
data : var(10),
var2 type f value '13.20'.
var = var2.
write var2.
‎2007 Feb 07 11:48 AM
write f no-zero.or pass the values to type C variable ..
i.e,
data : var(10),
var2 type f value '13.20'.
var = var2.
write var2.
‎2007 Feb 07 11:50 AM
hi santhos,
the value is in internal table , after correcting the data i need to pass it to another internal table.
‎2007 Feb 07 11:50 AM
If your variable is defined as string you can use:
SHIFT V_STRING RIGHT DELETING TRAILING '0'.