AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Tips and Tricks - F...
 
Notifications
Clear all

#AcumaticaTnT Tips and Tricks - Finding missing data in Acumatica using a Generic Inquiry

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 5 years ago
2 Posts
2 Users
1 Reactions
1,197 Views
RSS
lauraj46
Posts: 10
 lauraj46
Topic starter
June 24, 2021 6:06 pm
(@lauraj46)
Active Member
Joined: 5 years ago

 

p11

On the recent AUGForums.com Live Broadcast Reporting Party (click here), @TimRodman, @Ryanxbyte, @arline-welty and I discussed how to create a Generic Inquiry that looks for missing data.  If you missed the podcast live, you should definitely check it out!

On the podcast I promised to write more about a question that we faced with one of our customers.

The challenge was to find production orders meeting this criteria:

  • At least one labor transaction has been entered on the production order
  • There are no production transactions on the Part Inspection operation (0010)

 

For those with a SQL background, working within the Acumatica framework sometimes requires a change of mindset and a little creativity to get the job done.  If we were going to write this SQL directly, it could look something like this:

WITH op10(ProdOrdID, OrderType)
AS
SELECT AMMTran.ProdOrdID, AMMTran.OrderType
FROM AMMTran
LEFT JOIN AMMTran op10 ON AMMTran.ProdOrdID = op10.ProdOrdID AND
       AMMTran.OrderType = op10.OrderType
LEFT JOIN AMProdOper ON op10.ProdOrdID = AMProdOper.ProdOrdID AND
       op10.OrderType = AMProdOper.OrderType AND
       op10.OperationID = AMProdOper.OperationID AND
       AMProdOper.OperationCD = '0010'
WHERE AMMTran.DocType = 'L'
GROUP BY AMMTran.ProdOrdID, AMMTran.OrderType
HAVING MAX(AMProdOper.OperationCD) IS NULL

In Acumatica, you can use a LEFT JOIN to emulate this same behavior.  The join relations in Acumatica allow you to use formulas and reference other fields that may not necessarily be part of the relation.  Once you have the GI, it's really easy to create the Exception dashboard that @TimRodman suggested!

I wrote up the details here:  https://www.linkedin.com/pulse/acumaticatnt-how-find-things-should-never-happen-laura-jaffe

 


Dianne A reacted
1 Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
June 25, 2021 12:52 am
(@timrodman)
Famed Member
Joined: 10 years ago

Another killer #AcumaticaTnT @lauraj46

Keep 'em coming!


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,527 Topics
  • 10.9 K Posts
  • 32 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×