Dear experts,
I have a strange issue with transactions QA11 and QA16 when taking UD that change stock status from Quality inspection to Unrestricted: I always get the error M7021: Deficit of BA Stck. in qual.insp.
If I run QA16 in foreground I see this situation happens:

The quantity posted is always the double of the insp. lot quantity, apparently with no reason.
If I run the same inspection lot in QA11 (with the same UD code) I'll get the correct quantity to be posted (22), so I cannot understand how QA11 and QA16 actually work.
How to solve?
Many thanks in advance for your time
Marco