09-07-2008 10:36 AM
Hi Experts,
In my output I have amount values like this 7000.4800. Actually my requirement is to display the output like 7000.48 I dont need the last two decimal points.
How to delete the last two decimal points in the output. Is there any function module or any simple ways to go. Any data element exists with decimal 2 points if so please send your answer.
Thanks,
Sakthi
09-07-2008 10:47 AM
Hi,
If u are using write statement then use decimals addition.
eg: WRITE: /1 wa_final-currency DECIMALS 2.
If u are using ALV then modify the fieldcat for this column by passing decimals equal to 2.
Thanks,
Vinod.
09-07-2008 10:44 AM
create a variable like this
data: var type p decimals 2." restricts decimals to 2.
09-07-2008 10:47 AM
Hi,
If u are using write statement then use decimals addition.
eg: WRITE: /1 wa_final-currency DECIMALS 2.
If u are using ALV then modify the fieldcat for this column by passing decimals equal to 2.
Thanks,
Vinod.
09-07-2008 10:59 AM
Thanks for your response.
Problem solved.
Hope you got your points.
Thanks,
Sakthi