If you only calculate std cost for raw material with do not cost flag, System don’t calculate std cost.
If you calculate std cost for FG or SFG which have raw material with do not cost flag as bom item, System calculate STD cost including the raw material’s cost.
To avoid it, raw material with do not cost flag as bom item have space for Relevancy to Costing .