Selecting between BOM at multilevel BOM

Dear All,

In case of multilevel BOM, is there any way to select at the second level between many existing BOM.

Best,
Elie

No readymade function, you need to write your own logic.