Solved

Stored Procedure for SY00500

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

16 Experts available now in Live!

Get 1:1 Help Now