Hi Maria,
In material master MRP2 view give batch entry = 3 -Automatic batch determination upon release of order. You can also contol the same through config - OPKP for the Plant and Prod scheduling profile combination, in the "Auto batch creation in the order" field maintain "2" Automatic batch creation at order release.
Thanks & Regards,
Ramagiri