Connect Accounts with Cost Centers

How to connect accounts with Cost Centers? In Employee cost center’s how can I get them in GL after Payroll entry?

In the Employee master, enter the “Payroll Cost Center”, this should be picked up by the Payroll entry.