Dimension ledger entry: Stuck with it
txeriff
Member Posts: 515
Hi,
Could any1 help me how to create entries here? I have tried all functions I found everywhere but they seem not working.
thanks
Could any1 help me how to create entries here? I have tried all functions I found everywhere but they seem not working.
thanks
0
Answers
-
Hi
When you say tried all functions, do you mean assigned dimensions to unposted documents / journals but nothing is posting when each document / journal is posted?
Neil0 -
Hi
When you say tried all functions, do you mean assigned dimensions to unposted documents / journals but nothing is posting when each document / journal is posted?
Neil
Hi neilgf,
thanks for answering. I would need to copy dimensions from a custom table and create dimension ledger entries. I have tried several ways. I know there is a function in T81 but I don´t think is usefull for me
CreateDim(
DimMgt.TypeToTableID1("Account Type"),"Account No.",
DimMgt.TypeToTableID1("Bal. Account Type"),"Bal. Account No.",
DATABASE::Job,"Job No.",
DATABASE::"Salesperson/Purchaser","Salespers./Purch. Code",
DATABASE::Campaign,"Campaign No.");
I dont understand why it sends tables and values. In my case I would need something like (jobLineDimension its a custom table):
dimensionsetentry.init;
DimensionSetEntry."Dimension Code":=JobLineDimension."Dimension Code";
DimensionSetEntry."Dimension Value Code":=JobLineDimension."Dimension Value Code";
DimensionSetEntry.INSERT(TRUE);
I have tried the following but I guess it needs default dimension or whatever, it does nothing:
GenJournal.CreateDim(DATABASE::"PR - Job Line Dimension",JobLineDimension."Dimension Code",0,'',0,'',0,'',0,'');
thanks a lot!0 -
Hi txeriff
You're not supposed to alter table "Dimension Set Entry" yourself. Consider this private data to it's global function(s) and the the DimensionManagement Codeunit.
The only way you should ever use to add to this table is"Dimension Set Entry".GetDimensionSetID(VAR DimSetEntry : Record "Dimension Set Entry") : Integer
This table needs to be in sync with table "Dimension Set Tree Node". Above function takes care of this.0 -
Hi txeriff
You're not supposed to alter table "Dimension Set Entry" yourself. Consider this private data to it's global function(s) and the the DimensionManagement Codeunit.
The only way you should ever use to add to this table is"Dimension Set Entry".GetDimensionSetID(VAR DimSetEntry : Record "Dimension Set Entry") : Integer
This table needs to be in sync with table "Dimension Set Tree Node". Above function takes care of this.
thanks
finally we managed to solve it with another custom functions for other tasks. I know this is not easy... anyway, thanks for your help0
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
- 251 Dynamics CRM
- 103 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
