When you create a cost component, there are selection parameters where you need to tick whether you want the cost roll up or not.
The Tcode for the maintaining cost component structure is OKTG. Double click on the cost component where you want cost rollup. Tick the "Roll up cost component".
Good evening and greetings,
It is the standard Product Costing functionality that would do the cost rollup based on cost component structure, BOM and Routing for a product.
The material cost i.e. RM cost would flow from the material material price and as per BOM.
The production cost is picked up through Routing and the routing would have work centres. The work centres would have activity types and cost centre which are mapped together using KP26 price planning to rollup the production cost.
The costing sheet would do the addition of material cost, material OH cost (% or amount on material cost) + production cost + production OH (% or amount on production cost) to arrive at the final cost.
Please reward points if found useful
With kindest regards