Error in ' Warehouse Shipment' for different UoM

insanni
Member Posts: 52
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
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
-
No this isn't a bug. It's how bins work without warehouse management. Basically you can't use different unit of measures. So if you buy in boxes, you have to sell it in boxes. I had to do a modification, a simple one, to convert everything to base UOM when the warehouse entry was inserted.
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 End1 -
hi 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
insanniinsanni0 -
ara2n,
i tried to apply your codes to cu 7301 but it raised error.
(i added WhseEntry as parameter to Code())
anthing i should add??
thanksinsanni0 -
I'm sorry I coppied the code wrong. here is it again I've fixed at top as well.
/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.0 -
hi ara3n,
it works !! thanks a lotinsanni0 -
I'm sorry I coppied the code wrong. here is it again I've fixed at top as well.
/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.
=================
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?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
- 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