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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Detect posting layers in SQL table

(0) ShareShare
ReportReport
Posted on by 10

Hi,

For reporting purposes (outside AX) I need to find the right sql tables and fields on posting layers. The report must have a filter based on the reporting layer so the user can select what layer to report on.

Any suggestions?

Kind regards,

Johan

I have the same question (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    HI SCoPeS,

    You can use the tables - GeneralJournalEntry and GeneralJournalAccountEntry. The field "PostingLayer" is present in GeneralJournalEntry  table.

    SELECT * FROM GENERALJOURNALACCOUNTENTRY AS GJE
        JOIN GENERALJOURNALENTRY AS GJ ON GJ.RECID = GJE.GeneralJournalEntry

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Johan,

    Can you provide more information on your requirement because not all transactions can make use of posting layers.

    What kind of report do you need to create based on which data and where?

    Best regards,

    Ludwig

  • SCoPeS Profile Picture
    10 on at

    Thanks for your reply.

    I think it's an AX4 database, don't have access to the application itself.

    I did find CURRENTOPERATIONSTAX in the LEDGERJOURNALTABLE table and it seems to be the integer defining which posting layer it is.

    Would you happen to know if you need to accumulate the layers? That is, that if you want layer 2 (operations) you actually need layer 1+2?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi SCoPeS,

    If you have an AX4 database, please check table LedgerTrans. If you are looking for Operations layer, you should query by value 2 only.

    Could you please elaborate on what your exact requirementis?

  • SCoPeS Profile Picture
    10 on at

    Thanks. LedgerTrans does not hold that field. I found it in the related journalname table

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello SCoPeS,

    Where and how do you use the different posting layers; in the fixed asset module? If you use it there be careful because the fixed asset module is usually not setup in a way to record delta postings, which can result in a double counting of the numbers you add.

    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans