11-20-2007 9:45 AM
Hi Guru's
hw t o remove the decimal values in the quantity field.....
i want onl y numeric value
ex: i/p : 1483.00
o/p : 1483
Regards
Anand.N
11-20-2007 9:47 AM
Hi,
Just define ur variable as p with 0 decimals.
Ex. Data : lv_qunty type p decimals 0.
Regards,
Prashant
11-20-2007 9:47 AM
Hi,
Just define ur variable as p with 0 decimals.
Ex. Data : lv_qunty type p decimals 0.
Regards,
Prashant
11-20-2007 10:15 AM
Hi Anand,
do like this
Data: Var1(10) type p decimals 2 value '1483.00',
Var2 type i.
Var2 = Var1.
write var2.
Reward Points if this helps,
Satish
11-20-2007 10:38 AM
Hi
thanks for u r response,
But i am retriving data from database tables
quantity field declared in the form fo standard table filed.
then hw can i approach.
Regards
Anand .N
11-20-2007 10:44 AM
Hi,
in Internal table declare field with 0 decimals..
check this..
DATA : BEGIN OF itab OCCURS 0,
menge(16) type p decimals 0, "in EKPO menge is qty field
END OF itab.
SELECT menge INTO CORRESPONDING FIELDS OF TABLE itab FROM ekpo.
Message was edited by:
Perez C
11-20-2007 11:31 AM
Hi Anand,
then you need to use FM CONVERSION_EXIT_ALPHA_INPUT or CONVERSION_EXIT_ALPHA_OUTPUT on that field.
Regards,
Satish
11-20-2007 10:21 AM
Hi,
Do as below :
data : val type p decimals 2 value '100.00'.
data : result type i.
result = val.
write result.
Thanks,
Sriram Ponna.