Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

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

Posted on by Microsoft Employee

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

  • Suggested answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Is there a different table for posted and unposted payable's invoices?

    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

  • Peter Muchira Profile Picture
    Peter Muchira 1,910 on at
    RE: Is there a different table for posted and unposted payable's invoices?

    Hi,

    You may check the following:

    PM10000 - PM_Transaction_WORK

    PM20000 - PM_Transaction_OPEN

    PM30200 - PM_Paid_Transaction_HIST

    Hope it helps.

  • Suggested answer
    drummerboy_10 Profile Picture
    drummerboy_10 15 on at
    RE: Is there a different table for posted and unposted payable's invoices?

    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/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans