Salary Structure Report

I am to build a salary structure report.
Where in I need the headers from earning and deduction components.

Headers:
(ID, Name, Designation, Month I get these) but (Earning Components- Basic, Housing Allw, Others, Service Charges etc then Deduction Components - Charges), (Total Earning , Total Deduction, Total Payable. these are possible).

Anyone who can guide?