error message when I click on Accounting Period in navision
yekede
Member Posts: 96
Hi,
i'm using navision 5.0 and when i click on the Form Accounting Period, i get an error message: 'there is no accounting period within the filter.' Filter:Starting Date >=''
I have used the debugger which shows that in table 5814 there is a fonction which filter a record variable of subtype Accounting Period to the Starting Date coresponding to a date variable called endingdate. i wish to know where this variable endingdate is passed to this fonction to solve the problem. any idea please?
i'm using navision 5.0 and when i click on the Form Accounting Period, i get an error message: 'there is no accounting period within the filter.' Filter:Starting Date >=''
I have used the debugger which shows that in table 5814 there is a fonction which filter a record variable of subtype Accounting Period to the Starting Date coresponding to a date variable called endingdate. i wish to know where this variable endingdate is passed to this fonction to solve the problem. any idea please?
0
Answers
-
Hi,
Are you using the GB version?0 -
yekede wrote:Hi,
i'm using navision 5.0 and when i click on the Form Accounting Period, i get an error message: 'there is no accounting period within the filter.' Filter:Starting Date >=''
I have used the debugger which shows that in table 5814 there is a fonction which filter a record variable of subtype Accounting Period to the Starting Date coresponding to a date variable called endingdate. i wish to know where this variable endingdate is passed to this fonction to solve the problem. any idea please?
This has been addressed in version 5.0sp1.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Hi,
The code problem is table 5814
OLD CODE
AccPeriod.SETFILTER("Starting Date",'>=%1',EndingDate);
AccPeriod.FINDFIRST;
IF AccPeriod.NEXT <> 0 THEN
EndingDate := CALCDATE('<-1D>',AccPeriod."Starting Date");
SETFILTER("Ending Date",'>=%1',EndingDate);
SETRANGE(Closed,TRUE);
EXIT(NOT ISEMPTY);
END;
NEW CODE
AccPeriod.SETFILTER("Starting Date",'>=%1',EndingDate);
IF NOT AccPeriod.FINDFIRST THEN
EXIT(FALSE);
IF AccPeriod.NEXT <> 0 THEN
EndingDate := CALCDATE('<-1D>',AccPeriod."Starting Date");
SETFILTER("Ending Date",'>=%1',EndingDate);
SETRANGE(Closed,TRUE);
EXIT(NOT ISEMPTY);
END;
If you are using a GB localisation there are further problems on the close fiscal year function0 -
Thanks for the help. i used the new code and it's ok.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 323 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