{"audience":"Laboratory analysts and supervisors, quality control engineers and QM consultants.","authorization_objects":[{"note":"Inspection lot authorization by inspection type","object":"Q_INSPTYPE"},{"note":"QM transaction code authorization for results recording","object":"Q_TCODE"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":5,"effort_size":"M","faq":[{"a":"Yes. The column mapping for each instrument or lab system can be kept in a small maintenance table, so adding a new instrument does not need a code change.","q":"Are different instrument file formats supported?"},{"a":"Yes. If the file holds a code group and code instead of a value, the program records it as a qualitative result.","q":"Can qualitative (coded) characteristics be loaded?"},{"a":"Yes. BAPI_INSPOPER_RECORDRESULTS is supported on S/4HANA and the QM tables keep the same structure.","q":"Can this program 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 are written to a separate file and can be loaded again after correction."},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"Files with failed rows are reported to the laboratory supervisor by email."}],"functions":[{"name":"BAPI_INSPOPER_GETCHAR","role":"Reads the characteristics and limits of the lot operation"},{"name":"BAPI_INSPOPER_RECORDRESULTS","role":"Records the results and optionally valuates and closes them"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back in test mode"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful results permanently"}],"gap":"QE51N and QE01 expect results to be keyed in on the screen; there is no standard transaction that reads measured values from a file on a schedule. Certified laboratory interfaces need setup and licences. For laboratories that get a CSV from their instruments, a simple interface that reads the file and records the results through the standard BAPI is enough.","id":"qm-inspection-results-upload","industries":[],"input_columns":[{"derived":false,"label":"Inspection lot","required":true,"rule":"","target_field":"PRUEFLOS","target_table":"QALS"},{"derived":true,"label":"Operation number","required":true,"rule":"Operation number from the inspection plan (e.g. 0010); passed to the BAPI as the operation","target_field":null,"target_table":null},{"derived":false,"label":"Characteristic no.","required":false,"rule":"","target_field":"MERKNR","target_table":"QAMV"},{"derived":false,"label":"Master characteristic (instead of no.)","required":false,"rule":"","target_field":"VERWMERKM","target_table":"QAMV"},{"derived":false,"label":"Measured value","required":true,"rule":"","target_field":"MESSWERT","target_table":"QASE"},{"derived":false,"label":"Inspector","required":false,"rule":"","target_field":"PRUEFER","target_table":"QASE"},{"derived":false,"label":"Inspection date","required":false,"rule":"","target_field":"PRUEFDATUV","target_table":"QASE"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read from the user's PC or, in a background job, from a folder on the application server; the first row is skipped as the header.\n2. Each row is split into inspection lot, operation number, characteristic number (or master characteristic), measured value, inspector and date.\n3. BAPI_INSPOPER_GETCHAR reads the characteristics and tolerance limits of the lot. Checks: the lot exists and has no usage decision (QALS-STAT35 blank), the characteristic is open, and for quantitative characteristics the value is numeric.\n4. BAPI_INSPOPER_RECORDRESULTS records the results as single values or as a summary; with \"Valuate and close\" selected, the characteristic is accepted or rejected against its tolerance limits and closed.\n5. In test mode the change is rolled back with BAPI_TRANSACTION_ROLLBACK; in a real run BAPI_TRANSACTION_COMMIT follows each lot. The processed file is moved to an archive folder and failed rows are written to a separate file.","module":"QM","object_type":"interface","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Inspection lot","source_field":"PRUEFLOS","source_table":"QALS"},{"calculated":false,"formula":"","label":"Characteristic no.","source_field":"MERKNR","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Characteristic text","source_field":"KURZTEXT","source_table":"QAMV"},{"calculated":true,"formula":"Measured value from the file","label":"Value","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Valuation","source_field":"MBEWERTG","source_table":"QAMR"},{"calculated":true,"formula":"From the BAPI return messages: checked, recorded or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"First error or success message from the BAPI return table","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"/usr/sap/lab/in/","kind":"parameter","label":"Results file or folder","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Read from application server (background)","name":"P_SERVER","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Valuate and close characteristics","name":"P_CLOSE","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Group the rows by inspection lot and operation and call the BAPI once per group. For folder monitoring, schedule a background job that runs every 15–30 minutes.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=qm-inspection-results-upload","related":["qm-mass-usage-decision","qm-ud-with-missing-results"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Expects results to be keyed in on the screen; does not read files.","tcode":"QE51N"},{"note":"Records results for one inspection lot; no scheduled bulk load.","tcode":"QE01"}],"summary":"A custom interface program that records the measured values in a CSV/XLSX file produced by laboratory instruments or a laboratory information system against inspection lot characteristics in bulk. It removes manual results entry and typing errors, checks everything in test mode and can valuate and close the characteristics.","tables":[{"access":"read","join_on":"QALS-PRUEFLOS = dosyadaki parti","role":"Inspection lot and usage decision status (check)","table":"QALS","variant":"both"},{"access":"read","join_on":"QAMV-PRUEFLOS = QALS-PRUEFLOS","role":"Characteristic definition, unit and tolerance limits (check)","table":"QAMV","variant":"both"},{"access":"write","join_on":"QAMR-PRUEFLOS = QAMV-PRUEFLOS AND QAMR-MERKNR = QAMV-MERKNR","role":"Characteristic result and valuation","table":"QAMR","variant":"both"},{"access":"write","join_on":"QASE-PRUEFLOS = QAMV-PRUEFLOS AND QASE-MERKNR = QAMV-MERKNR","role":"Single measured values","table":"QASE","variant":"both"}],"title":"Inspection Results Upload from Laboratory File Program","url":"https://nekuhub.com/en/programs/inspection-results-upload-from-lab-file-program/","vendor_id":"nekudos"}