22.12.10

SAP Note 15301 - Physical inventory: Incorrect moving average price for stand

Symptom:

This note is no longer valid. Please see note 37162!!

You have a material with standard price control. This material has a stock in the previous period. If you now create a physical inventory document for this material in the previous period and make an adjustment posting for this material document from the previous period, the moving average price is incorrect after making the adjustment posting of the inventory difference.
The exact value is: standard price * total stock.

Cause and prerequisites

Program error.

Solution
To correct the error, you have to insert the line marked below in the following Include of module pool SAPLMBWL:
Include LMBWLU02:

FUNCTION MB_CREATE_INVENTORY_DIFFERENCE.
...
MSEG-KZBEW = T158-KZBEW.
MSEG-MJAHR = MKPF-MJAHR.
MSEG-PARBU = MTM07I-BUKRS.
MSEG-WAERS = MTM07I-WAERS.
MSEG-BWART = MVM07I-BWART.
MSEG-ERFMG = MVM07I-DIFME.
MSEG-MENGE = MVM07I-DIFMG.
DM07M-MONAT = MONAT.
DM07M-XLORT = X.
-> DM07M-VMSAV = DM07M-VMSAL. "New
RM07M-BUKRS = MTM07I-BUKRS.
...
ENDFUNCTION.

1 comment: