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 :
Microsoft Dynamics AX (Archived)

How to link from GeneralJournalAccountEntry and LedgerJournalTrans

(0) ShareShare
ReportReport
Posted on by 59

Hi, currently I'm trying to link the GeneralJournalAccountEntry table with LedgerJournalTrans table. I have SQL script as below to link this two:

select GENERALJOURNALENTRY.RECID, *
from GENERALJOURNALENTRY
inner join GENERALJOURNALACCOUNTENTRY
on GENERALJOURNALENTRY.RECID = GENERALJOURNALACCOUNTENTRY.GENERALJOURNALENTRY
inner join SUBLEDGERVOUCHERGENERALJOURNALENTRY
on SUBLEDGERVOUCHERGENERALJOURNALENTRY.GENERALJOURNALENTRY = GENERALJOURNALENTRY.RECID
left join LEDGERJOURNALTRANS
on LEDGERJOURNALTRANS.VOUCHER = GENERALJOURNALENTRY.SUBLEDGERVOUCHER

Now I'm just using voucher as their key to link but It seems like I need another key to make them more unique and specific since my expected result is they're going to have one to one relationship. Is it possible? Is there anyone here who could help me or give me some ideas on this issue?

Your help greatly appreciated. Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Have you already checked out the discussions and answers provided in previous posts?

    See e.g. community.dynamics.com/.../relationship-between-generaljournalaccountentry-and-ledgerjournaltrans

    Also, please have look at the following whitepaper: download.microsoft.com/.../Updating the Uses of the Ledger Posting Framework for Microsoft Dynamics AX 2012.pdf

    Best regards,

    Ludwig

  • Ajit Profile Picture
    8,755 on at

    You can use Voucher, transDate and DataAreaId of ledgerJournalTrans and SubledgerVoucher,AccountingDate and SubledgerVoucherDataAreaId from GeneralJournalEntry.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello nadiah sukerman,

    Have you been able to get this issue resolved in the meantime?

    Best regards,

    Ludwig

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello nadiah sukerman,

    Have you been able to get this issue resolved in the meantime?

    Best regards,

    Ludwig

  • nadiah sukerman Profile Picture
    59 on at

    Not able yet. I still cannot get one to one even I already add another link using Ajit Srivastava suggestion answer. they still duplicate. Expected result should only show 3 lines under that certain voucher but currently it shows 9 lines. Is it not possible to achieve my objective (one-to-one)?

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans