I_InspLotUsgeDcsnCodes
Usage Decision Codes for Inspection Lot
I_InspLotUsgeDcsnCodes is a Composite CDS View that provides data about "Usage Decision Codes for Inspection Lot" in SAP S/4HANA. It reads from 22 data sources and exposes 85 fields with key fields InspectionLot, SelectedCodeSetPlant, SelectedCodeSet, UsageDecisionCodeGroup, UsageDecisionCode. It has 2 associations to related views. Part of development package VDM_QM_INSPECTION.
Data Sources (22)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLot | I_InspectionLot | from |
| I_InspectionLot | I_InspectionLot | union |
| I_InspectionLot | I_InspectionLot | union |
| I_InspectionLot | I_InspectionLot | union |
| I_InspectionLot | I_InspectionLot | union |
| I_InspectionLot | I_InspectionLot | union |
| I_InspectionLotType | I_InspectionLotType | inner |
| I_InspectionLotType | I_InspectionLotType | inner |
| I_InspectionLotType | I_InspectionLotType | inner |
| I_InspectionLotType | I_InspectionLotType | inner |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | left_outer |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | left_outer |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | left_outer |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | left_outer |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | inner |
| I_InspLotTypePlantSettings | I_InspLotTypePlantSettings | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
| I_UsgeDcsnSelectedSetCode | I_UsgeDcsnSelectedSetCode | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | $projection.SelectedCodeSetPlant = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsgeDcsnSelectedSetCodeGrp.UsageDecisionCodeGroup |
| [0..1] | I_UsgeDcsnSelectedSetCode | _UsgeDcsnSelectedSetCode | $projection.SelectedCodeSetPlant = _UsgeDcsnSelectedSetCode.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsgeDcsnSelectedSetCode.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsgeDcsnSelectedSetCode.UsageDecisionCodeGroup and $projection.UsageDecisionCode = _UsgeDcsnSelectedSetCode.UsageDecisionCode |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Usage Decision Codes for Inspection Lot | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IINSPLOTUDCODES | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.representativeKey | InspectionLot | view |
Fields (85)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionLot | InspectionLot | Inspection Lot |
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| InspectionLot | Inspection Lot | |||
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| InspectionLot | Inspection Lot | |||
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| InspectionLot | Inspection Lot | |||
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| InspectionLot | Inspection Lot | |||
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| InspectionLot | Inspection Lot | |||
| KEY | SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | SelectedCodeSetPlant | Receiving Plant |
| KEY | SelectedCodeSet | I_UsgeDcsnSelectedSetCode | SelectedCodeSet | CodeGrp/SelSet |
| KEY | UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | UsageDecisionCodeGroup | Code Group |
| KEY | UsageDecisionCode | I_UsgeDcsnSelectedSetCode | UsageDecisionCode | Water Hazard Cl. |
| CodeIsInactive | I_UsgeDcsnSelectedSetCode | CodeIsInactive | Inactive Indicator | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _SelectedCodeSetPlant | I_UsgeDcsnSelectedSetCode | _SelectedCodeSetPlant | ||
| _SelectedCodeSet | I_UsgeDcsnSelectedSetCode | _SelectedCodeSet | ||
| _UsageDecisionCodeGroup | I_UsgeDcsnSelectedSetCode | _UsageDecisionCodeGroup | ||
| _UsageDecisionCode | I_UsgeDcsnSelectedSetCode | _UsageDecisionCode | ||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| _UsgeDcsnSelectedSetCode | _UsgeDcsnSelectedSetCode |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_InspLotUsgeDcsnCodes.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IINSPLOTUDCODES
CREATE VIEW I_InspLotUsgeDcsnCodes AS
SELECT
I_InspectionLot.InspectionLot AS InspectionLot,
I_UsgeDcsnSelectedSetCode.SelectedCodeSetPlant AS SelectedCodeSetPlant,
I_UsgeDcsnSelectedSetCode.SelectedCodeSet AS SelectedCodeSet,
I_UsgeDcsnSelectedSetCode.UsageDecisionCodeGroup AS UsageDecisionCodeGroup,
I_UsgeDcsnSelectedSetCode.UsageDecisionCode AS UsageDecisionCode,
I_UsgeDcsnSelectedSetCode.CodeIsInactive AS CodeIsInactive,
I_InspectionLot.Plant AS Plant,
I_InspectionLot.InspectionLotType AS InspectionLotType,
I_InspectionLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
I_UsgeDcsnSelectedSetCode._SelectedCodeSetPlant AS _SelectedCodeSetPlant,
I_UsgeDcsnSelectedSetCode._SelectedCodeSet AS _SelectedCodeSet,
I_UsgeDcsnSelectedSetCode._UsageDecisionCodeGroup AS _UsageDecisionCodeGroup,
I_UsgeDcsnSelectedSetCode._UsageDecisionCode AS _UsageDecisionCode
FROM I_InspectionLot
LEFT OUTER JOIN I_InspLotTypePlantSettings ON /* join condition not captured in parsed metadata */
INNER JOIN I_InspectionLotType ON /* join condition not captured in parsed metadata */
INNER JOIN I_UsgeDcsnSelectedSetCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_InspLotTypePlantSettings ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UsgeDcsnSelectedSetCodeGrp AS _UsgeDcsnSelectedSetCodeGrp ON SelectedCodeSetPlant = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSetPlant AND SelectedCodeSet = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSet AND UsageDecisionCodeGroup = _UsgeDcsnSelectedSetCodeGrp.UsageDecisionCodeGroup -- association [0..1]
LEFT OUTER JOIN I_UsgeDcsnSelectedSetCode AS _UsgeDcsnSelectedSetCode ON SelectedCodeSetPlant = _UsgeDcsnSelectedSetCode.SelectedCodeSetPlant AND SelectedCodeSet = _UsgeDcsnSelectedSetCode.SelectedCodeSet AND UsageDecisionCodeGroup = _UsgeDcsnSelectedSetCode.UsageDecisionCodeGroup AND UsageDecisionCode = _UsgeDcsnSelectedSetCode.UsageDecisionCode -- association [0..1]
-- UNION with additional select branch(es): I_InspectionLot
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA