A_UsgeDcsnSeldSetCode

DDL: A_USGEDCSNSELDSETCODE Type: view_entity COMPOSITE

Usage Decision Code

A_UsgeDcsnSeldSetCode is a Composite CDS View that provides data about "Usage Decision Code" in SAP S/4HANA. It reads from 1 data source (I_UsgeDcsnSelectedSetCode) and exposes 11 fields with key fields SelectedCodeSetPlant, SelectedCodeSet, UsageDecisionCodeGroup, UsageDecisionCode. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_UsgeDcsnSelectedSetCode I_UsgeDcsnSelectedSetCode from

Associations (4)

CardinalityTargetAliasCondition
[0..1] A_Plant_2 _SelectedCodeSetPlant $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant
[0..1] A_UsageDecisionCodeGrp _SelectedSetCodeGrp $projection.SelectedCodeSetPlant = _SelectedSetCodeGrp.SelectedCodeSetPlant and $projection.SelectedCodeSet = _SelectedSetCodeGrp.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _SelectedSetCodeGrp.UsageDecisionCodeGroup
[0..*] A_UsageDcsnSeldCodeGrpTxt _UsageDcsnSeldCodeGrpTxt $projection.SelectedCodeSetPlant = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsageDcsnSeldCodeGrpTxt.UsageDecisionCodeGroup
[0..*] A_UsageDcsnSeldCodeTxt _UsageDcsnSeldCodeTxt $projection.SelectedCodeSetPlant = _UsageDcsnSeldCodeTxt.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsageDcsnSeldCodeTxt.SelectedCodeSet and $projection.UsageDecisionCodeGroup = _UsageDcsnSeldCodeTxt.UsageDecisionCodeGroup and $projection.UsageDecisionCode = _UsageDcsnSeldCodeTxt.UsageDecisionCode

Annotations (11)

NameValueLevelField
EndUserText.label Usage Decision Code view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
OData.entitySet.name UsgeDcsnSelectedCode view
OData.entityType.name UsageDecisionSelectedCode_Type view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey UsageDecisionCode view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SelectedCodeSetPlant SelectedCodeSetPlant Receiving Plant
KEY SelectedCodeSet SelectedCodeSet CodeGrp/SelSet
KEY UsageDecisionCodeGroup UsageDecisionCodeGroup Code Group
KEY UsageDecisionCode UsageDecisionCode Water Hazard Cl.
InspLotUsageDecisionValuation InspLotUsageDecisionValuation Code Valuation
InspectionLotQualityScore InspectionLotQualityScore Inspection Lot Score
_UsageDcsnSeldCodeTxt _UsageDcsnSeldCodeTxt
_UsageDcsnSeldCodeGrpTxt _UsageDcsnSeldCodeGrpTxt
_SelectedCodeSet _SelectedCodeSet
_SelectedCodeSetPlant _SelectedCodeSetPlant
_SelectedSetCodeGrp _SelectedSetCodeGrp

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 A_UsgeDcsnSeldSetCode.
-- 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.

CREATE VIEW A_UsgeDcsnSeldSetCode AS
SELECT
  SelectedCodeSetPlant,
  SelectedCodeSet,
  UsageDecisionCodeGroup,
  UsageDecisionCode,
  InspLotUsageDecisionValuation,
  InspectionLotQualityScore
FROM I_UsgeDcsnSelectedSetCode
LEFT OUTER JOIN A_Plant_2 AS _SelectedCodeSetPlant ON SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant  -- association [0..1]
LEFT OUTER JOIN A_UsageDecisionCodeGrp AS _SelectedSetCodeGrp ON SelectedCodeSetPlant = _SelectedSetCodeGrp.SelectedCodeSetPlant AND SelectedCodeSet = _SelectedSetCodeGrp.SelectedCodeSet AND UsageDecisionCodeGroup = _SelectedSetCodeGrp.UsageDecisionCodeGroup  -- association [0..1]
LEFT OUTER JOIN A_UsageDcsnSeldCodeGrpTxt AS _UsageDcsnSeldCodeGrpTxt ON SelectedCodeSetPlant = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSetPlant AND SelectedCodeSet = _UsageDcsnSeldCodeGrpTxt.SelectedCodeSet AND UsageDecisionCodeGroup = _UsageDcsnSeldCodeGrpTxt.UsageDecisionCodeGroup  -- association [0..*]
LEFT OUTER JOIN A_UsageDcsnSeldCodeTxt AS _UsageDcsnSeldCodeTxt ON SelectedCodeSetPlant = _UsageDcsnSeldCodeTxt.SelectedCodeSetPlant AND SelectedCodeSet = _UsageDcsnSeldCodeTxt.SelectedCodeSet AND UsageDecisionCodeGroup = _UsageDcsnSeldCodeTxt.UsageDecisionCodeGroup AND UsageDecisionCode = _UsageDcsnSeldCodeTxt.UsageDecisionCode  -- association [0..*]
;