I_WorkCenterProdCostCube
Production Cost By Work Center
I_WorkCenterProdCostCube is a Composite CDS View (Cube) that provides data about "Production Cost By Work Center" in SAP S/4HANA. It reads from 2 data sources (I_Ledger, I_WorkCenterProductCost) and exposes 56 fields with key fields WorkCenterInternalID, OrderOperation, OrderID, GLAccount, Material.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Ledger | _Ledger | inner |
| I_WorkCenterProductCost | I_WorkCenterProductCost | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_Language | sylangu | |
| P_CurrencyRole | fac_crcyrole |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIWCPRODCSTCUB | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Production Cost By Work Center | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | WorkCenterInternalID | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | WorkCenterInternalID | ||
| KEY | OrderOperation | OrderOperation | ||
| KEY | OrderID | OrderID | ||
| KEY | GLAccount | GLAccount | ||
| KEY | Material | Material | ||
| KEY | Plant | Plant | ||
| KEY | PartnerCostCenter | PartnerCostCenter | ||
| KEY | PartnerCostCtrActivityType | PartnerCostCtrActivityType | ||
| CompanyCode | CompanyCode | |||
| WorkCenter | WorkCenter | |||
| MaterialName | ||||
| PlantName | _Plant | PlantName | ||
| ControllingArea | ControllingArea | |||
| ControllingAreaName | ||||
| CompanyCodeName | ||||
| BusinessArea | BusinessArea | |||
| ProfitCenter | ProfitCenter | |||
| ChartOfAccounts | _GLAccount | ChartOfAccounts | ||
| OrderDescription | OrderDescription | |||
| OrderCategory | OrderCategory | |||
| OrderType | OrderType | |||
| ReferenceOrder | ReferenceOrder | |||
| MfgOrderHasMultipleItems | MfgOrderHasMultipleItems | |||
| ControllingObjectStatus | ||||
| MRPPlant | ||||
| UnitOfMeasure | UnitOfMeasure | |||
| DisplayCurrency | DisplayCurrency | |||
| DebitPlanCostInDspCrcy | DebitPlanCostInDspCrcy | |||
| DebitPlnFxdCostInDspCrcy | DebitPlnFxdCostInDspCrcy | |||
| DebitPlnVarblCostInDspCrcy | DebitPlnVarblCostInDspCrcy | |||
| DebitActlCostInDspCrcy | DebitActlCostInDspCrcy | |||
| DebitActlFxdCostInDspCrcy | DebitActlFxdCostInDspCrcy | |||
| DebitActlVarblCostInDspCrcy | DebitActlVarblCostInDspCrcy | |||
| DebitActlPlnDiffCostInDspCrcy | DebitActlPlnDiffCostInDspCrcy | |||
| DebitActlPlanDiffPercent | ||||
| ActualQtyInCostSourceUnit | ActualQtyInCostSourceUnit | |||
| PlanQtyInCostSourceUnit | PlanQtyInCostSourceUnit | |||
| ActlPlanDiffQuantity | ActlPlanDiffQuantity | |||
| WorkCenterText | ||||
| GLAccountName | ||||
| CostCenterName | ||||
| CostCenterDescription | ||||
| CostCtrActivityTypeName | ||||
| CostCtrActivityTypeDesc | ||||
| OrderTypeName | ||||
| _CtrlgOrder | _CtrlgOrder | |||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode | |||
| _WorkCenter | _WorkCenter | |||
| _Material | _Material | |||
| _GLAccount | _GLAccount | |||
| _CostCenter | _CostCenter | |||
| _ActivityType | _ActivityType | |||
| _Plant | _Plant | |||
| _ProdnOrdOp | _ProdnOrdOp | |||
| _ProcOrdOp | _ProcOrdOp |
@AbapCatalog.sqlViewName: 'IFIWCPRODCSTCUB'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Production Cost By Work Center'
@VDM.viewType: #COMPOSITE
@Analytics: { dataCategory: #CUBE}
@Metadata.allowExtensions:true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'WorkCenterInternalID'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
define view I_WorkCenterProdCostCube
with parameters
P_FromFiscalYearPeriod : fins_fyearperiod,
P_ToFiscalYearPeriod : fins_fyearperiod,
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu,
P_CurrencyRole : fac_crcyrole
as select from I_WorkCenterProductCost (
P_FromFiscalYearPeriod : $parameters.P_FromFiscalYearPeriod,
P_ToFiscalYearPeriod : $parameters.P_ToFiscalYearPeriod,
P_PlanningCategory : 'PLANORD01',
P_CurrencyRole : $parameters.P_CurrencyRole
) as _Cost
inner join I_Ledger as _Ledger on _Cost.Ledger = _Ledger.Ledger
and _Ledger.IsLeadingLedger = 'X'
{
key WorkCenterInternalID,
@ObjectModel.foreignKey.association: '_ProdnOrdOp'
key OrderOperation,
@ObjectModel.foreignKey.association: '_CtrlgOrder'
key OrderID,
@ObjectModel.foreignKey.association: '_GLAccount'
key GLAccount,
@ObjectModel.foreignKey.association: '_Material'
key Material,
@ObjectModel.foreignKey.association: '_Plant'
key Plant,
@ObjectModel.foreignKey.association: '_CostCenter'
key PartnerCostCenter,
@ObjectModel.foreignKey.association: '_ActivityType'
key PartnerCostCtrActivityType,
@ObjectModel.foreignKey.association: '_CompanyCode'
CompanyCode,
WorkCenter,
cast(COALESCE(_Material._Text[1: Language = $parameters.P_Language].MaterialName, '') as fis_material_text) as MaterialName,
_Plant.PlantName,
@ObjectModel.foreignKey.association: '_ControllingArea'
ControllingArea,
cast( _ControllingArea.ControllingAreaName as fis_bezei preserving type ) as ControllingAreaName,
cast( _CompanyCode.CompanyCodeName as fis_butxt preserving type ) as CompanyCodeName,
BusinessArea,
ProfitCenter,
_GLAccount.ChartOfAccounts,
@Semantics.text:true
OrderDescription,
OrderCategory,
OrderType,
ReferenceOrder,
MfgOrderHasMultipleItems,
// Requested by D020376 because of incompatible change when upgrade, will be deleted in further release
'' as ControllingObjectStatus,
cast(MRPPlant as fis_co_pwerk) as MRPPlant,
@Semantics.unitOfMeasure:true
UnitOfMeasure,
// Currencies
// @Semantics.currencyCode: true
// cast( case $parameters.P_CurrencyRole
// when '20' then GlobalCurrency
// else CompanyCodeCurrency
// end as cficuky ) as DisplayCurrency,
@Semantics.currencyCode:true
@UI.hidden: true
DisplayCurrency,
// plan costs
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitPlanCostInDspCrcy,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitPlnFxdCostInDspCrcy,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitPlnVarblCostInDspCrcy,
// actual costs
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitActlCostInDspCrcy,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitActlFxdCostInDspCrcy,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitActlVarblCostInDspCrcy,
// Actual - Plan Deviation
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'DisplayCurrency'} }
DebitActlPlnDiffCostInDspCrcy,
// Requested by D020376 because of incompatible change when upgrade, will be deleted in further release
@DefaultAggregation: #NONE
cast( '0' as fis_dr_cocrcy_actlplndiffpct ) as DebitActlPlanDiffPercent,
//Quantity
@DefaultAggregation: #SUM
@Semantics: { quantity : {unitOfMeasure: 'UnitOfMeasure'} }
ActualQtyInCostSourceUnit,
@DefaultAggregation: #SUM
@Semantics: { quantity : {unitOfMeasure: 'UnitOfMeasure'} }
PlanQtyInCostSourceUnit,
@DefaultAggregation: #SUM
@Semantics: { quantity : {unitOfMeasure: 'UnitOfMeasure'} }
ActlPlanDiffQuantity,
cast(COALESCE(_WorkCenter._Text[1: Language = $parameters.P_Language].WorkCenterText, '') as workcentertext) as WorkCenterText,
cast(COALESCE(_GLAccount._Text[1: Language = $parameters.P_Language].GLAccountName, '') as txt20_skat) as GLAccountName,
cast( _CostCenter[1:ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date]._Text[1: Language = $session.system_language].CostCenterName as fis_kostl_name ) as CostCenterName,
cast( _CostCenter[1:ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date]._Text[1: Language = $session.system_language].CostCenterDescription as fis_kostl_ltext ) as CostCenterDescription,
cast( _ActivityType[1:ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date]._Text[1: Language = $session.system_language].CostCtrActivityTypeName as ktext ) as CostCtrActivityTypeName,
cast( _ActivityType[1:ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date]._Text[1: Language = $session.system_language].CostCtrActivityTypeDesc as ltext ) as CostCtrActivityTypeDesc,
cast( case OrderCategory
when '10' then _ProdnOrdOp.OperationDescription
when '40' then _ProcOrdOp.OperationDescription
else '' end as ltxa1) as OperationDescription,
//Order Type Description
_OrderType._Text[1: Language = $parameters.P_Language].OrderTypeName as OrderTypeName,
_CtrlgOrder,
_ControllingArea,
_CompanyCode,
_WorkCenter,
_Material,
_GLAccount,
_CostCenter,
_ActivityType,
_Plant,
_ProdnOrdOp,
_ProcOrdOp
}
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