I_OrderOperationBySemKey
Order Operation Basic
I_OrderOperationBySemKey is a Basic CDS View (Dimension) that provides data about "Order Operation Basic" in SAP S/4HANA. It reads from 2 data sources (I_LogisticsOrderBasic, I_OrderOperationBasic) and exposes 11 fields with key fields OrderID, Sequence, OrderOperation. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LogisticsOrderBasic | afko | inner |
| I_OrderOperationBasic | afvc | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_OrderSequenceBySemKey | _OrderSequence | $projection.OrderID = _OrderSequence.OrderID and $projection.Sequence = _OrderSequence.Sequence |
| [1..1] | I_OrderOperation | _OrderOperationInternalID | $projection.OrderInternalID = _OrderOperationInternalID.OrderInternalID and $projection.OrderOperationInternalID = _OrderOperationInternalID.OrderOperationInternalID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Consumption.ranked | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | OrderOperation | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Order Operation Basic | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | I_LogisticsOrderBasic | OrderID | |
| KEY | Sequence | I_OrderOperationBasic | Sequence | |
| KEY | OrderOperation | I_OrderOperationBasic | Operation_2 | |
| OrderInternalID | I_OrderOperationBasic | OrderInternalID | ||
| OrderOperationInternalID | I_OrderOperationBasic | OrderOperationInternalID | ||
| OperationText | I_OrderOperationBasic | OperationText | ||
| OperationSecondText | I_OrderOperationBasic | OperationSecondText | ||
| _Order | _Order | |||
| _OrderSequence | _OrderSequence | |||
| _OrderOperationInternalID | _OrderOperationInternalID | |||
| _OrderInternalID | I_OrderOperationBasic | _OrderInternalID |
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@Consumption.ranked: true
@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: 'OrderOperation'
@ObjectModel.semanticKey: ['OrderID', 'Sequence', 'OrderOperation']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Order Operation Basic'
// To be used mainly for search/foreign key purposes using the semantic key of order operations
define view entity I_OrderOperationBySemKey
as select from I_OrderOperationBasic as afvc
inner join I_LogisticsOrderBasic as afko on afko.OrderInternalID = afvc.OrderInternalID
association [1..1] to I_LogisticsOrder as _Order on $projection.OrderID = _Order.OrderID
association [0..1] to I_OrderSequenceBySemKey as _OrderSequence on $projection.OrderID = _OrderSequence.OrderID
and $projection.Sequence = _OrderSequence.Sequence
association [1..1] to I_OrderOperation as _OrderOperationInternalID on $projection.OrderInternalID = _OrderOperationInternalID.OrderInternalID
and $projection.OrderOperationInternalID = _OrderOperationInternalID.OrderOperationInternalID
{
// Key
@ObjectModel.foreignKey.association: '_Order'
@Search: {defaultSearchElement: true, ranking: #LOW, fuzzinessThreshold: 0.9}
key afko.OrderID,
@ObjectModel.foreignKey.association: '_OrderSequence'
key afvc.Sequence,
@ObjectModel.text.element: ['OperationText', 'OperationSecondText']
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key afvc.Operation_2 as OrderOperation,
// Internal Key
@ObjectModel.foreignKey.association: '_OrderInternalID'
afvc.OrderInternalID,
@ObjectModel.foreignKey.association: '_OrderOperationInternalID'
afvc.OrderOperationInternalID,
// Text
@Semantics.text: true
afvc.OperationText,
@Semantics.text: true
afvc.OperationSecondText,
// Associations
_Order,
_OrderSequence,
_OrderOperationInternalID,
afvc._OrderInternalID
}
where afvc.SuperiorOperationInternalID = '00000000'; // no suboperation
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDERBASIC",
"I_ORDEROPERATIONBASIC"
],
"ASSOCIATED":
[
"I_LOGISTICSORDER",
"I_ORDERINTERNALID",
"I_ORDEROPERATION",
"I_ORDERSEQUENCEBYSEMKEY"
],
"BASE":
[
"I_ORDEROPERATIONBASIC"
],
"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