If you are setting up costs groups you might want to consider the effect of the default costs groups. These can be applied to the different cost group types for example direct materials. So if the item doesn’t have a cost group assigned then the default cost group will be applied.
Here is a quick overview.
AX2012 R3 CU11