web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Vend trans and GAE table link

(0) ShareShare
ReportReport
Posted on by 5

Hello 

any one knows how to link the vend transaction table with general journal account entry table? i have tried to link 1) vend trans with GE table 2) GE with GAE table but the output is not the right one 

thanks 

Amal 

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi amal,

    Are you using GeneralJournalAccountEntryEntity to get data for the report? If yes, it already contains voucher and accounting data fields which can be used to link VendTrans by Voucher and TransDate.

    If you want to use tables, first, you need to link GeneralJournalEntry table by voucher and accounting date as well to VentTrans and after GeneralJournalAccountEntry to GeneralJournalEntry table.

  • amal Profile Picture
    5 on at

    thanks Sergei, in fact i have linked the tables as you suggested but when i try to summarize at the main account level then i dont get the right data out

    i am trying to do something similar to the vendor to ledger reconciliation report with all companies overview and both reporting and accounting currencies  

    thanks

    Amal

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Amal,

    Could share more details about how you created a query and what you are comparing with?

  • amal Profile Picture
    5 on at

    Hi Sergei

    see below, i am comparing the sum result with vendor to ledger reconciliation report

    not sure if this is the right logic , but i would like the query to sum all the voucher numbers from vend trans that exist in the GAE and the filtered main account and posting type= vendor balance

    Thanks

    Amal

    SELECT        MA.Name AS [Main account name], MA.Value AS [Main Account], GAE.AccountingCurrencyAmount AS [Ledger Balance], GAE.ReportingCurrencyAmount AS [Ledger Balance],

                            std.VendorTransactions.AmountMST AS Expr1, std.VendorTransactions.ReportingCurrencyAmount AS Expr2, GE.SubledgerVoucherDataAreaId

    FROM            std.VendorTransactions INNER JOIN

                            std.Generaljournalentry AS GE INNER JOIN

                            std.GeneralJournalaccountentry AS GAE INNER JOIN

                            dbo.MainAccount AS MA ON GAE.MainAccountId = MA.Id ON GE.RecId = GAE.GeneralJournalEntry ON std.VendorTransactions.Voucher = GE.SubledgerVoucher AND

                            std.VendorTransactions.TransDate = GE.AccountingDate

    WHERE        (GE.AccountingDate BETWEEN CONVERT(DATETIME, '2020-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2020-01-31 00:00:00', 102)) AND (GAE.Postingtype = 41) AND (MA.Value = N'921100')

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Amal,

    I can suspect that link by DataAreaId is missing between VendTrans and GJE and you have the same vouchers it could give incorrect output.

    vendTrans.DATAAREAID = Generaljournalentry.SUBLEDGERVOUCHERDATAAREAID

  • amal Profile Picture
    5 on at

    thanks Sergei, will try this one and see if i get the right result

    will keep you posted

  • amal Profile Picture
    5 on at

    hello

    quick update, i still get duplicates records on the vouchers so the result is still not the correct one, any idea on how to delete the duplicates ?

    thanks 

    Amal 

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Amal,

    I think you need to take one voucher with duplicates and check transactions in D365 to understand what can cause it. Probably you need to add an additional filter for excluding some transactions from GeneralJournalaccountentry.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans