Solved

Stored Procedure for SY00500

Posted on 2013-05-12
1
430 Views
Last Modified: 2013-05-13
Hello:


What is the name of the stored procedure or "else" runs that updates SY00500 table in the company database with the correct document and batch total count after you change the batch name in the Sales Transaction Entry window?

TBSupport
0
Comment
Question by:TBSupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
Steve Endow earned 500 total points
ID: 39160198
Hi,

I developed a customization for a client that allows them to move SOP documents from one batch to another.

Based on my research in SOP (and I suspect it is the same for other modules), there is no stored proc that updates the batch totals when a document is moved to a different batch.  It is typically done with an update statement.

Here is the update statement that I run for SOP that updates all SOP batch totals after a document is moved to a different batch:

'Update the batch totals for all sales trx batches
strSQL = "UPDATE SY00500 SET NUMOFTRX = ISNULL((SELECT COUNT(*) FROM SOP10100 WHERE BACHNUMB = SY00500.BACHNUMB), 0), BCHTOTAL = ISNULL((SELECT SUM(DOCAMNT) FROM SOP10100 WHERE BACHNUMB = SY00500.BACHNUMB), 0) WHERE SERIES = 3 AND BCHSOURC = 'Sales Entry'"

Open in new window


Thanks,

Steve Endow
Dynamics GP Certified Trainer
Dynamics GP Certified IT Professional
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question