web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

SOP Entry duplicate Master number

(0) ShareShare
ReportReport
Posted on by

Hi,

I am facing the issue with the SOP duplicate document number in GP 2010.
When i create an new order the master number is duplicated.
I created a stored proc to get the next available master number, but my issue is
I don't when and where to call this stored procedure to get the available master number and
adding new order to the available number.

Please suggest me on this issue.where to call the stored procedure to get the available master numbers in
SOP Entry.

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Tim Foster Profile Picture
    8,515 on at

    This is NOT SUPPORTED.  This is what I use when I must:

    DECLARE @NXTMSTNO int

    SELECT @NXTMSTNO=NXTMSTNO FROM SOP40100 WHERE DEX_ROW_ID=1

    UPDATE SOP40100 SET NXTMSTNO=NXTMSTNO+1 WHERE DEX_ROW_ID=1

    This should be done only when others are not in Sales Transaction Entry and not SOP Integration is being done.

    Tim

  • Suggested answer
    Tim Foster Profile Picture
    8,515 on at

    Another more supported suggestion is the SPROC in your Company Database:

    sopGetMasterNumber @O_iOUTMasterNumber int, @O_iOUTErrorState int

  • Bill Campbell Profile Picture
    12 on at

    While I know Tim is providing good advice, when ever you do something in the system where the outcome is in question, be sure that you have a good backup prior.

    I can not tell you how many times a backup has saved us, when we are certain that nothing could go wrong with what we are doing in SQL.

    Just poking my nose in . . .

  • Community Member Profile Picture
    on at

    Hi All,

    Thanks for you response.

    Actually I am automating the workflows for the GP.In Automation i want to trigger the storedproc to get the master number. My issue is when I need to call this storedproc and how to trigger this.

    Please help me out in this.

    Thanks!

    Bindu.

  • Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    I am sorry but I don't exactly understand your question, it's your workflow, you know you have to create sales document, then how can anyone of us tell you when to call stored procedure.

  • Community Member Profile Picture
    on at

    Hi all,

    Thanks for you replies.

     

  • Steve Gray Profile Picture
    25 on at

    I encountered this today, this is the answer that I came up with

    dynDeveloper.com/.../0WX0

  • William914 Profile Picture
    5 on at

    I know Tim is providing good advice, when ever you do something in the system where the outcome is in question, be sure that you have a good backup prior.

    I can not tell you how many times a backup has saved us, when we are certain that nothing could go wrong with what we are doing in SQL. My Fed Loan

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans