Get Sales Order Line of Prod. Order by Order Tracking

fraiser
Member Posts: 5
Can someone tell me how to retrieve the sales order line of a production order line using order tracking management codeunit CU 99000778 ?
0
Comments
-
Hi Fraiser,
The standard Nav is to use the reservation entry table for this. I have found problems with this in the past and have modified to order planning post to stamp the order number on the production order (custom field). This will get around issues such as tracing the production order to the sales order after the order is shipped/invoiced.
Hope to helps.0 -
Thanks a lot! I spend some time using the toolkit to find out where the Order Tracking codeunit has been used. I found in XML Port 5500 a function "FindSalesOrders" which use the almost the same functionality as in the order tracking form. Do you think that could be a good way to find the sales order? Or do I have still problems with that so that I need to go your way customizing the orde planing?0
-
Hi Fraiser,
The XMLport 5500 is used to export the production order info to the graphical production scheduler. The base info you require is in the reservation entry. I deployed this on a site (V5.0) and found that in a small percentage of orders the link did not work. Also this will not work after the order is shipped/invoiced as the reservation entries will be cleared at this stage. It was easier for me to add the custom field.0 -
This is what I use, you can have more then 1 orderline...
Vars: LrTrackingEntryVirtual-Record-Order Tracking Entry LcuTrackingMgt-Codeunit-OrderTrackingManagement FindSalesOrders(VAR vPrProdOrdLine : Record "Prod. Order Line") LcuTrackingMgt.SetProdOrderLine(vPrProdOrdLine); IF LcuTrackingMgt.FindRecordsWithoutMessage THEN BEGIN LcuTrackingMgt.FindRecord('-',LrTrackingEntryVirtual); REPEAT GrTrackingEntryBuffer := LrTrackingEntryVirtual; GrTrackingEntryBuffer.INSERT; UNTIL LcuTrackingMgt.GetNextRecord(1,LrTrackingEntryVirtual) = 0; END;
1
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