Dear,
You can use BOMs with alternative components, which should be selected at prodcuction order release or material staging (shopfloor or warehouse).
Then the system will make the consumption of the correct material.
Please check the document below.
Alternative materials in BOM & Production Order
Rgds,
Marcio