web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Inventory Report (Slow move or Obsolete)

(0) ShareShare
ReportReport
Posted on by

I'm trying to run a report of our physical inventory. We have many different components that have not been used in the last two years. I want to run a report that shows all part numbers with no movements or transactions in the last two years. Your support is appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Heather Roggeveen Profile Picture
    9,150 on at

    I am not sure whether one of the out of the box reports will do it, but Victoria Yudin has some SQL queries that also include last sale and purchase date for inventory items.  That may be a good starting point.

    Here is a link to her page:  victoriayudin.com/.../inventory-sql-views

    Cheers

    Heather

  • Community Member Profile Picture
    on at

    I use this sometimes.  It's not perfect - it includes stock counts and transfers as activity - but it's a good starting point.  Maybe you can tweak it for your needs.

    SELECT RTRIM(A.ITEMNMBR) [Item Number]

    , RTRIM(B.ITEMDESC) [Item Description]

    , RTRIM(A.TRXLOCTN) [Location Code]

    , CONVERT(VARCHAR,A.DATERECD,101) [Date Received]

    , A.QTYRECVD [Qty Received]

    , A.QTYSOLD [Qty Sold]

    , A.UNITCOST [Unit Cost]

    , (A.QTYRECVD - A.QTYSOLD) * A.UNITCOST [Amount]

    , DATEDIFF(DAY, A.DATERECD, GETDATE()) [Days In Stock]

    , CONVERT(VARCHAR, GETDATE(), 101) [Report Date]

    , ISNULL(CONVERT(VARCHAR, C.LAST_CONSUMED, 101),'01/01/1900') [Last Consumed]

    , A.RCPTNMBR [Receipt No]

    , A.VENDORID [Vendor ID]

    , A.PORDNMBR [PO Number]

    FROM IV10200 A

    JOIN IV00101 B ON A.ITEMNMBR = B.ITEMNMBR

    LEFT JOIN (SELECT ITEMNMBR, TRXLOCTN, MAX(DOCDATE) LAST_CONSUMED FROM IV10201 GROUP BY ITEMNMBR, TRXLOCTN) C ON A.ITEMNMBR = C.ITEMNMBR AND A.TRXLOCTN = C.TRXLOCTN

    WHERE A.QTYSOLD < A.QTYRECVD

    --AND DATEDIFF(DAY, A.DATERECD, GETDATE()) > 180

    ORDER BY A.ITEMNMBR

  • Community Member Profile Picture
    on at

    I am looking for the same. I don't know that consuming an item by an MO will show activity in Victoria's view, as it only shows last receipt and last sale dates.  I need to see the INV adjustments related to receiving/posting/closing an MO.

    What GL tables does this act on? How can you identify a GL TRX for a specific item from SQL?

  • Community Member Profile Picture
    on at

    Using Victoria Yudin's report and adding activity from IV30300 for ITEMNMBR where DOCNUMBR  is in MOP10213 I think I have achieved an accurate usage report that also accounts for MO consumption as well as PO and SO activity.

  • Kelly Marinoff Profile Picture
    5 on at

    ecujak - would you mind sharing the code for your usage report?

    Thanks in advance!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans