I_UsageDcsnSelectedCodeSet

DDL: I_USAGEDCSNSELECTEDCODESET SQL: IUDSELCODESET Type: view BASIC

Selected Set of Codes for Usage Decision

I_UsageDcsnSelectedCodeSet is a Basic CDS View that provides data about "Selected Set of Codes for Usage Decision" in SAP S/4HANA. It reads from 1 data source (qpam) and exposes 12 fields with key fields SelectedCodeSetPlant, SelectedCodeSet. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
qpam qpam from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Plant _SelectedCodeSetPlant $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant
[0..*] I_UsageDcsnSelectedCodeSetTxt _Text $projection.SelectedCodeSetPlant = _Text.SelectedCodeSetPlant and $projection.SelectedCodeSet = _Text.SelectedCodeSet
[0..*] I_UsgeDcsnSelectedSetCodeGrp _UsgeDcsnSelectedSetCodeGrp $projection.SelectedCodeSetPlant = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSetPlant and $projection.SelectedCodeSet = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSet

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IUDSELCODESET view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Selected Set of Codes for Usage Decision view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey SelectedCodeSet view
Metadata.ignorePropagatedAnnotations true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SelectedCodeSetPlant qpam werks Receiving Plant
KEY SelectedCodeSet qpam auswahlmge Selected Set
InspectionSelectedSetStatus qpam status Workflow Status
SelectedCodeSetDfltCodeGroup qpam defaultcodegr Default Code Group
SelectedCodeSetDefaultCode qpam defaultcode Default Code
UsgeDcsnSeldSetCreatedBy qpam ersteller Created By
UsgeDcsnSeldSetCreatedOn qpam e_datum Creation Date
UsgeDcsnSeldSetLastChgdBy qpam aenderer Changed By
UsgeDcsnSeldSetLastChangedOn qpam a_datum Changed On
_SelectedCodeSetPlant _SelectedCodeSetPlant
_UsgeDcsnSelectedSetCodeGrp _UsgeDcsnSelectedSetCodeGrp
_Text _Text

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_UsageDcsnSelectedCodeSet.
-- 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: IUDSELCODESET

CREATE VIEW I_UsageDcsnSelectedCodeSet AS
SELECT
  qpam.werks AS SelectedCodeSetPlant,
  qpam.auswahlmge AS SelectedCodeSet,
  qpam.status AS InspectionSelectedSetStatus,
  qpam.defaultcodegr AS SelectedCodeSetDfltCodeGroup,
  qpam.defaultcode AS SelectedCodeSetDefaultCode,
  qpam.ersteller AS UsgeDcsnSeldSetCreatedBy,
  qpam.e_datum AS UsgeDcsnSeldSetCreatedOn,
  qpam.aenderer AS UsgeDcsnSeldSetLastChgdBy,
  qpam.a_datum AS UsgeDcsnSeldSetLastChangedOn
FROM qpam
LEFT OUTER JOIN I_Plant AS _SelectedCodeSetPlant ON SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_UsageDcsnSelectedCodeSetTxt AS _Text ON SelectedCodeSetPlant = _Text.SelectedCodeSetPlant AND SelectedCodeSet = _Text.SelectedCodeSet  -- association [0..*]
LEFT OUTER JOIN I_UsgeDcsnSelectedSetCodeGrp AS _UsgeDcsnSelectedSetCodeGrp ON SelectedCodeSetPlant = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSetPlant AND SelectedCodeSet = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSet  -- association [0..*]
;