Same Item Code in BOM

I am encountering an issue where I have selected the same item code for both finished goods (FG) and raw materials, but the operations are different. However, the ERP system does not seem to handle this correctly. Can you please assist?