Hi,
How a Raw Material is created with valuation class?
Use t.code:MM02, enter valuation class in accounting-1 view and save,If valuation class allowed to change for material with field selection for your material type{check control on Field Reference (OMS9) and Selection Group (OMSR), also check your needed valuation class linked to account category reference}
Regards,
Biju K