Salary Component Ledger Posting or Journal Entry Posting

I noticed that Journal Entry Posting For payroll entry, is categorize by cost center, is it possible to also categorize by Dimension and or salary component

I’m particularly interested in the Salary Component grouping…I have many salary components going into the same account, Basic Salary, Housing Allowance, Transport Allowance, All going into the same account.But i want to be able to Generate or view the ledger showing each amount for each salary component.

Please can any body guide on how to achieve it… Thanks