Notifications
Announcements
No record found.
Hi
I would like to know if somebody can help me with the tables that I have to use in order to do a query showing who did the JE and who approve it and when?
Thanks
*This post is locked for comments
Hi,
You can use the following query to get the data like createdBy, approvedby, createddatetime on the JE. Please let me know if anything is missing.
select ledgerJournalTable.APPROVER, generalJournalEntry.SUBLEDGERVOUCHER, journalAccountEntry.POSTINGTYPE, ledgerJournalTable.CREATEDBY, ledgerJournalTable.CREATEDDATETIME from GeneralJournalAccountEntry as journalAccountEntry inner join generalJournalEntry on ((generalJournalEntry.RecId = journalAccountEntry.GeneralJournalEntry) and (generalJournalEntry.SubledgerVoucherDataAreaId = 'XYZ')) -- specify companyId inner join subledgerVoucherGeneralJournalEntry on (subledgerVoucherGeneralJournalEntry.GeneralJournalEntry = generalJournalEntry.RecId) inner join ledgerJournalTrans on ledgerJournalTrans.Voucher = subledgerVoucherGeneralJournalEntry.Voucher inner join ledgerJournalTable on ledgerJournalTable.JournalNum = ledgerJournalTrans.JournalNum
Thank you Chaitanya
But when I run that query I got a 0 on the Approver field.
I need a query to run a report similar to the Ledger transaction Report-Audit.
But looks like the approver is not in the ledgerJournalTable .
Thank you Sukrut
Please use the below query.
select dirPartyTable.NAME as [Approver], generalJournalEntry.SUBLEDGERVOUCHER, journalAccountEntry.POSTINGTYPE, ledgerJournalTable.CREATEDBY, ledgerJournalTable.CREATEDDATETIME from GeneralJournalAccountEntry as journalAccountEntry inner join generalJournalEntry on ((generalJournalEntry.RecId = journalAccountEntry.GeneralJournalEntry) and (generalJournalEntry.SubledgerVoucherDataAreaId = '3B10')) -- specify companyId inner join subledgerVoucherGeneralJournalEntry on (subledgerVoucherGeneralJournalEntry.GeneralJournalEntry = generalJournalEntry.RecId) inner join ledgerJournalTrans on ledgerJournalTrans.Voucher = subledgerVoucherGeneralJournalEntry.Voucher inner join ledgerJournalTable on ledgerJournalTable.JournalNum = ledgerJournalTrans.JournalNum inner join hcmworker on ledgerJournalTable.Approver = hcmWorker.RecId inner join dirPartyTable on hcmWorker.Person = dirPartyTable.RecId
details example and good explanation is here
instructorbrandon.com/sql-for-general-ledger-data-by-dimension-for-building-non-ax-reports-with-ax-data-part-3-final
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2