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 | |
| KEY | SelectedCodeSet | qpam | auswahlmge | |
| InspectionSelectedSetStatus | qpam | status | ||
| SelectedCodeSetDfltCodeGroup | qpam | defaultcodegr | ||
| SelectedCodeSetDefaultCode | qpam | defaultcode | ||
| UsgeDcsnSeldSetCreatedBy | qpam | ersteller | ||
| UsgeDcsnSeldSetCreatedOn | qpam | e_datum | ||
| UsgeDcsnSeldSetLastChgdBy | qpam | aenderer | ||
| UsgeDcsnSeldSetLastChangedOn | qpam | a_datum | ||
| _SelectedCodeSetPlant | _SelectedCodeSetPlant | |||
| _UsgeDcsnSelectedSetCodeGrp | _UsgeDcsnSelectedSetCodeGrp | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'IUDSELCODESET'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Selected Set of Codes for Usage Decision'
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@ObjectModel.supportedCapabilities:
[ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.usageType: {
dataClass: #MASTER,
sizeCategory: #M,
serviceQuality: #A
}
@ObjectModel.representativeKey: 'SelectedCodeSet'
@Metadata.ignorePropagatedAnnotations: true
define view I_UsageDcsnSelectedCodeSet as select from qpam
association [0..1] to I_Plant as _SelectedCodeSetPlant
on $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant
association [0..*] to I_UsageDcsnSelectedCodeSetTxt as _Text
on $projection.SelectedCodeSetPlant = _Text.SelectedCodeSetPlant
and $projection.SelectedCodeSet = _Text.SelectedCodeSet
association [0..*] to I_UsgeDcsnSelectedSetCodeGrp as _UsgeDcsnSelectedSetCodeGrp
on $projection.SelectedCodeSetPlant = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSetPlant
and $projection.SelectedCodeSet = _UsgeDcsnSelectedSetCodeGrp.SelectedCodeSet
{
@ObjectModel.foreignKey.association: '_SelectedCodeSetPlant'
key qpam.werks as SelectedCodeSetPlant,
@ObjectModel.text.association: '_Text'
key qpam.auswahlmge as SelectedCodeSet,
// qpam.ltextv,
// qpam.ersteller,
// qpam.e_datum,
// qpam.aenderer,
// qpam.a_datum,
// qpam.verwendung,
@UI.hidden: true // At the moment we do not have a proper VDM model for the domain QLOESCHKZ1 => hide this field on UIs
qpam.status as InspectionSelectedSetStatus,
qpam.defaultcodegr as SelectedCodeSetDfltCodeGroup,
qpam.defaultcode as SelectedCodeSetDefaultCode,
@Semantics.user.createdBy: true
qpam.ersteller as UsgeDcsnSeldSetCreatedBy,
@Semantics.systemDateTime.createdAt: true
qpam.e_datum as UsgeDcsnSeldSetCreatedOn,
@Semantics.user.lastChangedBy: true
qpam.aenderer as UsgeDcsnSeldSetLastChgdBy,
@Semantics.systemDate.lastChangedAt: true
qpam.a_datum as UsgeDcsnSeldSetLastChangedOn,
/* Associations */
_SelectedCodeSetPlant,
_UsgeDcsnSelectedSetCodeGrp,
_Text
} where qpam.katalogart = '3'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"QPAM"
],
"ASSOCIATED":
[
"I_PLANT",
"I_USAGEDCSNSELECTEDCODESETTXT",
"I_USGEDCSNSELECTEDSETCODEGRP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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