The SAP QM technical method for retrieving inspection codes and their short texts follows this process flow:
Starting Point: QALS (Inspection Lot)
The process begins with table QALS, which contains inspection lot header data. From QALS, you'll need to identify the relevant inspection lots based on your selection criteria. Key fields include:
- PRUEFLOS (Inspection Lot Number)
- WERK (Plant)
- ART (Inspection Type)
Linking to QPAC (Inspection Catalog Codes)
From QALS, join to table QPAC using the inspection lot number. QPAC stores the actual catalog codes assigned to inspection characteristics. The join typically uses:
- QALS-PRUEFLOS = QPAC-PRUEFLOS
QPAC contains the catalog codes with these important fields:
- KATALOGART (Catalog Type - e.g., '1' for defect types, '5' for causes)
- CODEGRUPPE (Code Group)
- CODE (Individual Code)
- VERSION (Catalog Version)
Retrieving Text from QPCT (Code Texts)
To get the short texts for the codes, join from QPAC to QPCT. This table stores the language-dependent texts for catalog codes. The join conditions are:
- QPAC-KATALOGART = QPCT-KATALOGART
- QPAC-CODEGRUPPE = QPCT-CODEGRUPPE
- QPAC-CODE = QPCT-CODE
- QPCT-SPRACHE = [desired language key, e.g., 'EN' for English]
The VERSION field may also need to be considered depending on whether versioning is active in your system.
Complete Process Flow:
- Select inspection lots from QALS based on your criteria
- Join to QPAC to get all catalog codes associated with those lots
- Join to QPCT with the specific language parameter to retrieve the short texts
- The result set will contain the inspection lot information along with all associated codes and their language-specific descriptions
This approach ensures you capture all catalog codes (defects, causes, tasks, etc.) linked to your selected inspection lots with their proper text descriptions in the required language.