Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Fixed Allocation Update via SQL Work around

Posted on by 750

HI,

We have been having trouble with the MACRO feature, deleting remaining distribution accounts in Smartlist, when updating fixed allocations. Not to mention, that this can be a tedious process each quarter.

I have created a Query. Wondering if there is a way to DELETE the Distribution accounts and percentages within a group of fixed allocations?  This way, the records are starting out with no detail.  The Integration with the new percentages will then import properly without additional maintenance.

Is this possible? I know I can delete the distributions while keeping the record in tact within GP.


But, my DELETE is not working properly..

FA-Delete.png

*This post is locked for comments

  • Suggested answer
    Ibrahim Ghalghay Profile Picture
    Ibrahim Ghalghay 115 on at
    RE: Fixed Allocation Update via SQL Work around

    Good morning,

    Thank you Tim for your clear answer.

    I suggest a little more complicated way, in order to delete only the erroneous distribution(s)... as the following:

    I. Get the fixed allocation account’s ACTINDX value from the table gl00105

     Select ACTINDX from gl00105  where ACTNUMST = '<your allocation account number string>'

    let’s assume that the returned value is XYZ

    II. Use it to get the fixed allocation distributions and their accounts numbers, as the following:

     Select a.DEX_ROW_ID, b.ACTNUMST, a.PRCNTAGE

     from gl00103 as a join gl00105 as b on a.DSTINDX = b.ACTINDX

     where a.ACTINDX = XYZ

    III. Check the additional (to be deleted) distribution(s), you can pin them out by their percentages or by the distribution account number… and save the related DEX_ROW_ID values (let’s assume they are UVW1 & UVW2)

    IV. Lastly, delete the related rows from gl00103 as the following:

     Delete gl00103 where DEX_ROW_ID in (UVW1 , UVW2)

    I hope it is clear and useful.

    Ibrahim;

  • Napolo Profile Picture
    Napolo 750 on at
    RE: Fixed Allocation Update via SQL Work around

    Worked beautifully! Thank you.

  • Verified answer
    Tim W Profile Picture
    Tim W 2,925 on at
    RE: Fixed Allocation Update via SQL Work around

    If it's just deleting what's in the fixed allocation distribution table should be pretty easy as it's a single table.

    delete gl00103 -- deleting the fixed allocation account and distribution records

    from gl00103 as a

    join gl00105 as b

    on a.ACTINDX = b.ACTINDX

    where b.ACTNUMST = '<your allocation account number string>'

    --Sample (TWO default)

    delete gl00103 -- deleting the fixed allocation account and distribution records

    from gl00103 as a

    join gl00105 as b

    on a.ACTINDX = b.ACTINDX

    where b.ACTNUMST = '000-6190-00'

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans