Notifications
Announcements
No record found.
Anyone got a snippet of code to report a production order as finished and post a journal (single product and coproducts)?
thank you in advance
regards
*This post is locked for comments
Report a production order as finished: Seems to be the same as in 2009, use class ProdUpdReportFinished and a ProdParmReportFinished record.
I'm not sure what you mean by single/co products and what journal you want to post, but for production journals you can use class ProdJournalCheckPost and its subclasses, e.g. ProdJournalCheckPostBOM for a picking list or ProdJournalCheckPostRouteJob to post a job journal.
As the previous comment suggests, you'll need to utilize a number of classes depending on your scenario. If you're having trouble, step through the code while doing the process in the front end. This will give you a good idea of the code path that needs to be taken.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2