Solution : https://service.sap.com/sap/support/notes/204393 (SAP Service marketplace login required)
Summary :
This SAP Note addresses discrepancies between stock data in the accounting view table (MBEW) and the stock overview table (MARD or similar). The inconsistency arises when custom programs improperly update the MBEW or MARD table simultaneously with SAP-standard goods movements, leading to data overwrite. Developers are advised to refrain from modifying key fields like LBKUM, SALK3 without explicit locks and instead use the SET update to ensure only specified fields are changed. Incorrect updates are considered customer modifications and might incur charges. To prevent data inconsistency, follow the recommended code practices for database operations provided in the Note.
Key words :
matnr = wa_mard-matnr werks = wa_mard-werks lgort = wa_mard-lgort, update mard set zz_field_1 = 'customer specific, entire work area back, find customer-specific programs, sap standard stock fields, customer-specific programs, 1' zz_field_2 = 'customer specific, terms mminkon reason, program zxxxxxxx reads, program zxxxxxxx writes
Related Notes :
520010 | FAQ: Inconsistencies in inventory management |
32236 | Incorrect stock qty or stock value in material master |