How to confirm Sales Return if the following error ‘Cost of goods sold Account Code not defined in ITEM_ACCT_DETR.’ or ‘Invalid Account Code!’ (VTACCOGS) occurs on confirm button click?

Cause: 1) System will not allow to confirm Sales Return if new Item series is used in Sales and the item series is not mapped with acoount code in Item Account Determination. 2) System will show the error ‘Cost of goods sold Account Code not defined in ITEM_ACCT_DETR’.

Remedies: 1) User need to check the mapping of Item Series and Sales Return Account Code used in Item Account Determination master.
2) For Item Account Determination master, go to Finance->Finance Setup-> Masters->Item Account Determination.