I thought that primary costs are maintained in General Ledger, whereas secondary costs are maintained in Controlling, so in the Cost Center. Is that correct?
See also:
https://blogs.sap.com/2010/12/20/back-to-basics-secondary-cost-elements-101/