XMLPORT csv import file Shortcut Dim 3
kenjes
Member Posts: 76
Hi
I have a csv file I import through XMLPORT.
In the file is a dimension value, that have to be inserted as ShortCut Dimension 3.
Table : "Job Journal Line"
Can someone help me out here ...
Thanks
Cheers
/Kenneth
I have a csv file I import through XMLPORT.
In the file is a dimension value, that have to be inserted as ShortCut Dimension 3.
Table : "Job Journal Line"
Can someone help me out here ...
Thanks
Cheers
/Kenneth
0
Comments
-
-
How to set shortcut dimension 3
Its not In the job journal Line table0 -
Go to General ledger setup and first check what is shortcut dimension 3 code and then insert entry into Dimension set entry table for example
glsetup.get;
DimSet.reset;
Dimset.init;
dimset."dimension set id" := whatever the last no. is
dimset."dimension code" := glsetup."shortcut dimension 3 code"
dimset."dimension value code" := from your import file.
dimset."dimension value Id" = if you have any from the file.
dimset."dimension name := name of the dimension
if not dimset.insert then
dimset.modify;
and you should get the shortcut dimension 3 dimension in...
Cheers..0 -
Do not agree with creating the dimset manually. You should create it through the management codeunit functions. And I am still not sure that this is answer for the request...0
-
To Kine : How to create it through the management codeunit ?

0 -
HI,
If you inserting line via code then -
1. Call Validate of the Shortcut Dimension Code Fields (1 & 2) if there is a value for those two.
2. Once Validated you will get a dimension set ID for the Journal Line.
3. Call Function -DimManagment.GetDimensionSet(TempDimSetEntry,DimSetID);
Where -
DimManagment - Variable of Codeunit 409.
TempDimSetEntry - Temporary Variable of Dimension Set Entry Table.
DimSetID - Dimension Set of ID of Current Line.
** This Function will fill up the Records in The Temporary Record of Dimension Set Entry.
4. Once Done Add Your Shortcut Dimension 3 Value with a code like below in temp record set -TempDimSetEntry."Dimension Code" := DimVal."Dimension Code"; TempDimSetEntry."Dimension Value Code" := DimVal.Code; TempDimSetEntry."Dimension Value ID" := DimVal."Dimension Value ID"; IF TempDimSetEntry.INSERT THEN;
5. After That call FunctionDimSetID := DimManagment. GetDimensionSetID(TempDimSetEntry);
Where -
DimManagment - Variable of Codeunit 409.
The Dimension Set ID will be updated and the Line will contain value for Dimension Code 3...
Let me know if any issues.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page1 -
Thanks, Saurav. That was an extremely helpful bit of information. As usual, you are appreciated.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
- 328 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

