Missing G/L Dimensions; Code Check
geri79
Member Posts: 105
Hello,
I have G/L Account lines with "Global Dimension 1 Code" filled but no entry for that record in T255 Ledger Entry Dimension. Don't ask me how, but it has happened...
So I designed a small Report (Data Iem G/L Entry) to correct the my data.
I tried it on a test system in it works fine. Are there any other side effects where should think of?
IF "G/L Entry"."Global Dimension 1 Code"<>'' THEN BEGIN
IF NOT LedgerEntryDimension.GET(17,"Entry No.",Cost Center) THEN BEGIN
LedgerEntryDimension.INIT;
LedgerEntryDimension."Table ID":=17;
LedgerEntryDimension."Entry No.":="Entry No.";
LedgerEntryDimension."Dimension Code":='COST CENTER';
LedgerEntryDimension."Dimension Value Code":="Global Dimension 1 Code";
LedgerEntryDimension.INSERT;
END;
END;
Thanks for your comments.
geri
I have G/L Account lines with "Global Dimension 1 Code" filled but no entry for that record in T255 Ledger Entry Dimension. Don't ask me how, but it has happened...
So I designed a small Report (Data Iem G/L Entry) to correct the my data.
I tried it on a test system in it works fine. Are there any other side effects where should think of?
IF "G/L Entry"."Global Dimension 1 Code"<>'' THEN BEGIN
IF NOT LedgerEntryDimension.GET(17,"Entry No.",Cost Center) THEN BEGIN
LedgerEntryDimension.INIT;
LedgerEntryDimension."Table ID":=17;
LedgerEntryDimension."Entry No.":="Entry No.";
LedgerEntryDimension."Dimension Code":='COST CENTER';
LedgerEntryDimension."Dimension Value Code":="Global Dimension 1 Code";
LedgerEntryDimension.INSERT;
END;
END;
Thanks for your comments.
geri
geri
0
Answers
-
Change this line
IF NOT LedgerEntryDimension.GET(17,"Entry No.",Cost Center) THEN BEGIN
to
IF NOT LedgerEntryDimension.GET(17,"Entry No.",'COST CENTER') THEN BEGIN
or better get table 98 and use General Ledger Setup.Global Dimension 1 Code instead of COST CENTER in
IF NOT LedgerEntryDimension.GET(17,"Entry No.",Cost Center) THEN BEGIN
and
LedgerEntryDimension."Dimension Code":='COST CENTER';
There is no side effects other than you might need to update analysis views using Global Dimension 1.0 -
Thanksgeri0
-
Hello people,
I solved the problem writing some code in codeunit 12, updating the same info's as you guys said, just that that doesn't solves the whole issue!
The Analysis by dimension entries are still generated without those dimensions.
Anyone knows another solution to fix the whole issue :?:
Thanks ,
Robert0
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
- 327 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