I_WorkCenterProdCostCube

DDL: I_WORKCENTERPRODCOSTCUBE SQL: IFIWCPRODCSTCUB Type: view COMPOSITE

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)

SourceAliasJoin Type
I_Ledger _Ledger inner
I_WorkCenterProductCost I_WorkCenterProductCost from

Parameters (4)

NameTypeDefault
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_Language sylangu
P_CurrencyRole fac_crcyrole

Annotations (16)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID WorkCenterInternalID Work Center
KEY OrderOperation OrderOperation Operation or Phase
KEY OrderID OrderID Order ID
KEY GLAccount GLAccount General Ledger
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY PartnerCostCenter PartnerCostCenter Sender Cost Ctr
KEY PartnerCostCtrActivityType PartnerCostCtrActivityType Partner Cost Center Activity Type
CompanyCode CompanyCode Receiver Company Code
WorkCenter WorkCenter Work Center
MaterialName
PlantName _Plant PlantName Plant Name
ControllingArea ControllingArea Controlling Area
ControllingAreaName
CompanyCodeName
BusinessArea BusinessArea Business Area
ProfitCenter ProfitCenter Profit Center
ChartOfAccounts _GLAccount ChartOfAccounts Node Class
OrderDescription OrderDescription
OrderCategory OrderCategory Order Category
OrderType OrderType Order Type
ReferenceOrder ReferenceOrder Reference Order
MfgOrderHasMultipleItems MfgOrderHasMultipleItems
ControllingObjectStatus
MRPPlant Plant
UnitOfMeasure UnitOfMeasure Unit Protected Qty
DisplayCurrency DisplayCurrency Display Currency
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

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_WorkCenterProdCostCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IFIWCPRODCSTCUB
-- Parameters: P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_Language : sylangu, P_CurrencyRole : fac_crcyrole

CREATE VIEW I_WorkCenterProdCostCube AS
SELECT
  WorkCenterInternalID,
  OrderOperation,
  OrderID,
  GLAccount,
  Material,
  Plant,
  PartnerCostCenter,
  PartnerCostCtrActivityType,
  CompanyCode,
  WorkCenter,
  cast(COALESCE(_Material._Text[1: Language = $parameters.P_Language].MaterialName, '') as fis_material_text) AS MaterialName,
  _Plant.PlantName AS PlantName,
  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 AS ChartOfAccounts,
  OrderDescription,
  OrderCategory,
  OrderType,
  ReferenceOrder,
  MfgOrderHasMultipleItems,
  '' AS ControllingObjectStatus,
  cast(MRPPlant as fis_co_pwerk) AS MRPPlant,
  UnitOfMeasure,
  DisplayCurrency,
  DebitPlanCostInDspCrcy,
  DebitPlnFxdCostInDspCrcy,
  DebitPlnVarblCostInDspCrcy,
  DebitActlCostInDspCrcy,
  DebitActlFxdCostInDspCrcy,
  DebitActlVarblCostInDspCrcy,
  DebitActlPlnDiffCostInDspCrcy,
  cast( '0' as fis_dr_cocrcy_actlplndiffpct ) AS DebitActlPlanDiffPercent,
  ActualQtyInCostSourceUnit,
  PlanQtyInCostSourceUnit,
  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,
  _OrderType._Text[1: Language = $parameters.P_Language].OrderTypeName AS OrderTypeName
FROM I_WorkCenterProductCost
INNER JOIN I_Ledger AS _Ledger ON /* join condition not captured in parsed metadata */
;