Solution : https://service.sap.com/sap/support/notes/170135 (SAP Service marketplace login required)
Summary :
After cancelling a material document in SAP, which was associated with the creation or modification of an inspection lot, inconsistencies may arise between Material Management Inventory Management (MM-IM) and Quality Management (QM) modules, often resulting in runtime errors and stock posting issues like error M7021. This issue, caused by a program error particularly after stock transfers, affects systems from Release 4.0 onwards while requiring a different approach for earlier versions. Resolution involves implementing specific program corrections as detailed in the provided attachment, enhancing integration, and updating to the latest program version from Note 48815 to address and prevent further discrepancies.
Key words :
system generates error message m7021, system generates error message qa046, original plant/storage location combination, additional key words qac1, mandatory import parameter i_dm07m, function module qaat_material_document_cancel, stock inconsistencies occur, inspection lot exists, material document cancellation, inspection lot stock
Related Notes :
175680 | Incorrect data for stock transfer |
159546 | MBST: Nested Perform on Commit |
115519 | Error message QA047 when cancelling matl document |
102759 | Cancel.a material document creating inspection lots |
102705 | Inspection lot creation when entering goods movment |
92760 | Error mess.QA495 when cancelling a material documnt |
92179 | GR cancellation with inspection lot not possible |
89962 | Cancellation of a GR document with several items |
87631 | Posting stocks for inspection lot |
48815 | Checking possible inconsistencies between MM and QM |