Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 After digging through tables I find that

POP30300 does not list the PO number only the POP Receit #, but the associated line item table (POP30310) lists both.  I can't imagine why this is and I am looking for another table that would list both.  I can't use the second b/c I am looking for a table that would have a single record.  If I use the line table then I get duplicates (more than one item on po) with my 3rd party reporting software.

*This post is locked for comments

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    Frank Hamelly | MVP... 46,317 Super User 2025 Season 1 on at
    Re: Re: Re: How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

    Mark is correct, because you can have one receipt associated with multiple POs and/or one PO with multiple receipts and possibly multiple receipt lines, you need to do a join on POP30300 and POP30310 to get all the data you'll need for your report.  Properly constructed, your query will eliminate duplicates.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

     Thanks Mark, I do suppose that makes sense.  Mostly used to doing reporting on the sales side of things.

     

     As for the other responses, I was looking for a header table, and I'm using Crystal Reports for a report to be hosted on an internal CR Server.  Just gonna have to get creative in CR to remove duplicates.

  • Mark Roux Profile Picture
    Mark Roux 670 on at
    Re: How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

    Hi Brad,

    The only other table i can think of that list PO and Receipt number, is the POP10500, however this list multiple lines per PO.

    Just thinking about it, this would be as expected. The header cannot contain a value for the originating PO, as there could be multiple POs associated to this receipt. You will have to use one of the tables containing the PO number, and do a select grouping by Receipt Number and PO.

    Mark

  • Re: How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

    hi,

    are you looking for a header or a detail info? obviously there is a primary field that connects the header to the detail. 

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    Frank Hamelly | MVP... 46,317 Super User 2025 Season 1 on at
    Re: How can I find what GP SQL table(s) list both the PO number and the PO Receit Number?

    What kind of report are you trying to create?  What reporting tool are you using?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans