Hi,
create a two new account assignment categories COGS(Ex: CG) and Scrap Income(EX:SI)
Assign it to respective materials in MMR :Sales :Sales org2-Account Assignment Group fields.. Configure Revenue Account determination(VKOA) settings in IMG.
Regards,
Krishna.