CreateDim for new default dimension
fjgillie
Member Posts: 17
Now I want to add a new customized function into NAV 4.0 SP1, that is, 1) define one default dimension for Location, 2) If I select a location in SO/PO or Item Journal Line, the default Location dimension will be copied to the order’s document dimension or the journal line dimension. And then once it is posted, they will go to posted document dimension or ledger entry dimension.
I notice there are some relevant function or codeunit, not quite sure how to do the customization.
1) Table 36 Sales Header have a function named CreateDim.
CreateDim(
DATABASE::"Salesperson/Purchaser","Salesperson Code",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::Job,"Job No.",
DATABASE::Campaign,"Campaign No.",
DATABASE::"Responsibility Center","Responsibility Center",
DATABASE::"Customer Template","Bill-to Customer Template Code");
So I think I may add the similar function CreateDim( DATABASE::"Location","Location Code",….) in the table
2) Codeunit 408 DimensionManagement may also be customized. I change the function SetupObjectNoList and add Table Location into TableIDArray().
Besides the above change, I did nothing else. But it doesn’t work as expected. Do you guys have the experience to add the new default dimension like that? Thanks for your sharing experience and know ledge. Thanks very much!
I notice there are some relevant function or codeunit, not quite sure how to do the customization.
1) Table 36 Sales Header have a function named CreateDim.
CreateDim(
DATABASE::"Salesperson/Purchaser","Salesperson Code",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::Job,"Job No.",
DATABASE::Campaign,"Campaign No.",
DATABASE::"Responsibility Center","Responsibility Center",
DATABASE::"Customer Template","Bill-to Customer Template Code");
So I think I may add the similar function CreateDim( DATABASE::"Location","Location Code",….) in the table
2) Codeunit 408 DimensionManagement may also be customized. I change the function SetupObjectNoList and add Table Location into TableIDArray().
Besides the above change, I did nothing else. But it doesn’t work as expected. Do you guys have the experience to add the new default dimension like that? Thanks for your sharing experience and know ledge. Thanks very much!
0
Comments
-
no response? or do I need to explain more?0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 333 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