BOM entry need to enter the semi-finished parts?

need to enter semi-finished products, or directly from finished goods to raw materials, BOM table has a hierarchical relationship, the first layer of finished goods, the last layer of raw materials, in the middle of semi-finished products. Semi-finished goods processing costs, it should be discounted production costs, specifically how to calculate the need to ask the Ministry of Finance.