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)

GL Posting Date in ProdTable

(0) ShareShare
ReportReport
Posted on by 2,147

Hello,

Does anyone  know which date in ProdTable is associated with GL Posting Date?  Your help would be greatly appreciated.

thanks,

Tremor

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Tremor,

    The production order table does not contain a date field for transactions. The posting date is determined at journals and status updates.

  • Tremor Olaes Profile Picture
    2,147 on at

    Thanks Andre!  Is it safe to say that the ones with status of "Ended" would have a posting date in the journals?

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Tremor,

    You can view the log or all journals to see which date had been used. Also you can browse the inventory transactions and look at the financial date for the "Ended" date.

  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    ProdTable has a field named RealDate which indicates the date the production order was Ended.

  • Brandon Wiese Profile Picture
    17,788 on at

    I tested the theory that ProdTable.RealDate should be equal to MAX(InventTrans.DateFinancial), and across all 270k ProdTable records in my business database where the order was Ended, they are identical.

    Here's a quick query I used to look for cases where they were different, and 0 records returned.

    select p.[PARTITION], p.DATAAREAID, p.PRODID, p.REALDATE, MAX(t.DATEFINANCIAL) AS DATEFINANCIAL

     from PRODTABLE p

     join INVENTTRANSORIGIN o ON o.[PARTITION] = p.[PARTITION] AND o.DATAAREAID = p.DATAAREAID AND o.REFERENCEID = p.PRODID AND o.REFERENCECATEGORY = 2

     join INVENTTRANS t ON t.[PARTITION] = o.[PARTITION] AND t.DATAAREAID = o.DATAAREAID AND t.INVENTTRANSORIGIN = o.RECID

     where t.STATUSISSUE <= 1 AND t.STATUSRECEIPT <= 1

       and p.PRODSTATUS = 7  -- 7=ProdStatus::Ended

     group by p.[PARTITION], p.DATAAREAID, p.PRODID, p.REALDATE

     having p.REALDATE <> MAX(t.DATEFINANCIAL)  -- where different

  • Tremor Olaes Profile Picture
    2,147 on at

    Thanks Brandon.  We are still on AX2012 R1,  it is not recognizing column "Partition".

  • Brandon Wiese Profile Picture
    17,788 on at

    Simply remove the [PARTITION] parts from the ON join clauses, and from the GROUP BY and SELECT clauses.

  • Tremor Olaes Profile Picture
    2,147 on at

    Thanks Brandon!  I also did not get any results!  I really appreciate it!

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