This does not explain why a number can be wrong. If that is the case the number in the source system is wrong too.
So you should not try to restrict the end (MATMAS Idoc), do the customizing where the problem starts as this can be restricted easily. How to do this is explained countless times in SCN.