{"audience":"Maintenance planners, team leads, maintenance office staff and PM consultants.","authorization_objects":[{"note":"Authorization to process orders by maintenance planning plant","object":"I_IWERK"},{"note":"Authorization by maintenance order type","object":"I_AUART"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":3,"effort_size":"M","faq":[{"a":"No. If the company tracks confirmations per person, the personnel number is filled; otherwise the work center is enough. When the personnel number is blank, the duplicate check uses order, operation and date.","q":"Is the personnel number mandatory?"},{"a":"A final confirmation only completes the operation. Technical completion of the order is done separately in IW32 or IW42 in the standard process; optionally an extra option can list orders whose operations are all finally confirmed.","q":"Does a final confirmation also complete the order?"},{"a":"Yes. BAPI_ALM_CONF_CREATE is supported on S/4HANA as well.","q":"Can it be used on S/4HANA?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"error_file","label":"Download failed lines as a separate file","note":"Failed rows can be corrected and uploaded again with the same template."},{"code":"excel","label":"Export to Excel","note":"An empty upload template can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"BAPI_ALM_CONF_CREATE","role":"Creates a time confirmation on the maintenance order operation"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful rows permanently"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back the changes of a failed row"}],"gap":"IW41 confirms one operation on screen and IW42 is the overall completion confirmation; neither reads files. In companies without timesheets (CATS), technicians' paper or mobile forms are entered one by one at the end of the day; duplicate entries and excess hours are only noticed in the cost report. Entering hundreds of lines by hand every day delays the labor cost on the order.","id":"pm-time-confirmation-upload","industries":[],"input_columns":[{"derived":false,"label":"Maintenance order","required":true,"rule":"","target_field":"AUFNR","target_table":"AFRU"},{"derived":false,"label":"Operation","required":true,"rule":"","target_field":"VORNR","target_table":"AFRU"},{"derived":false,"label":"Personnel number","required":false,"rule":"","target_field":"PERNR","target_table":"AFRU"},{"derived":false,"label":"Work center","required":false,"rule":"","target_field":"ARBPL","target_table":"CRHD"},{"derived":false,"label":"Actual start date","required":true,"rule":"","target_field":"ISDD","target_table":"AFRU"},{"derived":false,"label":"Actual end date","required":false,"rule":"","target_field":"IEDD","target_table":"AFRU"},{"derived":false,"label":"Actual work","required":true,"rule":"","target_field":"ISMNW","target_table":"AFRU"},{"derived":false,"label":"Work unit","required":false,"rule":"","target_field":"ISMNE","target_table":"AFRU"},{"derived":false,"label":"Final confirmation (X)","required":false,"rule":"","target_field":"AUERU","target_table":"AFRU"},{"derived":false,"label":"Variance reason","required":false,"rule":"","target_field":"GRUND","target_table":"AFRU"},{"derived":false,"label":"Confirmation text","required":false,"rule":"","target_field":"LTXA1","target_table":"AFRU"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file (XLSX or CSV) is read from the user's PC or, in a background job, from the application server; the first row is skipped as the header.\n2. Every row is checked: the order exists in AFIH and its maintenance planning plant is within the user's authorization; the order is released and not technically completed; the operation number exists in AFVC; the work center exists in CRHD when given in the file.\n3. Duplicate check: if AFRU already has a non-cancelled confirmation (STOKZ blank) with the same order, operation, personnel number and actual start date, the row is skipped.\n4. Excess check: if previous confirmations (AFVV-ISMNW) plus the work in the file exceed the threshold percentage of planned work (AFVV-ARBEI), the row is kept as an error and offered for approval.\n5. The row is mapped to the time ticket structure of BAPI_ALM_CONF_CREATE: order, operation, personnel number, work center, actual start and end, actual work and its unit, final confirmation, variance reason and confirmation text. In test mode the BAPI is called as a test run.\n6. In a real run BAPI_TRANSACTION_COMMIT is called after a successful row and BAPI_TRANSACTION_ROLLBACK after an error. Confirmation numbers and messages are listed; failed rows can be downloaded as a separate file.","module":"PM","object_type":"upload","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Maintenance order","source_field":"AUFNR","source_table":"AFRU"},{"calculated":false,"formula":"","label":"Operation","source_field":"VORNR","source_table":"AFRU"},{"calculated":true,"formula":"AFRU-RUECK / AFRU-RMZHL returned by the BAPI","label":"Confirmation no.","source_field":null,"source_table":null},{"calculated":true,"formula":"From the BAPI return messages and checks: posted, skipped or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Check result or first message from the BAPI return table","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\teknisyen_saatleri.xlsx","kind":"parameter","label":"Time file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Duplicate confirmation check","name":"P_CHKDUP","ref_field":"","required":false},{"example":"150","kind":"parameter","label":"Planned work excess threshold (%)","name":"P_MAXPCT","ref_field":"","required":false}],"part_of":["pm-notification-to-confirmation-pack"],"performance":"Daily files are usually a few hundred rows and run online. Run large files as a background job; processing rows of the same order one after another avoids lock conflicts.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pm-time-confirmation-upload","related":["pm-maintenance-cost-by-equipment","pm-overdue-maintenance-orders-backlog"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Confirms one operation on screen; does not read files.","tcode":"IW41"},{"note":"The overall completion confirmation screen; it does not take the daily hours of many technicians in bulk.","tcode":"IW42"}],"summary":"A custom program that reads technicians' working hours from mobile forms, timesheets or Excel and posts them in bulk as confirmations on maintenance order operations. It stops duplicate entries and entries far above plan, and checks everything in test mode first.","tables":[{"access":"write","join_on":"","role":"Posted time confirmations; also read for the duplicate check","table":"AFRU","variant":"both"},{"access":"read","join_on":"","role":"Maintenance order and planning plant check","table":"AFIH","variant":"both"},{"access":"read","join_on":"","role":"Operation number and work center","table":"AFVC","variant":"both"},{"access":"read","join_on":"","role":"Planned and previously confirmed work","table":"AFVV","variant":"both"},{"access":"read","join_on":"","role":"Check of the work center code in the file","table":"CRHD","variant":"both"}],"title":"Mass Time Confirmation Upload for Maintenance Orders Program","url":"https://nekuhub.com/en/programs/maintenance-order-mass-time-confirmation-upload-program/","vendor_id":"nekudos"}