Dear Waqas,
I think this is because of price is zero in material master. There is also one option that remove costing relevance indicator from bom for the time being and when your material master has price then you again put the cost relevance indicator .
Regards,
Saurabh