Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Adding where-used to open purchase orders report for inventory items using smartlist builder

Posted on by 205

Running GP 10... I have created a smartlist using builder for open purchase order commitments...inventory items. I have been asked by management to add the 'where-used' for the purchased items.  My problem is, some of the purchased items (components to BoMs) have multiple where-used and when I run the report the p/o line items are replicating for each (additional) where-used they are associated with.  Is there something wrong with the way I have linked my tables and/or is there a way around this so that my report totals are not erroneously inflated?

Here is my current view:

select *
 from MAERO..IV00101 T1  with (nolock)
 LEFT JOIN MAERO..POP10110 T2 with (nolock)
 on
 T2.[ITEMNMBR] =  T1.[ITEMNMBR]
 LEFT JOIN MAERO..POP10100 T3 with (nolock)
 on
 T3.[PONUMBER] =  T2.[PONUMBER]
 LEFT JOIN MAERO..BM010115 T5 with (nolock)
 on
 T5.[CPN_I] =  T2.[ITEMNMBR]
 LEFT JOIN [MAERO].dbo.[POP10500] T6 with (nolock)
 on
 T6.[POLNENUM] =  T2.[LineNumber] WHERE isnull(T3.[BUYERID], '') = '12'
 and T2.[POLNESTA] IN (2, 3)
 and T1.[ITEMTYPE] <> '2'
 and T1.[ITMCLSCD] <> 'OV'

*This post is locked for comments

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans