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

Announcements

No record found.

News and Announcements icon
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,788 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans