Dear Antonio Martinez,
Thanks for describing details scenario. Please do following change in your system & check which help you to resolve this issue.
Convert warning message no. M7517 into error message following given path provided .
SPRO->Material Management->Inventory management & Physical Inventory-> Define Attributes of system messages
Request you to change this message from warning to error & reply.
Best Regards,
Shyam