Ledger Report

I have to create ledger reports of customer and vendors with running balances in SSRS from Dynamics ax 2009 how can i get information about the tables plz some one help me plz

Use ledgerTrans and VendTrans for getting the vendor balances (join them by using voucher and TransDate)

LedgerTrans and CustTrans for getting the customer balance(join them by using voucher and TransDate)