Hi,
We get an error stating base unit of measure must have a value in item master when posting an created sales order. There is no Base Unit of measure set for that Item. But some how they have posted purchased receipt, Now it has 4 qty in the inventory. When we tried to post a negative journal for that item, Even then we get this error again. Is there any way to set the Base unit of measure for that Item. Any help would be appreciated.
Thanks,
Mathan
0
Answers
The only way to get it back is to hack it back, either by developing a process like a page with a button that sets it without validating the field and without running OnModify, or by going into SQL Server and setting it there. You will not be able to change it back manually.
RIS Plus, LLC
Is it possible or a way to create a report to run a batch job without validating the field and without running OnModify? Can you give a small example or a tip?
Thanks,
Mathan
Item.MODIFY;
eg., what DenSter suggested.
I finally went with as Denster suggested and just like Johnhunter's example.
I created a codeunit and ran it.
IF Item.GET('Item name') THEN BEGIN
Item."Base Unit of Measure" := 'Change the BUOM';
Item.MODIFY;
END;
RIS Plus, LLC