{"audience":"QM consultants, quality planning engineers and project teams rolling out a new plant or product range.","authorization_objects":[{"note":"QM transaction authorization (QS21 / QS23)","object":"Q_TCODE"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"If the valid-from date in the file is later than the latest version, a new version is opened and the old version is kept for existing inspection plans. If a version with the same date exists, the row is not changed and is listed as an error.","q":"What happens if an existing characteristic is in the file?"},{"a":"Yes. Inspection method assignment, sampling procedure and additional control indicators can be added as columns to the file template; each additional group of fields raises the effort range slightly.","q":"Can inspection methods and sampling settings be loaded as well?"},{"a":"Yes. QPMK, QPMT and BAPI_QPMK_SAVEREPLICA also exist in S/4HANA; the file template and checks stay the same.","q":"Does the program work 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":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"transport","label":"Delivered as a transport request","note":"The same file can be tried in the test system and then loaded with the same result in production."}],"functions":[{"name":"BAPI_QPMK_SAVEREPLICA","role":"Creates the master inspection characteristic or its new version for each row"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful rows permanently"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back the change in test mode"}],"gap":"QS21 creates master inspection characteristics one at a time and QS23 opens new versions one at a time; there is no file upload. Because the control indicators are entered in pop-ups, recording-based uploads are fragile. When a new plant or product family needs hundreds of characteristics, teams enter them manually for days. The custom program loads the characteristic list from the file through the standard BAPI.","id":"qm-master-inspection-characteristic-upload","industries":[],"input_columns":[{"derived":false,"label":"Master characteristic","required":true,"rule":"","target_field":"MKMNR","target_table":"QPMK"},{"derived":false,"label":"Valid from","required":true,"rule":"","target_field":"GUELTIGAB","target_table":"QPMK"},{"derived":false,"label":"Short text","required":true,"rule":"","target_field":"KURZTEXT","target_table":"QPMT"},{"derived":false,"label":"Language","required":false,"rule":"","target_field":"SPRACHE","target_table":"QPMT"},{"derived":true,"label":"Type (N quantitative, L qualitative)","required":true,"rule":"Written to the quantitative/qualitative control indicator in QPMK-STEUERKZ","target_field":null,"target_table":null},{"derived":false,"label":"Decimal places","required":false,"rule":"","target_field":"STELLEN","target_table":"QPMK"},{"derived":false,"label":"Unit of measure","required":false,"rule":"","target_field":"MASSEINHSW","target_table":"QPMK"},{"derived":false,"label":"Target value","required":false,"rule":"","target_field":"SOLLWERT","target_table":"QPMK"},{"derived":false,"label":"Lower limit","required":false,"rule":"","target_field":"TOLERANZUN","target_table":"QPMK"},{"derived":false,"label":"Upper limit","required":false,"rule":"","target_field":"TOLERANZOB","target_table":"QPMK"},{"derived":true,"label":"Code group (qualitative)","required":false,"rule":"Assigned as the catalog link of a qualitative characteristic; must exist in QPGR","target_field":null,"target_table":null}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read; the plant comes from the selection screen (QPMK-ZAEHLER) and the first row is skipped as the header.\n2. Every row is checked: the characteristic key and valid-from date are mandatory; for a quantitative characteristic the unit must exist in T006, the decimal places must be given and lower limit ≤ target ≤ upper limit must hold; for a qualitative characteristic the code group must exist in QPGR.\n3. If the characteristic already exists in QPMK and the new valid-from date is later, a new version is opened; if a version with the same date exists, the row gets an error.\n4. The row is mapped to the BAPI_QPMK_SAVEREPLICA structures: header and control indicators (quantitative/qualitative, lower and upper limit check, target value check), short text per language (QPMT) and, for a qualitative characteristic, the catalog link.\n5. In test mode the BAPI is called and rolled back with BAPI_TRANSACTION_ROLLBACK; in a real run BAPI_TRANSACTION_COMMIT is called after each successful row. Result and message are listed per row; failed rows can be downloaded as a separate file.","module":"QM","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":"Master characteristic","source_field":"MKMNR","source_table":"QPMK"},{"calculated":false,"formula":"","label":"Version","source_field":"VERSION","source_table":"QPMK"},{"calculated":true,"formula":"From the BAPI return messages: created, new version or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Check message or the first message from the BAPI return table","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\karakteristikler.xlsx","kind":"parameter","label":"Upload file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"1000","kind":"parameter","label":"Plant","name":"P_WERKS","ref_field":"QPMK-ZAEHLER","required":true},{"example":"X","kind":"checkbox","label":"Create with status released","name":"P_RELEA","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Characteristic lists are usually a few hundred rows and load in the foreground within minutes. Committing per row isolates failed rows.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=qm-master-inspection-characteristic-upload","related":["qm-inspection-results-upload","qm-material-inspection-setup-check","qm-process-capability-cpk"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates master inspection characteristics one at a time; no file upload.","tcode":"QS21"},{"note":"Opens new characteristic versions one at a time.","tcode":"QS23"}],"summary":"A custom program that creates quantitative and qualitative master inspection characteristics in bulk from Excel or CSV rows, with text, unit of measure, decimal places, target value, tolerance limits and code group, or opens a new version of them. It checks everything in test mode first, then lists the result of each row.","tables":[{"access":"read_write","join_on":"","role":"Master inspection characteristic header: version, validity, control indicators, target and tolerance","table":"QPMK","variant":"both"},{"access":"write","join_on":"","role":"Characteristic short text (per language)","table":"QPMT","variant":"both"},{"access":"read","join_on":"T006-MSEHI = QPMK-MASSEINHSW","role":"Unit of measure check","table":"T006","variant":"both"},{"access":"read","join_on":"","role":"Code group check for qualitative characteristics","table":"QPGR","variant":"both"}],"title":"Mass Master Inspection Characteristic Upload from Excel Program","url":"https://nekuhub.com/en/programs/mass-master-inspection-characteristic-upload-program/","vendor_id":"nekudos"}