We all know that this batch is very tricky so I wanted to modify it so I can run it for:
a) particular Item (infinite loop is killing me)
b) all Items except that one
With big help from "Guidelines for Loops in Adjust Cost Batch Job" document I solved a) case but I can't make b) case to work (or work properly)
I would appreciate some help. I searched the forum and I saw that somebody already done this...
Better to be critical then self-critical
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
For a) case "Guidelines for Loops in Adjust Cost Batch Job" document says:
For b) case I thought I should uncomment the line but the batch worked as I didn't set any filter.
I tried with that line commented too, but the result was the same.
All this is because infinite loop problem!
The thing is, when I set that "Item No." filter the Adjust Cost - ... batch runs only for that item and it runs forever (inf. loop problem).
When I try to use that <>Item No. filter ( b) case) to adjust all other items, the Adjust Cost - ... batch runs for a 0,5 sec and FIXES :?: the infinite loop problem so the Adjust Cost - ... batch for all Items runs normally (it takes some time)!!!
I don't know what happens in that b) case but I checked and it seems that no adjustments have been maid in that batch run :?:
The batch for all items adjusts all items except the one that created inf. loop problem :!:
I confused :-k
Any ideas?
(but this is without warranty...)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Maybe stupid question but why is that in there for and why is "MakeSingleLevelAdjmt" defined as when that return value is never checked (or I'm I wrong?)?
I'm quite new to Navision and especially to Adjust Cost - Item Entries but there seems to be a lot of problems with that batch job!
(it is a small trick)
I hope that it'll help you... 8)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.