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)

Fixed Allocation Update via SQL Work around

(0) ShareShare
ReportReport
Posted on by 766

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

I have the same question (0)
  • Verified answer
    Tim W Profile Picture
    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'

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

    Worked beautifully! Thank you.

  • Suggested answer
    Ibrahim Ghalghay Profile Picture
    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;

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