Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

SQL to Rename Batches

Posted on by 970

I would like to move all open SOR's to one Batch is there a SQL script to do this?

*This post is locked for comments

  • Suggested answer
    Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: SQL to Rename Batches

    You can write a script to change the batch assignments of the documents involved.  For sales orders, you simply update the SOP10100 table with the new batch ID.  AFTER doing this, run reconcile against the sales tables to recalculate the batch totals.

  • Suggested answer
    Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: SQL to Rename Batches

    I have never came across any update statement of that kind. Although, I would not consider doing it on the database level since several tables are included.

    You could record a simple Macro to go through all your open transactions and update the "Bach number" field, and that can simply be done, no matter how many open transactions are to be updated.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans