I_CapacityBySemanticKey
Capacity Header by Semantic Key
I_CapacityBySemanticKey is a Basic CDS View (Dimension) that provides data about "Capacity Header by Semantic Key" in SAP S/4HANA. It reads from 1 data source (I_Capacity) and exposes 35 fields with key fields Plant, Capacity. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Capacity | kako | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Capacity | _Capacity | $projection.CapacityInternalID = _Capacity.CapacityInternalID |
| [0..1] | I_Capacity | _ReferencedCapacity | $projection.ReferencedCapacityInternalID = _ReferencedCapacity.CapacityInternalID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | Capacity | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Capacity Header by Semantic Key | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_Capacity | Plant | |
| KEY | Capacity | I_Capacity | Capacity | |
| CapacityInternalID | I_Capacity | CapacityInternalID | ||
| CapacityCategoryCode | I_Capacity | CapacityCategoryCode | ||
| CapacityActiveVersion | I_Capacity | CapacityActiveVersion | ||
| CapacityIsFinite | I_Capacity | CapacityIsFinite | ||
| CapacityIsPooled | I_Capacity | CapacityIsPooled | ||
| CapacityHasIndivCapacities | I_Capacity | CapacityHasIndivCapacities | ||
| CapacityIsExcldFrmLongTermPlng | I_Capacity | CapacityIsExcldFrmLongTermPlng | ||
| CapacityNumberOfCapacities | I_Capacity | CapacityNumberOfCapacities | ||
| CapacityResponsiblePlanner | I_Capacity | CapacityResponsiblePlanner | ||
| CapacityPlanUtilizationPercent | I_Capacity | CapacityPlanUtilizationPercent | ||
| CapacityBreakDuration | I_Capacity | CapacityBreakDuration | ||
| CapIsUsedInMultiOperations | I_Capacity | CapIsUsedInMultiOperations | ||
| ReferencedCapacityInternalID | I_Capacity | ReferencedCapacityInternalID | ||
| CapOverloadThresholdInPercent | I_Capacity | CapOverloadThresholdInPercent | ||
| FactoryCalendar | I_Capacity | FactoryCalendar | ||
| AuthorizationGroup | ||||
| ShiftGroup | I_Capacity | ShiftGroup | ||
| CapacityStartTime | ||||
| CapacityEndTime | ||||
| CapacityQuantityUnit | I_Capacity | CapacityQuantityUnit | ||
| CapacityBaseQtyUnit | I_Capacity | CapacityBaseQtyUnit | ||
| CapacityLastChangeDateTime | I_Capacity | CapacityLastChangeDateTime | ||
| _Plant | _Plant | |||
| _Capacity | _Capacity | |||
| _CapacityCategory | _CapacityCategory | |||
| _FactoryCalendar | _FactoryCalendar | |||
| _CapacityResponsiblePlanner | _CapacityResponsiblePlanner | |||
| _ShiftGrouping | _ShiftGrouping | |||
| _CapacityQuantityUnit | _CapacityQuantityUnit | |||
| _CapacityBaseQtyUnit | _CapacityBaseQtyUnit | |||
| _ReferencedCapacity | _ReferencedCapacity | |||
| _Text | _Text | |||
| _ReferencedCapacityText | _ReferencedCapacityText |
//@AbapCatalog.sqlViewName: 'ICAPABYSEMKEY'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
--@Analytics.dataExtraction.enabled: true
//@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE, #SEARCHABLE_ENTITY]
@ObjectModel.representativeKey: 'Capacity'
@ObjectModel.semanticKey: ['Plant', 'Capacity']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #MASTER}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Capacity Header by Semantic Key'
/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] } */
//define view I_CapacityBySemanticKey
define view entity I_CapacityBySemanticKey
as select from I_Capacity as kako
association [1..1] to I_Capacity as _Capacity on $projection.CapacityInternalID = _Capacity.CapacityInternalID
association [0..1] to I_Capacity as _ReferencedCapacity on $projection.ReferencedCapacityInternalID = _ReferencedCapacity.CapacityInternalID
{
// Semantic Key
@ObjectModel.foreignKey.association: '_Plant'
key kako.Plant,
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key kako.Capacity,
// Internal Key
@ObjectModel.foreignKey.association: '_Capacity'
kako.CapacityInternalID,
// Attributes
@ObjectModel.foreignKey.association: '_CapacityCategory'
kako.CapacityCategoryCode,
kako.CapacityActiveVersion,
kako.CapacityIsFinite,
kako.CapacityIsPooled,
kako.CapacityHasIndivCapacities,
kako.CapacityIsExcldFrmLongTermPlng,
kako.CapacityNumberOfCapacities,
@ObjectModel.foreignKey.association: '_CapacityResponsiblePlanner'
kako.CapacityResponsiblePlanner,
kako.CapacityPlanUtilizationPercent,
kako.CapacityBreakDuration,
kako.CapIsUsedInMultiOperations,
@ObjectModel.foreignKey.association: '_ReferencedCapacity'
kako.ReferencedCapacityInternalID,
kako.CapOverloadThresholdInPercent,
// Assignments
@ObjectModel.foreignKey.association: '_FactoryCalendar'
kako.FactoryCalendar,
-- @ObjectModel.foreignKey.association: '_AuthorizationGroup'
kako.AuthorizationGroup,
@ObjectModel.foreignKey.association: '_ShiftGrouping'
kako.ShiftGroup,
// Times (internal in seconds)
-- kako.CapacityStartTime,
--- kako.CapacityEndTime,
// Unit of Measures
// @Semantics.unitOfMeasure: true
kako.CapacityQuantityUnit,
// @Semantics.unitOfMeasure: true
kako.CapacityBaseQtyUnit,
@Semantics.systemDateTime.lastChangedAt: true
kako.CapacityLastChangeDateTime,
//Associations
_Plant,
_Capacity,
_CapacityCategory,
_FactoryCalendar,
_CapacityResponsiblePlanner,
_ShiftGrouping,
_CapacityQuantityUnit,
_CapacityBaseQtyUnit,
_ReferencedCapacity,
_Text,
_ReferencedCapacityText
}
where kako.Capacity != '';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CAPACITY"
],
"ASSOCIATED":
[
"I_CAPACITY",
"I_CAPACITYCATEGORY",
"I_CAPACITYRESPPLANNER",
"I_CAPACITYTEXT",
"I_FACTORYCALENDAR",
"I_PLANT",
"I_SHIFTGROUPING",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_CAPACITY"
],
"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