Custtable and GeneralJournalAccountEntry

I am extracting the information from GeneralJournalAccountEntry. LedgerAccount field in GeneralJournalAccountEntry has productcategory-customeraccount etc. How do i link GeneralJournalAccountEntry with Custtable to get customer name