{"audience":"Weaving production managers, shift supervisors, production planning and maintenance teams.","authorization_objects":[{"note":"Authorization to post confirmations by plant and order type","object":"C_AFRU_AWK"},{"note":"Authorization to create maintenance notifications by notification type","object":"I_QMEL"}],"components":[],"countries":[],"effort_days_max":18,"effort_days_min":12,"effort_size":"L","faq":[{"a":"It works with any system that can send events by REST service, RFC or file. During setup the event format and reason codes are mapped to that system; it does not depend on the loom brand.","q":"Which loom monitoring systems does it work with?"},{"a":"No. Counter events are summed per hour or shift and one partial confirmation is posted per interval. This keeps the number of confirmations per order reasonable and the production reports readable.","q":"Is a confirmation created for every pick?"},{"a":"Yes. The confirmation and notification BAPIs are used the same way on S/4HANA; the AFRU and QMEL structures have not changed. Events can also be received through SAP Integration Suite.","q":"Does it work on S/4HANA?"}],"features":[{"code":"log","label":"Line-by-line result and error log","note":"The result of every event is shown in the application log and on the monitoring screen."},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"background","label":"Runs as a background job","note":"With file transfer it runs as a background job every few minutes."}],"functions":[{"name":"BAPI_PRODORDCONF_CREATE_TT","role":"Posts the summed counter and downtime data as operation confirmations"},{"name":"BAPI_ALM_NOTIF_CREATE","role":"Opens a maintenance notification on the loom equipment for long breakdowns"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits the work after each order group"}],"gap":"CO11N and CO19 take confirmations manually or as time events; they do not convert the pick count from the loom counter into metres, do not classify stops by reason and do not open breakdown notifications. Confirmations typed in at shift end arrive late and downtime is lost. The interface transfers the data from its source, event by event and without duplicates.","id":"pp-loom-mes-integration","industries":["textile"],"input_columns":[{"derived":true,"label":"Event ID","required":false,"rule":"Unique number assigned by the monitoring system","target_field":null,"target_table":null},{"derived":false,"label":"Loom (work center)","required":true,"rule":"","target_field":"ARBPL","target_table":"CRHD"},{"derived":false,"label":"Plant","required":true,"rule":"","target_field":"WERKS","target_table":"CRHD"},{"derived":false,"label":"Production order","required":true,"rule":"","target_field":"AUFNR","target_table":"AFKO"},{"derived":false,"label":"Operation","required":false,"rule":"","target_field":"VORNR","target_table":"AFVC"},{"derived":true,"label":"Event type","required":false,"rule":"Start, count, stop, resume or order end","target_field":null,"target_table":null},{"derived":false,"label":"Date","required":true,"rule":"","target_field":"ISDD","target_table":"AFRU"},{"derived":false,"label":"Start time","required":true,"rule":"","target_field":"ISDZ","target_table":"AFRU"},{"derived":false,"label":"End time","required":false,"rule":"","target_field":"IEDZ","target_table":"AFRU"},{"derived":true,"label":"Pick count","required":false,"rule":"Increase of the loom counter in the interval","target_field":null,"target_table":null},{"derived":false,"label":"Metres produced","required":false,"rule":"","target_field":"LMNGA","target_table":"AFRU"},{"derived":false,"label":"Stop reason","required":false,"rule":"","target_field":"GRUND","target_table":"AFRU"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The loom monitoring system sends events per loom (order start, hourly production counter, stop start/end, order end) by RFC, REST service or file. Every event carries a unique event ID; if the same ID arrives again it is skipped.\n2. The loom code is mapped to the work center in CRHD (ARBPL, WERKS). The production order and operation in the event are checked in AFKO/AFVC: the order must be released and the operation must be planned on that work center.\n3. Counter events are summed per hour or shift. The pick count is converted to metres with the quality's weft density (picks/cm) and posted as a partial confirmation with BAPI_PRODORDCONF_CREATE_TT: the quantity goes to AFRU-LMNGA, the run time to the machine time activity (ISM01), and start and end to ISDD/ISDZ and IEDD/IEDZ.\n4. Stop events are classified by reason code (warp break, weft break, beam change, mechanical breakdown, no operator). Duration and reason are carried in the confirmation as the reason for variance (AFRU-GRUND). For mechanical breakdowns longer than the configured minutes, BAPI_ALM_NOTIF_CREATE opens a malfunction notification (QMEL) on the loom equipment.\n5. Efficiency = actual picks / (loom speed × total minutes), calculated per loom and shift. Results and errors are written to the application log (BALHDR) and shown on the monitoring screen.\n6. On the order end event the final confirmation flag (AFRU-AUERU) is set; if output is short of or above the planned quantity, the planner is informed.","module":"PP","object_type":"interface","output_columns":[{"calculated":true,"formula":"ID of the incoming event","label":"Event ID","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Loom","source_field":"ARBPL","source_table":"CRHD"},{"calculated":false,"formula":"","label":"Production order","source_field":"AUFNR","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Operation","source_field":"VORNR","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Metres confirmed","source_field":"LMNGA","source_table":"AFRU"},{"calculated":true,"formula":"Stop end − stop start","label":"Downtime (min)","source_field":null,"source_table":null},{"calculated":true,"formula":"Actual picks / (loom speed × minutes) × 100","label":"Efficiency %","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Confirmation number","source_field":"RUECK","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Notification","source_field":"QMNUM","source_table":"QMEL"},{"calculated":true,"formula":"Posted, skipped (duplicate) or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"CRHD-WERKS","required":true},{"example":"Saat","kind":"radio","label":"Aggregation: hour / shift","name":"P_AGGR","ref_field":"","required":false},{"example":"30","kind":"parameter","label":"Minimum breakdown duration for a notification (min)","name":"P_MINST","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Open maintenance notifications for breakdowns","name":"P_NOTIF","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Do not confirm every pick separately; sum events per hour or shift to keep the number of confirmations per order low. Buffer the loom-to-work-center and order-to-operation mapping at the start of the run. Queue events per order to avoid lock conflicts on the same order.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-loom-mes-integration","related":["pp-confirmation-upload","pp-released-orders-without-confirmation","pp-scrap-yield-by-work-center"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Takes operation confirmations manually; no loom counter, metre conversion or downtime classification.","tcode":"CO11N"},{"note":"Takes start and end time events; does not convert picks into metres or open breakdown notifications.","tcode":"CO19"}],"summary":"A custom interface that transfers order start, pick counter and downtime events from the loom monitoring system to SAP production orders automatically. Picks are converted to metres and posted as partial confirmations, stops are recorded with their reason code and long mechanical breakdowns open a maintenance notification; an efficiency rate is calculated for every loom.","tables":[{"access":"read","join_on":"","role":"Loom = work center mapping and plant","table":"CRHD","variant":"both"},{"access":"read","join_on":"AFKO-AUFNR = event order","role":"Order header: release and planned quantity check","table":"AFKO","variant":"both"},{"access":"read","join_on":"AFVC-AUFPL = AFKO-AUFPL AND AFVC-ARBID = CRHD-OBJID","role":"Operation and work center match, confirmation number","table":"AFVC","variant":"both"},{"access":"write","join_on":"AFRU-AUFNR = AFKO-AUFNR","role":"Partial and final confirmations: metres, time, reason for variance","table":"AFRU","variant":"both"},{"access":"write","join_on":"","role":"Malfunction notification for long mechanical stops","table":"QMEL","variant":"both"},{"access":"write","join_on":"","role":"Interface run and error log","table":"BALHDR","variant":"both"}],"title":"Weaving Loom Monitoring (MES) Integration Interface: Confirmations, Downtime and Efficiency","url":"https://nekuhub.com/en/programs/weaving-loom-monitoring-mes-confirmation-and-downtime-interface/","vendor_id":"nekudos"}