{"audience":"EWM and inventory key users, production control and costing teams, SAP support teams.","authorization_objects":[{"note":"Correction authorization for movement types 261/262","object":"M_MSEG_BWA"},{"note":"Material document authorization by plant","object":"M_MSEG_WWA"},{"note":"Production order display","object":"C_AFKO_AWK"}],"components":[],"countries":[],"effort_days_max":12,"effort_days_min":8,"effort_size":"M","faq":[{"a":"No. The program flags suspected lines; cancellation is done by user selection and first in test mode. The order's confirmation and costing status (e.g. closed period, technically completed order) is checked.","q":"Are duplicate consumptions cancelled automatically?"},{"a":"The report is designed for embedded EWM on S/4HANA; ERP consumption is read from MATDOC. With decentralized EWM the EWM tables are in another system, so data is fetched through RFC and the effort grows by about 3 days.","q":"Which system releases does it run on?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Lines drill down to the order's consumption documents, COGI entries and the PSA stock in /SCWM/MON."},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"background","label":"Runs as a background job","note":"Can run nightly and email the findings to the warehouse and production control teams."},{"code":"email","label":"Send the result by email","note":""}],"functions":[{"name":"BAPI_GOODSMVT_CREATE","role":"Posts missing consumption"},{"name":"BAPI_GOODSMVT_CANCEL","role":"Cancels duplicate consumption"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits the correction"}],"gap":"Consumption differences between EWM and ERP arise from queue errors, the same consumption posted twice, or consumption not reposted after a reversal. COGI shows only failed movements, SMQ2 the queues, and /SCWM/ERP_STOCKCHECK the total stock difference; none of them links the difference to a production order or detects duplicate consumption. Stock type differences (unrestricted, quality, blocked) are investigated separately.","id":"ewm-erp-consumption-reconciliation","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-18","logic":"1. Components of the orders in the selected plant and date range are read from RESB (BDMNG, ENMNG).\n2. ERP consumption is totalled from MATDOC per order and reservation item (261 − 262; documents flagged CANCELLED excluded). Two 261 postings of the same quantity on the same reservation item within a short time, and total consumption above both the requirement and the staged quantity, are flagged as suspected duplicates.\n3. Items reversed with 262 but not consumed again with 261, while the order has confirmations, are flagged as 'missing consumption'.\n4. Failed movements from AFFW (MSGID, MSGNO) are added per order and material.\n5. EWM side: the quantity staged to the PSA is read from /SCWM/ORDIM_C (PSA, NISTA) and the stock left in the PSA from /SCWM/AQUA; the product GUID is resolved through /SAPAPO/MATKEY and the storage location mapping through /SCWM/TMAPSTLOC. Expected PSA stock = staged − ERP consumption; the difference is shown on the line.\n6. Stock type mode: per material and storage location, MARD (LABST, INSME, SPEME) is compared with the EWM stock types (CAT) in /SCWM/AQUA using the mapping defined during installation.\n7. Correction: for selected lines missing consumption is posted with BAPI_GOODSMVT_CREATE and duplicate consumption is cancelled with BAPI_GOODSMVT_CANCEL. Test mode only checks; every action is logged.","module":"WM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Order","source_field":"AUFNR","source_table":"RESB"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"RESB"},{"calculated":false,"formula":"","label":"Required","source_field":"BDMNG","source_table":"RESB"},{"calculated":true,"formula":"Σ /SCWM/ORDIM_C-NISTA","label":"Staged to PSA","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ MATDOC 261 − 262","label":"ERP consumption","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ /SCWM/AQUA-QUAN, PSA storage types","label":"PSA stock (EWM)","source_field":null,"source_table":null},{"calculated":true,"formula":"(Staged − ERP consumption) − PSA stock","label":"Difference","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of AFFW records","label":"Failed movements","source_field":null,"source_table":null},{"calculated":true,"formula":"Duplicate, missing consumption, failed movement, stock type difference or matched","label":"Finding","source_field":null,"source_table":null},{"calculated":true,"formula":"Open, test OK, corrected or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"parameter","label":"Plant","name":"P_WERKS","ref_field":"MATDOC-WERKS","required":true},{"example":"W100","kind":"parameter","label":"Warehouse number","name":"P_LGNUM","ref_field":"/SCWM/AQUA-LGNUM","required":true},{"example":"01.11.2026 – 17.11.2026","kind":"select_option","label":"Posting date","name":"S_BUDAT","ref_field":"MATDOC-BUDAT","required":true},{"example":"1000400 – 1000499","kind":"select_option","label":"Production order","name":"S_AUFNR","ref_field":"RESB-AUFNR","required":false},{"example":"*","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"RESB-MATNR","required":false},{"example":"Tüketim","kind":"radio","label":"Mode: consumption reconciliation / stock type comparison","name":"P_MODE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test mode for corrections","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Limit MATDOC by plant, date and movement type (261/262) and aggregate per order in the database. Read /SCWM/AQUA only for the PSA storage types. For large plants run the report in the background at night.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=ewm-erp-consumption-reconciliation","related":["ewm-production-staging-cockpit","wm-ewm-migration-readiness","wm-im-stock-comparison"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows failed movements; does not detect duplicate or missing consumption.","tcode":"COGI"},{"note":"Shows queue errors; does not link them to orders or differences.","tcode":"SMQ2"},{"note":"Shows PSA stock; does not compare it with ERP consumption.","tcode":"/SCWM/MON"},{"note":"Lists consumption documents; does not show the EWM side.","tcode":"MB51"}],"summary":"A custom report that compares ERP consumption per production order with the quantity staged to the production supply area in EWM and the quantity left in the PSA, and shows duplicate consumption, consumption missing after a reversal and failed movements in one list. It also compares ERP stock types with EWM stock types per material and storage location; selected differences can be checked in test mode and corrected in bulk.","tables":[{"access":"read","join_on":"","role":"Order component requirement and withdrawn quantity","table":"RESB","variant":"both"},{"access":"read_write","join_on":"MATDOC-RSNUM = RESB-RSNUM AND MATDOC-RSPOS = RESB-RSPOS","role":"ERP consumption movements; corrections write new consumption or reversals","table":"MATDOC","variant":"both"},{"access":"read","join_on":"AFFW-RSNUM = RESB-RSNUM AND AFFW-RSPOS = RESB-RSPOS","role":"Failed goods movements (COGI)","table":"AFFW","variant":"both"},{"access":"read","join_on":"","role":"Quantity staged to the PSA","table":"/SCWM/ORDIM_C","variant":"both"},{"access":"read","join_on":"","role":"Stock left in the PSA and EWM stock types","table":"/SCWM/AQUA","variant":"both"},{"access":"read","join_on":"MARD-MATNR = RESB-MATNR AND MARD-WERKS = RESB-WERKS","role":"ERP stock types: unrestricted, quality, blocked","table":"MARD","variant":"both"}],"title":"EWM to ERP Production Consumption and Stock Type Reconciliation Report","url":"https://nekuhub.com/en/reports/ewm-erp-production-consumption-and-stock-type-reconciliation/","vendor_id":"nekudos"}