Costing objecct is reqd

Some experts were saying that assign your cost element to profit center in OKB9 and others saying that assign your cost center in cost element master data under account assignment tab. Technically which one is correct?