Step-1: go to transaction FB50 to post the cost center.
Step-2: Enter the Company Code and click on tick mark.
Step-3: Enter Document date, Company code, Debit Entry G/L Account, Debit amount, Cost center, Credit Entry G/L account, credit amount, etc.
Step-4: Click on the Save button to post the cost center.