I_UsageDcsnSelectedCodeSet
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)
| Source | Alias | Join Type |
|---|---|---|
| qpam | qpam | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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