Hello,
Batch determination consider the stock as per the scope of check defined in OVZ9 for your checking group and rule (OPJK).
The restricted batch can be avoided via the batch determination. For this check the online documentation:
Batch Determination for Process and Production Orders - Batch Management (LO-BM) - SAP Library
Best Regards,
R.Brahmankar