Change Findset to Find('-') in Codeunit Sales-Get Shipment

rocopsa
Member Posts: 38
Dear experts,
I'd like to have your professional comments.
Now, my customer requests the Get Shipment Lines to have sequence by Unit Price but in Descending order. But, when select the records and OK, error message comes out saying: "You can only use the FINDSET function with an ascending key order."
So, I've found out the problem in Codeunit Sales - Get Shipment : CreateInvLines & GetItemChargeAssgnt. After changing the FINDSET into FIND('-'), it seems problem is solved.
YET...., since this is the original Navision codes, I'm afraid there will be unexpected negative effects. So, could anyone advise whether it is fine to change or not?
Thanks very much in advance!
I'd like to have your professional comments.
Now, my customer requests the Get Shipment Lines to have sequence by Unit Price but in Descending order. But, when select the records and OK, error message comes out saying: "You can only use the FINDSET function with an ascending key order."
So, I've found out the problem in Codeunit Sales - Get Shipment : CreateInvLines & GetItemChargeAssgnt. After changing the FINDSET into FIND('-'), it seems problem is solved.
YET...., since this is the original Navision codes, I'm afraid there will be unexpected negative effects. So, could anyone advise whether it is fine to change or not?
Thanks very much in advance!
0
Answers
-
The replacement of findset with find('-') will have a (minimal) performance loss.
For the rest there won't be unexpected negative effects. find('-') was used in older versions as the original code, but findset is an improvement on smaller datasets (performance whise), which why it was updated with findset.
PS:If you have no further questions you could mark this topic as solved (edit first post and alter the attribute)0 -
Thanks very much, Sog. It really helps!!!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