How recursion is possible in record level.
deepthi.v
Member Posts: 62
Hi all,
I am using nav 3.7 .
I want to get the data in the form that displays the item Production BOM components And their components of each item till the item is not having bom.
How can we do this..
Ex: Item A is having 4 components in its Production BOM.
A1,A2,A3,A4
and in A1 again it is having 2 Components then
A11,A12 and in A11 there is again one component A111
I want to display all the components of A.
Help me please....
Thanks in Advance
Deepu :-k
I am using nav 3.7 .
I want to get the data in the form that displays the item Production BOM components And their components of each item till the item is not having bom.
How can we do this..
Ex: Item A is having 4 components in its Production BOM.
A1,A2,A3,A4
and in A1 again it is having 2 Components then
A11,A12 and in A11 there is again one component A111
I want to display all the components of A.
Help me please....
Thanks in Advance
Deepu :-k
0
Comments
-
Recursion is always the same
Function(param) IF some condition THEN Stop Execution Code Possibly More Code Function (some other param)
If NEXT returns 0 that is probably you condition to stop.0 -
Important is that in your recursive function, the variables you use must be defined locally and not globally.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Make sure that you program a failsafe in to prevent infinite recursion, for instance if A is a component of B, and B is a component of A at the same time.0
-
The limit in NAV recursion reaches very quickly with the system will throw out some error due to the limit of NAV memory handling. You are better off using temp table.NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

