I am an Abaper got a requirement for HR .
This is the requirement .
Procedure client does
In Pa30 14infty 1180 sbty they give 12 litres in number/unit field(p0014-anzhl) or if 2 leaves then they calculate like this 30-2 = 28 so for 28 days how much litre petrol they should give (28/30) * 12= 11.2 litres they enter.
Now as an abaper i need to do this automaticaly putting the value when they create this value should fall into field.
For this i found implicit enhancement point but the thing is subtract is not working here.
using FIMA_DAYS_AND_MONTHS_AND_YEARS got total days between dates entered
from pa2001 table got all the leaves and added now i am subtracting total days - leaves to get remaining leaves
this subtraction is not working
i am unable to subtracct an floating decimal from an integer.