I_CharcAttribSelectedSetCode
Selected Set Code for Charc Attribute
I_CharcAttribSelectedSetCode is a Basic CDS View that provides data about "Selected Set Code for Charc Attribute" in SAP S/4HANA. It reads from 1 data source (qpac) and exposes 15 fields with key fields SelectedCodeSetPlant, SelectedCodeSet, CharacteristicAttributeCodeGrp, CharacteristicAttributeCode. It has 4 associations to related views. Part of development package VDM_QM_INSPECTION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| qpac | qpac | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CharcAttributeCodeGrp | _CharcAttributeCodeGrp | $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCodeGrp.CharacteristicAttributeCodeGrp |
| [0..1] | I_CharcAttributeCode | _CharcAttributeCode | $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCode.CharacteristicAttributeCodeGrp and $projection.CharacteristicAttributeCode = _CharcAttributeCode.CharacteristicAttributeCode |
| [0..1] | I_Indicator | _CodeIsInactive | $projection.CodeIsInactive = _CodeIsInactive.IndicatorValue |
| [0..1] | I_CharcAttribSelectedCodeSet | _CharcAttribSelectedCodeSet | $projection.SelectedCodeSetPlant = _CharcAttribSelectedCodeSet.SelectedCodeSetPlant and $projection.SelectedCodeSet = _CharcAttribSelectedCodeSet.SelectedCodeSet |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Selected Set Code for Charc Attribute | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SelectedCodeSetPlant | qpac | werks | |
| KEY | SelectedCodeSet | qpac | auswahlmge | |
| KEY | CharacteristicAttributeCodeGrp | qpac | codegruppe | |
| KEY | CharacteristicAttributeCode | qpac | code | |
| CharcAttributeValuation | qpac | bewertung | ||
| CodeIsInactive | qpac | geloescht | ||
| DefectClass | qpac | fehlklasse | ||
| CharcAttribSeldSetCodeCrtedBy | qpac | ersteller | ||
| CharcAttribSeldSetCodeCrtedOn | qpac | e_datum | ||
| CharcAttribSeldSetCodeChgdBy | qpac | aenderer | ||
| CharcAttribSeldSetCodeChgdOn | qpac | a_datum | ||
| _CharcAttributeCodeGrp | _CharcAttributeCodeGrp | |||
| _CharcAttributeCode | _CharcAttributeCode | |||
| _CodeIsInactive | _CodeIsInactive | |||
| _CharcAttribSelectedCodeSet | _CharcAttribSelectedCodeSet |
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Selected Set Code for Charc Attribute'
@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: #CUSTOMIZING,
sizeCategory: #S,
serviceQuality: #A
}
@Metadata.ignorePropagatedAnnotations: true
define view entity I_CharcAttribSelectedSetCode as select from qpac
association [0..1] to I_CharcAttributeCodeGrp as _CharcAttributeCodeGrp
on $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCodeGrp.CharacteristicAttributeCodeGrp
association [0..1] to I_CharcAttributeCode as _CharcAttributeCode
on $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCode.CharacteristicAttributeCodeGrp
and $projection.CharacteristicAttributeCode = _CharcAttributeCode.CharacteristicAttributeCode
association [0..1] to I_Indicator as _CodeIsInactive
on $projection.CodeIsInactive = _CodeIsInactive.IndicatorValue
// Required for authority checks
association [0..1] to I_CharcAttribSelectedCodeSet as _CharcAttribSelectedCodeSet
on $projection.SelectedCodeSetPlant = _CharcAttribSelectedCodeSet.SelectedCodeSetPlant
and $projection.SelectedCodeSet = _CharcAttribSelectedCodeSet.SelectedCodeSet
{
key qpac.werks as SelectedCodeSetPlant,
//key katalogart as CharacteristicAttributeCatalog,
key qpac.auswahlmge as SelectedCodeSet,
key qpac.codegruppe as CharacteristicAttributeCodeGrp,
key qpac.code as CharacteristicAttributeCode,
// key qpcd.version --> is always 1 so we could leave out
qpac.bewertung as CharcAttributeValuation,
qpac.geloescht as CodeIsInactive,
qpac.fehlklasse as DefectClass,
@Semantics.user.createdBy: true
qpac.ersteller as CharcAttribSeldSetCodeCrtedBy,
@Semantics.businessDate.at: true
qpac.e_datum as CharcAttribSeldSetCodeCrtedOn,
@Semantics.user.lastChangedBy: true
qpac.aenderer as CharcAttribSeldSetCodeChgdBy,
@Semantics.businessDate.at: true
qpac.a_datum as CharcAttribSeldSetCodeChgdOn,
/* Associations */
_CharcAttributeCodeGrp,
_CharcAttributeCode,
_CodeIsInactive,
_CharcAttribSelectedCodeSet
}
where katalogart = '1' and qpac.versionam = '000001'
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