I_InspLotUsgeDcsnCodes

DDL: I_INSPLOTUSGEDCSNCODES SQL: IINSPLOTUDCODES Type: view COMPOSITE Package: VDM_QM_INSPECTION

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)

SourceAliasJoin 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)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;