I am facing an issue with decimals after calculation.
Below is my calculation.
l_sales_amt_round = lwa_post_data-cccur_sale +
( lwa_post_data-cccur_sale *
Here lwa_post_data-cccur_sale has 2 decimals
wa_post_data-taxper has 3 decimals.
Result variable l_sales_amt_round of type f. ( Tried with TYPE P DECIMALS 3).
Is there any way to extract only the first 2 decimals into an amount field. I dont want this in character field.
eg: lwa_post_data-cccur_sale = 4854.00
wa_post_data-taxper = 0.175
Then l_sales_amt_round = 5.7034499999999998E+03
But when i move this to TYPE P DECIMALS 2 it is rounding to 5703.45.
But my requirement is to get 5703.44.
Is there any way to achieve this.