Solved

Stored Procedure for SY00500

Posted on 2013-05-12
1
427 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now