sap-qm
This skill handles SAP QM (품질관리) tasks including Inspection Lot (QA01/QA02/QA03), Inspection Plan (QP01/QP02/QP03), Results Recording (QE01/QE51N), Usage Decision (QA11/QA12/QA13), Quality Notification (QM01/QM02/QM03), Quality Certificate (QC01/QC21), Quality Info Record (QI01/QI02/QI03), and Stability Study. Use when user mentions QM, 품질관리, 품질검사, inspection lot, 검사로트, inspection plan, 검사계획, usage decision, 사용결정, quality notification, 품질통보, MIC, 검사특성, quality certificate, 인증서, sampling, 샘플링.
BoxLogoDev · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add BoxLogoDev/sapstack --skill sap-qmAbout this skill
name: sap-qm description: > This skill handles SAP QM (품질관리) tasks including Inspection Lot (QA01/QA02/QA03), Inspection Plan (QP01/QP02/QP03), Results Recording (QE01/QE51N), Usage Decision (QA11/QA12/QA13), Quality Notification (QM01/QM02/QM03), Quality Certificate (QC01/QC21), Quality Info Record (QI01/QI02/QI03), and Stability Study. Use when user mentions QM, 품질관리, 품질검사, inspection lot, 검사로트, inspection plan, 검사계획, usage decision, 사용결정, quality notification, 품질통보, MIC, 검사특성, quality certificate, 인증서, sampling, 샘플링. allowed-tools: Read, Grep
SAP Quality Management (QM) Skill
1. Environment Intake Checklist
Before starting QM troubleshooting or configuration, collect:
- SAP Release: ECC 6.0 (SP number), S/4HANA 1909+, S/4HANA Cloud
- Deployment: On-premise (ECC/S/4 OP) | Private Cloud (RISE) | Public Cloud (SAP QMS)
- QM Activation:
SPRO > SAP Customizing for Quality Managementconfigured? - Scope: 구매(MM) 수입검사 | 생산(PP) 공정검사 | 판매(SD) 납품검사
- Industry: 제조업(일반) | 화학 | 제약(GMP) | 식품(HACCP) | 자동차(IATF 16949)
- Quality Strategy: 100% 검사 | Sampling plan (AQL-based) | Zero-inspection (trusted supplier)
- Integration: MM-QM 구매검사 | PP-QM 공정검사 | SD-QM 납품검사 | QM-PM 통지서 연동
Skill will adapt all answers to user's specific SAP release, deployment, and industry context.
2. Quality Planning (QP01/QP02/QP03, QS21/QS31, QDV1)
2.1 Inspection Plan Structure (검사계획)
Transaction: QP01 (Create), QP02 (Change), QP03 (Display)
Logical hierarchy:
Inspection Plan Header (PLKO)
├─ Plan Number (PLNNR): 자동 또는 수동 부여
├─ Material (PLKO-MATNR) + Plant (PLKO-WERKS)
├─ Inspection Type (PLKO-LOART):
│ ├─ 01: Purchasing (구매 입고 검사)
│ ├─ 03: Production (공정 검사)
│ ├─ 04: Sales (판매 출고 검사)
│ └─ 08/09: Recurring/Source
├─ Valid from/to (PLKO-GDATU ~ PLKO-GDATU_END)
└─ Status: 1=Created, 2=Released, 3=Locked
└─ Inspection Operations (PLPO) — 검사 단계별
├─ Operation number (OPNR): 10, 20, 30...
├─ MICs (Master Inspection Characteristics — PLMK)
└─ Sampling Procedure (QDV1 reference)
Key Tables:
PLKO: Plan header (Inspection plan name, type, dates)PLPO: Plan operations (Operation sequencing, MIC assignment)PLMK: Plan-MIC assignment (QPMK reference)QPMK: Master Inspection Characteristics (검사특성 마스터)
한국 현장 팁: IATF 16949 대비 각 Operation마다 검사기준(Specification) 명확히 입력 필수. LSL/Target/USL 3개 다 입력.
2.2 Master Inspection Characteristics (MIC) — QS21/QS31
QS21 Transaction (Create MIC):
- MIC Code (QPMK-MERKM): 산도, 경도, 수분율, Tensile strength 등
- Type (QPMK-MERTY): 1=Quantitative (수치), 2=Qualitative (합격/불합격)
- Unit of measure (QPMK-MEINS): mg/L, HV, %, ppm
- Valuation (QPMK-BWFL): A=Automatic, B=Manual, C=Reference sample
Specification Definition (QS31 — Material에 대한 MIC 기준값):
- LSL (Lower Spec Limit): QPSP-LSL
- Target (Nominal): QPSP-ZIELW
- USL (Upper Spec Limit): QPSP-USL
- Tolerance (±): QPSP-ABWG
예시 (제약 API 수분율):
MIC Code: MOISTURE
Type: Quantitative
Unit: %
Specification:
LSL: 1.0%
Target: 2.5%
USL: 5.0%
Valuation: Automatic (측정값 vs LSL/USL 자동 비교)
2.3 Sampling Procedure Configuration (QDV1)
Purpose: Lot size에 따른 샘플 크기 결정 (ISO 2859-1 AQL 기반)
Three sampling schemes:
- Single: 1차 샘플링으로 최종 판정 (Accept/Reject)
- Double: 1차 inconclusive → 2차 샘플링
- Sequential: 합격 판정될 때까지 계속 샘플링
AQL Parameters:
- AQL (Acceptable Quality Level): 예) 1.0% = 최대 1% 불량 허용
- Sample size letter (A~M): ISO 2859-1 lookup table (QPSA 테이블)
- Acceptance number (Ac): "합격" 수량
- Rejection number (Re): "불합격" 수량
Configuration Path: SPRO > QM > Quality Planning > Sampling > Define Sampling Procedure
Key Tables:
- QPSA: Sampling header
- QPSX: Sampling level (Normal/Tightened/Reduced)
한국 자동차: 보통 AQL 2.5% or 4.0% (supplier 신뢰도에 따라 분화)
2.4 Dynamic Modification Rules (QDR1)
목적: 연속 검사 결과에 따라 샘플 크기 동적 조정
Transition Rules:
- Normal → Tightened: N개 불합격 로트 발견 시 (예: 5회)
- Tightened → Normal: M개 연속 합격 로트 (예: 5회)
- Normal → Reduced: K개 연속 합격 + 조건 만족 시 (예: 25회)
- Reduced → Normal: 불합격 또는 OOS 검출
설정 예:
Tightened entry: 불합격 횟수 = 5
Tightened exit: 합격 횟수 = 5
Reduced entry: 합격 횟수 = 25 AND 불합격률 < 0.5%
Reduced exit: 불합격 1회 (즉시)
생산 관점: Tightened 진입 시 생산 속도 저하 (샘플 size ↑) → 원인 파악 및 시정 urgency ↑
3. Quality Inspection — Inspection Lot & Results Recording
3.1 Inspection Lot Creation (QA01)
Inspection types (검사유형, QALS-LOART):
- 01: GR Inspection (구매 입고 검사) — MIGO 후 자동 또는 수동
- 03: In-process (생산 공정 검사) — 공정 단계별 타이밍
- 04: GI Inspection (판매 출고 검사) — MIGO GI 전
- 08: Recurring inspection (반복 검사) — 정기적 재검사
- 09: Source inspection (원산지 검사) — 공급사 공장에서
Automatic Creation Flow:
Material Master (MM02):
QM Control Level (IQMC) = "01" 또는 "02"
↓
Purchasing Info Record (ME11) 또는 Quality Info Record (QI01):
Inspection plan flag = "X"
↓
MIGO (GR posting):
자동 → Inspection Lot 생성 (QALS)
↓
QA25 (Background job):
Daily/Hourly run → 대량 검사로트 생성
Manual Creation (QA01 T-code):
QA01 Screen:
├─ Material Number (QALS-MATNR)
├─ Quantity (QALS-MENGE)
├─ UoM (QALS-MEINS)
├─ Supplier (QALS-LIFNR) — Type 01 구매의 경우
├─ Inspection Type: 01/03/04/08/09
├─ Inspection Plan: 자동 상속 (PLKO → QALS-PLNNR)
└─ Lot number (QALS-LOSNR): Auto/Manual
Key Table: QALS (Inspection Lot Header)
3.2 Sample Definition (QPR1/QPR2)
Sample Determination (샘플 결정):
- Inspection Plan → Sampling Procedure (QDV1) lookup
- Lot size입력 → Sample size 자동 계산 (ISO 2859-1)
- Sample selection strategy:
- Sequential: Units 1, 2, 3... n
- Random: SAP random number generator
- Every nth: e.g. 매 5번째 unit
Sample Recording (QPR1 Transaction):
QPR1:
├─ Select Inspection Lot (QALS)
├─ System proposes sample size & strategy
├─ Assign sample units (팔레트/박스 ID 또는 연번)
└─ Print sample labels (for inspection lab)
Key Tables: QASE (Sample header), QASV (Individual sample values)