Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP2015 I need delete all quotes in sales transactions from SOP10100 and sy00500 table

Posted on by 365

Good evening,

  I know that the field SOPTYPE = 1 is for Quotes in SOP10100 but if delete this the batch still appear because have transaction in the table sy00500 table and I don't know how match quotes to delete in boths tables.

Thanks,

    Mr. García

*This post is locked for comments

  • Suggested answer
    RE: GP2015 I need delete all quotes in sales transactions from SOP10100 and sy00500 table
    Garcia for this purpose I will recommend to run macro which will be faster as well as it will do it correctly.
  • mgarcia Profile Picture
    mgarcia 365 on at
    RE: GP2015 I need delete all quotes in sales transactions from SOP10100 and sy00500 table

    Thanks for your help,

        But the problem is that I have 50 batchs with aprox. 3 quotes per batch and I need match and delete all this 50 batchs in the SOP10100 and SY00500 tables.

    Thanks again,

  • Suggested answer
    RE: GP2015 I need delete all quotes in sales transactions from SOP10100 and sy00500 table

    Hi Garcia,

    Are you saying you have deleted the quote but still the batch exist.  If you just delete the transaction quote alone then the batch might exist with no transactions.  If you wanted to delete the batch select the batch and delete.  If the batch says marked for posting the run the following.

    SELECT * FROM DYNAMICS..ACTIVITY

    SELECT * FROM DYNAMICS..SY00800

    SELECT * FROM DYNAMICS..SY00801

    SELECT * FROM TEMPDB..DEX_LOCK

    SELECT * FROM TEMPDB..DEX_SESSION

    If you get answers / results to any of the above, make sure everyone is in fact logged out of GP and then run the following scripts to clear the tables.

    DELETE DYNAMICS..ACTIVITY

    DELETE DYNAMICS..SY00800

    DELETE DYNAMICS..SY00801

    DELETE TEMPDB..DEX_LOCK

    DELETE TEMPDB..DEX_SESSION

    Then run the following against the company database:

    UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 where BACHNUMB=’XXX’

    (Where ‘XXX’ is the batch ID of the batch that is stuck in posting / Reeiving / Busy / Marked etc.)

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