RE: MPK Reverse Issue - Item Stock Inq log is inaccurate
The issue has is crystal clear, let me add to the valuable suggestion made by Tim. This is due to the different document date since multiple dates are recorded, the original receipt date is recorded in IV30300 (Item Stock Inquiry), IV10200 (Purchase Receipt). On the other hand, IV30200 and SEE30303 (Historical Inventory Trial Balance) consider the retrieval date.
I would find no issues at all in correcting the IV30300 table in order to match the details recorded in both (IV30200) and (SEE30303). It is a historical table and I don't find a huge risk in getting it updated in order to correct the item stock inquiry.
On the other hand, playing with the IV10200 is not recommended. It does require high know-how since it is a primary table in the inventory module and several other tables are dependent on
You might try to do this on your test company, never start with the live company
DECLARE @ItemNumber AS NVARCHAR(MAX)
DECLARE @DocumentNumber AS NVARCHAR(MAX)
SET @ItemNumber = 'XXX'
SET @DocumentNumber = 'YYY'
UPDATE dbo.IV30300
SET DOCDATE = ( SELECT TOP 1 DOCDATE
FROM dbo.IV30200
WHERE DOCNUMBR = @DocumentNumber
)
WHERE ITEMNMBR = @ItemNumber
AND dbo.IV30300.DOCNUMBR = @DocumentNumber
Your feedback is highly appreciated,