automate change of production order status

supremo
Member Posts: 73
Good day!
Is there a way to have a batch job that will automate the change of status of completed production orders to finished?
It's currently taking around 5 mins to change a status for an order and I would like to improve that process.
Is there a way to have a batch job that will automate the change of status of completed production orders to finished?
It's currently taking around 5 mins to change a status for an order and I would like to improve that process.
0
Answers
-
Hello Supremo,
In that case you can create a Codeunit and enter the below code for that:
ProductionOrder.SETRANGE(Status,ProductionOrder.Status::Released);
ProductionOrder.SETRANGE("No.",'RPO/2013/001001','RPO/2013/31090');
ProductionOrder.SETRANGE("Assigned User ID",'SA');
ProductionOrder.SETRANGE("Starting Date",010412D,310313D);
IF ProductionOrder.FINDSET THEN BEGIN
REPEAT
CODEUNIT.RUN(5407,ProductionOrder);
UNTIL ProductionOrder.NEXT = 0;
END;
When you run this codeunit, you just have to mentioned the Posting date only.
Thanks
Vivek0 -
You can also look for form 99000914 Change Production Order Status - it allows you tu choose some prod orders and multiply finished them.
But i'm affraid that this not gonna solve your problem - changing prod order status is "trivial" task.0 -
Thank you gravecz and vivek4121. Will test out the codeunit but for now we'll stick to the Change Production Order Status. That session ensures completed orders are the only orders that will be changed to finished.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions