Hi KVKS,
Batch number you could not assign in to the BOM component of BOM. But you ca assign it into production order component overview. That can possible manually or automatically.
Automatically you can do through automatic batch determination procedure.
1. Create a characteristics data type as a Date. T Code: CT04
2. Create class. T Code: CL 02
3. Create sort rule. T code: CU70
4. Create selection criteria and assign sort rule as a ascending or descending (FIFO / LIFO) against movement type 261. T Code: MBC1, Put strategy type ME01.
5. SPRO setting is there for batch determination procedure creation and assign it into T Code: OMCG and check on the tick botton.