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 GP (Archived)

Is there a different table for posted and unposted payable's invoices?

(0) ShareShare
ReportReport
Posted on by

Okay, so I recently coded something to check the PmPaidTransactionHistTable to ensure that there were no duplicates and ran into an issue due to the fact that unposted transactions which were still in "work" were not checked. So I'm wondeirng if there's a different table for those invoices. Here is my code btw,

Dim CustomerMasterTableID As PmPaidTransactionHistTable
        Dim CustomerMasterInvoiceVendor As PmPaidTransactionHistTable
        Dim TabErr As TableError
        Dim VendErr As TableError
        CustomerMasterTableID = Dynamics.Tables.PmPaidTransactionHist
        CustomerMasterInvoiceVendor = Dynamics.Tables.PmPaidTransactionHist
        ' Find the proper keys
        CustomerMasterInvoiceVendor.Key = 1
        CustomerMasterTableID.Key = 3
        ' Used Vendor and Invoice to symbolize the two variables that I was looking for; vendorname and invoicenumber.
        CustomerMasterTableID.DocumentNumber.Value = invoice
        CustomerMasterInvoiceVendor.VendorId.Value = VendorId
        'Retriving the error
        TabErr = CustomerMasterTableID.Get()
        VendErr = CustomerMasterInvoiceVendor.Get()
        If TabErr = TableError.NoError And VendErr = TableError.NoError Then
            Error 123
        Else

        End If
        CustomerMasterInvoiceVendor.Close()
        CustomerMasterTableID.Close()

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    drummerboy_10 Profile Picture
    on at

    Dynamics GP has three different table types which transactions move through - WORK, OPEN and HISTORY.  The 10000 tables are the WORK tables, the 20000 tables are the OPEN tables and the 30000 tables are the HISTORY tables.  

    I think you might find Mark Polino's excel table reference a great and valuable tool:

    http://mpolino.com/gp/excel-based-table-and-field-reference-for-dynamics-gp-2013/

  • Peter Muchira Profile Picture
    1,912 on at

    Hi,

    You may check the following:

    PM10000 - PM_Transaction_WORK

    PM20000 - PM_Transaction_OPEN

    PM30200 - PM_Paid_Transaction_HIST

    Hope it helps.

  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    Hi,

    I have a blog post that reviews how the data moves through the tables in the core modules of GP.

    dynamicsconfessions.blogspot.com/.../data-flow-and-table-names.html

    Kind regards,

    Leslie

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans