Error quantities for BOM?

I have a new project where I need to give insight in the error quantities during production. I have seen that AX has room to fill in ‘good quantity’ and ‘error quantity’. However, if I understand it correctly, that’s only for production orders.

If I take the example in the Dynamics AX courses (with a production oredr for baking cakes) than I wantto have insight in the following information:

Production Order: 5 cakes

BOM: 5 eggs, 2 kg flour, 1kg sugar.

RAF: 4 cakes

6 eggs ( I broke 3)

500gr sugar

etc

At the end I want to have reports where I can show the difference between calculated materials and finished good and actual usage of materials and finished goods. I think it has something to do with cost accounting too, but the AX tutorials aren’t clear about this. Can someone give me a start where to find information to do this? How can I view the good/error quantity for both materials AND finished goods?