Hi VS
Do you want to capture the COGS in sales order itself??
If your intention is to accumulate the ccosts and revenue on SO, it must be defined as a Co object
Use account assignment category as E. Your requirement type must call a req class which calls AAC = E
Br. Ajay M