Hi,
Is the routine related to free goods calculation (VBN1). If yes, check what is the calculation routine type- Prorata ; unit reference or whole units.
Can you paste the screenshot of your routine and its assignment in pricing procedure.
Regards,
DPM