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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Adding a Date when Item is Discontinued

(0) ShareShare
ReportReport
Posted on by 55

Is there a date field on GP that I can use to designate the 'date'  an item is discontinued and also a date that we will no longer be offering service to the item.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    L Vail Profile Picture
    65,271 on at
    RE: Adding a Date when Item is Discontinued

    Hi,

    GPYoungGuns is again spot on with his SQL Trigger suggestion. I'd like to enhance the answer a bit by offering a couple of other possibilities.

    First, adding to YoungGuns suggestion, instead of creating your own custom table, you can use the DUOS table, which is a table that was added to the database years ago so that you could store custom information.  It's table SY90000 in the company database. I often update that table because every company has one 'out of the box'. It looks a little odd if you've not worked with it before, but many folks on this forum a very familiar with it and you can get some good advice on how to make it work for you.

    If you're lucky enough to own the Extender module, that would be a perfect application.

    If you have Modifier/VBA, you can write a couple of short scripts that can populate custom date fields you add directly to the Item Maintenance card. You still need a table for them to live in, like the DUOS table (or a custom table).

    Another option is to use item category fields. You have 6 item category fields that you can use to store additional data for each item. It's just a string field, so you'd need to police the date format. Using security, you can restrict any additions to categories that don't exist in the table. A positive is that the values are stored in the item master table so they are available to nearly every inventory report.

    There's another field in the Item Master table not visible on the windows called the Item Code. I think it was originally envisioned as a spot to store a UPC code, but right now it's not being used by Dynamics, to my knowledge. I often hijack this field for other uses. Again, this is a string field, not a date field.

    This is kind of an odd one, but for strictly US clients it's doable. That's the Tax Commodity Code Field. It's not a date field either, but it's validated. So, you can populate it with real dates and your users have to pick from the menu. I use this one a lot when I want to control available values. And, no VBA or Modifier required :)

    I think that about does it for tonight.

    I hope this helps someone.

    Kind regards,

    Leslie

  • gpyoungguns Profile Picture
    115 on at
    RE: Adding a Date when Item is Discontinued

    The only date field that might help you out is the Modified Date (MODIFDT) in the IV00101 table.  This field gets updated whenever the item record is updated.  So, when the user changes the Item Type to Discontinued, it will update that field with the current date.  The pitfall with this field would be if another user changes a field on that item, the Modified Date will update again.   I have run into this situation before in the past.  What we ended up doing is created a SQL trigger that looks for a change to the Item Type field on the IV00101 table.  Whenever it changes to a value of 2 (Discontinued), we inserted the item#, user id, and date into another SQL table.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans