Hi Supriya,
Check the Valuation variant settings in the Costing Variant defined for Unit Costing.
Define material Valuation in the desired sequence.
Secondly in txn OBYC, check setting for transaction BSX >> valid G/L account must be maintained against valuation modif. & valuation class (of the material).