As of Release 4.6A, you can use internal batch number assignment for goods receipts for purchase orders that have an account assignment.
In Customizing for Batch Management, you can configure this function in the step
Internal Batch Number Assignment.