hi Guys,
i ve got an error 'The bin content does not exist' when i do a shipment thru Warehouse menu
i use Bin code but not management warehouse and i use a different unit of measure for Sales
i tried for Purchase order (use different UoM also), and it works
is this a bug ? if yes, does anybody know when navision will fix it ?
thanks a lot
insanni
insanni
0
Comments
Here is the code in cu 7301
Code()
WITH WhseJnlLine DO BEGIN
IF ("Qty. (Absolute)" = 0) AND ("Qty. (Base)" = 0) AND (NOT "Phys. Inventory") THEN
EXIT;
GetLocation("Location Code");
//S001 Start
Item.GET("item No.");
IF (Location."Directed Put-away and Pick" = FALSE) THEN BEGIN
WhseJnlLine."Unit of Measure Code" := Item."Base Unit of Measure";
WhseJnlLine."Qty. per Unit of Measure" := 1;
WhseJnlLine.Quantity := WhseJnlLine."Qty. (Base)";
END;
//S001 End
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
thanks for your response
but......if Bin without warehouse management doesn't allow a different unit of measure, why the system can process when i use different UoM in Purchase ? i checked in the bin content, the system convert to 'base unit of measure' automatically, only in purchase document still keep the quantity in 'purchase unit of measure'. that's why i think it's a bug
thanks a lot
insanni
i tried to apply your codes to cu 7301 but it raised error.
(i added WhseEntry as parameter to Code())
anthing i should add??
thanks
/S001 Start
Item.GET("item No.");
IF (Location."Directed Put-away and Pick" = FALSE) THEN BEGIN
WhseJnlLine."Unit of Measure Code" := Item."Base Unit of Measure";
WhseJnlLine."Qty. per Unit of Measure" := 1;
WhseJnlLine.Quantity := WhseJnlLine."Qty. (Base)";
END;
//S001 End
It should work. Note this will fix new entries. If you have allready bin content you have take them out of bin and put them back in or write a routine to change the warehouse entry table all to base unit of measure for locations that use bins but not warehouse management with directed put-way and pick.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
it works !! thanks a lot
=================
Hi ara3n,
I've got the same error but it happens in Item Journal. I already tried adding your code on CU7301 but it doesn't work. could you advise me,please?