Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

SO Reqequsted Ship Date - Should it fill down or not???

Posted on by 255

In our GP 10.0 system, if you change the Requested Ship Date header it does not fill down to the Requested Ship Date on the line items.   Ship Method does, but Requested Ship Date does not.  The issue is that we can't figure out if it use to or whether it stopped working when we installed ISV solutions.  We're just starting the implementation so no one knows or can remember and i'm getting conflicting information from various parties.  If anyone responds and says it works in their system then at least I'll know if does fill down.

*This post is locked for comments

  • Dwight Brown Profile Picture
    Dwight Brown 5 on at
    Re: SO Reqequsted Ship Date - Should it fill down or not???

    The requested ship date only rolls down to the lines at the time that the order is created.

    One method to roll down requested ship dates from the header to the lines would be in a SQL Server trigger. The following trigger would do the trick, but needs more thorough testing. It checks to make sure that the Requested Ship Date was changed on the header. It also will only change the Requested Ship Date only if it doesn't already match the header.

     

    Use [COMPANYDB]

     /*  put whichever DB you want to apply the trigger to inside of the brackets */SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =============================================-- Author:                            Dwight Brown, Systematica, Inc.-- Create date: 10/10/08-- Description:   Rolls down the reqshipdate from the header to all lines-- Only rolls down if the date on the header has changed-- =============================================CREATE TRIGGER tr_SOP10100ReqShipDateRollDown   ON  dbo.SOP10100   AFTER UPDATEAS BEGIN                -- SET NOCOUNT ON added to prevent extra result sets from                -- interfering with SELECT statements.                SET NOCOUNT ON;               

                    IF UPDATE(ReqShipDate) --

    /*this ensures that the ReqShipDate was actually changed during this database update, trying to prevent excessive writes*/

        BEGIN                                                 UPDATE LineItems set LineItems.ReqShipDate = Header.ReqShipDate                                                FROM SOP10200 LineItems INNER JOIN                                                SOP10100 Header on LineItems.SOPNumbe = Header.SOPNumbe INNER JOIN                                                Inserted On Header.SOPNumbe = Inserted.SOPNumbe                                                Where Header.ReqShipDate <> LineItems.ReqShipDate

                                                    /* Aliases used here in order to allow an update with joins */

    END                ENDGO

     

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans