The logic is basically in program RMLEF000.
But it is complex and without knowing much more details I am not able to tell you it. There is also a user exit that can be used to influence the update.
do you have somewhere a copied system where you can check if the MAPE record already existed or if it got created with VE67?
I would suggest that an ABAPer does a check with the debugger.