Once you have defined the relevant costing keys, you will need to assign them to the relevant objects In order to compute a cost of sales valuation in CO-PA. In order to assign the costing keys you would need to go to the configuration menu path: Controlling -> Profitability Analysis -> Master Data -> Valuation.
More