{"audience":"Production system owners, PP consultants, interface support teams and shift supervisors.","authorization_objects":[{"note":"Display confirmations and create them when reprocessing","object":"C_AFRU_AWK"},{"note":"IDoc monitoring and reprocessing","object":"S_IDOCMONI"},{"note":"Display the application log","object":"S_APPL_LOG"}],"components":[],"countries":[],"effort_days_max":10,"effort_days_min":7,"effort_size":"M","faq":[{"a":"If the interface uses IDocs, no change is needed; the report reads the IDoc records. If it uses direct function calls, a small addition writes every incoming message to the log table. This addition usually takes one day and is included in the effort range.","q":"Do we need to change our existing MES interface?"},{"a":"The unique ID of every MES message is kept in the log table and a posted message cannot be reprocessed. Before reprocessing, the report also checks whether a recent confirmation exists for the same order, operation and quantity and warns the user.","q":"How is the same confirmation prevented from being posted twice?"},{"a":"Confirmation and IDoc structures are the same. In S/4HANA goods movements after confirmation are written to MATDOC, and failed movements still stay in COGI. If MES integration is done with SAP Digital Manufacturing, the report shows the SAP side in addition to that solution's own monitor.","q":"Is it different on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a line you open the IDoc, the application log, the confirmation (CO14) or COGI."},{"code":"test_run","label":"Test mode (check without posting)","note":"Reprocessing is tried in test mode first."},{"code":"log","label":"Line-by-line result and error log","note":"Every reprocessing attempt is logged with user and time."},{"code":"background","label":"Runs as a background job","note":"An automatic retry job can be scheduled for lock errors."},{"code":"email","label":"Send the result by email","note":"Messages that stay failed longer than a set time are reported to the support team."}],"functions":[{"name":"BAPI_PRODORDCONF_CREATE_TT","role":"Creates a confirmation from a corrected message"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits a successful reprocessing"},{"name":"IDOC_READ_COMPLETELY","role":"Reads the data of a failed IDoc for the correction screen"}],"gap":"If MES confirmations arrive as IDocs their status is visible in WE02 and BD87; if they arrive through direct function calls they appear only in the application log (SLG1); goods movement errors after the confirmation are in COGI. None of these shows the message with its production order and operation in business terms, and reprocessing differs by channel. The custom report combines the three sources and offers one reprocessing path.","id":"pp-mes-confirmation-interface-monitor","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-18","logic":"1. Every incoming MES message is written to an interface log table: message ID, receipt time, order, operation, work center, yield/scrap quantity, times, status and number of attempts. If the existing interface uses IDocs, the log can be filled from EDIDC/EDIDS; if it uses direct calls, from the BALHDR application log; the choice is made during installation according to the interface design.\n2. For the IDoc channel, the message type, creation time and current status are read from EDIDC and the latest status text from EDIDS; status 53 is classified as posted, 51 and 56 as failed, 64 as pending.\n3. Posted messages are matched to the confirmation in AFRU (order, operation, posting time and quantity; directly via RUECK/RMZHL if the log table holds the confirmation number); reversed confirmations are flagged separately.\n4. If the confirmation was saved but the automatic goods movement failed, the AFFW record is matched by order and confirmation and the status 'confirmation OK, movement failed' is set.\n5. Error messages are grouped by message class and number (e.g. order locked, operation finally confirmed, insufficient stock) and the count per group is shown.\n6. Reprocessing: on the IDoc channel the IDoc is reprocessed; on the direct channel BAPI_PRODORDCONF_CREATE_TT is called with the corrected data and saved with BAPI_TRANSACTION_COMMIT. An automatic retry job can be scheduled for lock errors; each attempt is written to the log table.","module":"PP","object_type":"alv_report","output_columns":[{"calculated":true,"formula":"EDIDC-CREDAT/CRETIM or the receipt time in the log table","label":"Received at","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Message / IDoc","source_field":"DOCNUM","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Order","source_field":"AUFNR","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Operation","source_field":"VORNR","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Work center","source_field":"ARBPL","source_table":"CRHD"},{"calculated":false,"formula":"","label":"Yield","source_field":"LMNGA","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Scrap","source_field":"XMNGA","source_table":"AFRU"},{"calculated":true,"formula":"Posted, failed, pending or confirmation OK / movement failed","label":"Status","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Error text","source_field":"STATXT","source_table":"EDIDS"},{"calculated":false,"formula":"","label":"Confirmation no.","source_field":"RUECK","source_table":"AFRU"},{"calculated":true,"formula":"Number of attempts in the log table","label":"Attempts","source_field":null,"source_table":null}],"parameters":[{"example":"14.11.2026 – 15.11.2026","kind":"select_option","label":"Receipt date","name":"S_DATE","ref_field":"EDIDC-CREDAT","required":true},{"example":"1000","kind":"parameter","label":"Plant","name":"P_WERKS","ref_field":"AFRU-WERKS","required":true},{"example":"1004601","kind":"select_option","label":"Production order","name":"S_AUFNR","ref_field":"AFRU-AUFNR","required":false},{"example":"Hatalı","kind":"radio","label":"Status: all / failed / pending / posted","name":"P_STAT","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test run when reprocessing","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Index the log table on receipt date and status. Restrict EDIDC by message type, direction and creation date; read only the latest status record from EDIDS. Run the retry job between shifts to reduce order locks.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-mes-confirmation-interface-monitor","related":["pp-cogi-failed-goods-movements-aging","pp-confirmation-upload","pp-released-orders-without-confirmation"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows IDocs and their status; does not match them with order and operation in business terms.","tcode":"WE02"},{"note":"Reprocesses failed IDocs; does not cover confirmations received through direct calls.","tcode":"BD87"},{"note":"Corrects failed goods movements after confirmation; does not show the interface message.","tcode":"COGI"},{"note":"Shows the application log; does not group messages or offer reprocessing.","tcode":"SLG1"}],"summary":"A monitoring report that shows on one screen which production confirmations from the shop floor system (MES) were posted in SAP, which failed and which are pending. Failed messages are grouped by cause, the user can correct the data and reprocess the confirmation from the report; posted confirmations are matched to the order and confirmation number.","tables":[{"access":"read","join_on":"","role":"IDoc control record: message type, time, current status (driving table on the IDoc channel)","table":"EDIDC","variant":"both"},{"access":"read","join_on":"EDIDS-DOCNUM = EDIDC-DOCNUM","role":"IDoc status history and error text","table":"EDIDS","variant":"both"},{"access":"read","join_on":"BALHDR-EXTNUMBER = MES message ID / mesaj kimliği","role":"Application log header on the direct call channel","table":"BALHDR","variant":"both"},{"access":"read","join_on":"AFRU-AUFNR, AFRU-VORNR ↔ MES message / mesaj","role":"Confirmation created in SAP: quantities, confirmation number, reversal flag","table":"AFRU","variant":"both"},{"access":"read","join_on":"AFFW-RUECK = AFRU-RUECK AND AFFW-RMZHL = AFRU-RMZHL","role":"Failed goods movements after confirmation","table":"AFFW","variant":"both"},{"access":"read","join_on":"AFKO-AUFNR = AFRU-AUFNR","role":"Order header and material","table":"AFKO","variant":"both"},{"access":"read","join_on":"CRHD-OBJTY = 'A' AND CRHD-OBJID = AFRU-ARBID","role":"Work center","table":"CRHD","variant":"both"}],"title":"Shop Floor (MES) Confirmation Interface Log and Error Monitor","url":"https://nekuhub.com/en/reports/shop-floor-mes-confirmation-interface-log-and-error-monitor/","vendor_id":"nekudos"}