How to split COGS by raw material group?

Hi, How can I get the split of COGS in P&L? I want to specifically split it into 3 categories: raw material, packaging material and consumables. But once i have made a manufacturing entry, FG valuation is set at the overall value, and then booking any sales leads to just overall COGS entry into PnL. Please help.