C_ObjPgMaintOrderOperationCost
Maintenance Order Operation Cost
C_ObjPgMaintOrderOperationCost is a Consumption CDS View that provides data about "Maintenance Order Operation Cost" in SAP S/4HANA. It reads from 1 data source (I_MaintOrderOperationCost) and exposes 16 fields with key fields MaintOrderOperationInternalID, ControllingAreaCurrency, ControllingObjectDebitType, ControllingValueType, FiscalYear. It has 1 association to related views. Part of development package ODATA_EAM_ORD_MAN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderOperationCost | I_MaintOrderOperationCost | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ObjPgMaintOrderOperation | _MaintOrderOperation | _MaintOrderOperation.MaintOrderOperationInternalID = $projection.MaintOrderOperationInternalID |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Order Operation Cost | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintOrderOperationInternalID | I_MaintOrderOperationCost | MaintOrderOperationInternalID | |
| KEY | ControllingAreaCurrency | I_MaintOrderOperationCost | ControllingAreaCurrency | |
| KEY | ControllingObjectDebitType | I_MaintOrderOperationCost | ControllingObjectDebitType | |
| KEY | ControllingValueType | I_MaintOrderOperationCost | ControllingValueType | |
| KEY | FiscalYear | I_MaintOrderOperationCost | FiscalYear | |
| KEY | ValueCategory | I_MaintOrderOperationCost | ValueCategory | |
| KEY | PlanningVersion | I_MaintOrderOperationCost | PlanningVersion | |
| KEY | HighestPeriodInRecord | I_MaintOrderOperationCost | HighestPeriodInRecord | |
| KEY | BudgetType | I_MaintOrderOperationCost | BudgetType | |
| KEY | AccountingIndicatorCode | I_MaintOrderOperationCost | AccountingIndicatorCode | |
| KEY | ResultCategory | I_MaintOrderOperationCost | ResultCategory | |
| ValueCategoryName | Value Category | |||
| EstimatedCost | ||||
| PlannedCost | ||||
| ActualCost | ||||
| _MaintOrderOperation | _MaintOrderOperation |
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance Order Operation Cost'
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@VDM.viewType: #CONSUMPTION
define view entity C_ObjPgMaintOrderOperationCost
as select from I_MaintOrderOperationCost as I_MaintOrderOperationCost
association [1..1] to C_ObjPgMaintOrderOperation as _MaintOrderOperation on _MaintOrderOperation.MaintOrderOperationInternalID = $projection.MaintOrderOperationInternalID
{
@UI.hidden: true
key I_MaintOrderOperationCost.MaintOrderOperationInternalID,
key I_MaintOrderOperationCost.ControllingAreaCurrency,
@UI.hidden: true
key I_MaintOrderOperationCost.ControllingObjectDebitType,
@UI.hidden: true
key I_MaintOrderOperationCost.ControllingValueType,
@UI.hidden: true
key I_MaintOrderOperationCost.FiscalYear,
@UI.hidden: true
key I_MaintOrderOperationCost.ValueCategory,
@UI.hidden: true
key I_MaintOrderOperationCost.PlanningVersion,
@UI.hidden: true
key I_MaintOrderOperationCost.HighestPeriodInRecord,
@UI.hidden: true
key I_MaintOrderOperationCost.BudgetType,
@UI.hidden: true
key I_MaintOrderOperationCost.AccountingIndicatorCode,
@UI.hidden: true
key I_MaintOrderOperationCost.ResultCategory,
@EndUserText.label: 'Value Category'
@UI: {
lineItem: [ {position: 10, importance: #HIGH, label: 'Value Category' }]
}
cast('' as char30) as ValueCategoryName,
/* Todo: Implement I_ValueCategory / copy from Z
_ValueCategory._Text[1:Language = $session.system_language].ValueCategoryName as ValueCategoryName,
*/
@Semantics.amount.currencyCode: 'ControllingAreaCurrency'
@UI: {
identification: [ {position: 20, importance: #HIGH }],
lineItem: [ {position: 20, importance: #HIGH, label: 'Estimated Cost' }]
}
cast('0' as dkgrkossch ) as EstimatedCost,
@Semantics.amount.currencyCode: 'ControllingAreaCurrency'
@UI: {
identification: [ {position: 30, importance: #HIGH }],
lineItem: [ {position: 30, importance: #HIGH, label: 'Planned Cost' }]
}
cast('0' as dkgrkoplan ) as PlannedCost,
@Semantics.amount.currencyCode: 'ControllingAreaCurrency'
@UI: {
identification: [ {position: 40, importance: #HIGH }],
lineItem: [ {position: 40, importance: #HIGH, label: 'Actual Cost' }]
}
cast('0' as dkgrkoplan ) as ActualCost,
//association
_MaintOrderOperation
}
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