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 55

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

  • nadiah sukerman Profile Picture
    nadiah sukerman 55 on at
    RE: How to link from GeneralJournalAccountEntry and LedgerJournalTrans

    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)?

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to link from GeneralJournalAccountEntry and LedgerJournalTrans

    Hello nadiah sukerman,

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

    Best regards,

    Ludwig

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to link from GeneralJournalAccountEntry and LedgerJournalTrans

    Hello nadiah sukerman,

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

    Best regards,

    Ludwig

  • Ajit Profile Picture
    Ajit 8,755 on at
    RE: How to link from GeneralJournalAccountEntry and LedgerJournalTrans

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

  • Verified answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to link from GeneralJournalAccountEntry and LedgerJournalTrans

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans