Inventroy Adjustment

aman_mbs
Member Posts: 158
Hi All,
I am running the item Cost adjustment on Nav 4 sp1 i have modified the codeunit 5895 such that my the process runs based on item category.. so when i run the process for the category with the least entries in ILE still its taking 1.5 days and nt complete the process... There are in all 12 entries in the ILE for that category.. Plz suggests me some way out...
Regards,
Aman
I am running the item Cost adjustment on Nav 4 sp1 i have modified the codeunit 5895 such that my the process runs based on item category.. so when i run the process for the category with the least entries in ILE still its taking 1.5 days and nt complete the process... There are in all 12 entries in the ILE for that category.. Plz suggests me some way out...
Regards,
Aman
Aman Kumar Gupta
0
Comments
-
aman_mbs wrote:Hi All,
I am running the item Cost adjustment on Nav 4 sp1 i have modified the codeunit 5895 such that my the process runs based on item category.. so when i run the process for the category with the least entries in ILE still its taking 1.5 days and nt complete the process... There are in all 12 entries in the ILE for that category.. Plz suggests me some way out...
Regards,
Aman
Are you sure there are no bugs in your modification? Have you tried running the process without any modifications and see how long it ran?
FYI, the adjust cost process has been improved in version 5.0 so you can run adjust cost per period. That should cut up your batches into a more managable size.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,
I have just made a small change in the function
MakeSingleLevelAdjmt() stated below
***********************************************************
MakeSingleLevelAdjmt()
LevelNo[1] := LevelNo[1] + 1;
Window.UPDATE(1,LevelNo[1]);
WITH ItemLedgEntry DO BEGIN
SETCURRENTKEY("Item No.");
// Modify
SETRANGE("Item Category Code",'Alloy');
// Modify
IF FIND('-') THEN
REPEAT
GetItem("Item No.");
Window.UPDATE(2,Item."No.");
SETRANGE("Item No.",Item."No.");
REPEAT
LevelExceeded := FALSE;
AdjustItemAppliedCost;
UNTIL NOT LevelExceeded;
AdjustItemAvgCost;
PostAdjmtBuf;
UpdateItemUnitCost;
FIND('+');
SETRANGE("Item No.");
UNTIL (NEXT = 0) OR LevelExceeded;
END;
*************************************************************
Secondly i cannot upgrade the existing system to nav 5 so is there any other way out..Aman Kumar Gupta0 -
Check in Item table if you don't have an item with No. = '' (empty)
This gives same problem0 -
You've set the key to Item No. but you're filtering on Item Category on the Item Ledger??? No wonder your process takes 1.5 days.
You may want to create a key with Item Category, Item No. then try your process again.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
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
- 320 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