C_COPCCOrderAndItemCostsCube
CO PCC Order and Item Costs Cube
C_COPCCOrderAndItemCostsCube is a Consumption CDS View that provides data about "CO PCC Order and Item Costs Cube" in SAP S/4HANA. It reads from 1 data source (I_COPCCOrderAndItemCostsCube) and exposes 55 fields with key fields CostElement, CtrlgOriginClassification, ControllingDebitCreditCode, MfgOrderBusTransactionType, OriginCostCenter. Part of development package ODATA_PRODUCTION_COST_ANALYSIS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_COPCCOrderAndItemCostsCube | I_COPCCOrderAndItemCostsCube | from |
Parameters (10)
| Name | Type | Default |
|---|---|---|
| P_OrderID | fis_order_number | |
| P_OrderItem | char4 | |
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_PlanningCategory | fcom_category | |
| P_ResultAnalysisVersion | versn | |
| P_Language | sylangu | |
| P_CurrencyRole | fac_crcyrole | |
| P_CostCompIsForCOGM | char1 | |
| P_ControllingObject | j_objnr |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIPCCOAICSTCUBE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | CO PCC Order and Item Costs Cube | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostElement | CostElement | G/L Account | |
| KEY | CtrlgOriginClassification | CtrlgOriginClassification | ||
| KEY | ControllingDebitCreditCode | ControllingDebitCreditCode | Dr/Cr ind. CO | |
| KEY | MfgOrderBusTransactionType | MfgOrderBusTransactionType | ||
| KEY | OriginCostCenter | |||
| KEY | OriginCostCtrActivityType | OriginCostCtrActivityType | ||
| KEY | OriginBusinessProcess | OriginBusinessProcess | ||
| KEY | OriginOrder | OriginOrder | ||
| KEY | CostOriginType | CostOriginType | ||
| KEY | OriginObject | |||
| KEY | CostOriginGroup | CostOriginGroup | Origin Group | |
| KEY | PartnerCostCenter | Sender Cost Ctr | ||
| KEY | PartnerCostCtrActivityType | PartnerCostCtrActivityType | Partner Cost Center Activity Type | |
| KEY | PartnerBusinessProcess | PartnerBusinessProcess | Part. Bus. Process | |
| KEY | PartnerOrder | PartnerOrder | Partner Order | |
| KEY | PartnerCostObject | |||
| Plant | Plant | Valuation Area | ||
| Material | Material | Vehicle Model | ||
| SalesOrder | SalesOrder | SD Document | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ResponsibleCostCenter | ResponsibleCostCenter | Responsible Cost Center | ||
| OrderCategory | OrderCategory | Order Category | ||
| OrderType | OrderType | Order Type | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| CostComponent | ||||
| CostComponentGroup | ||||
| CostCompIsForCOGM | ||||
| GLAccountName | ||||
| CostCenterName | ||||
| CostCtrActivityTypeName | ||||
| CostComponentName | ||||
| CostComponentGroupName | ||||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| ActualQtyInCostSourceUnit | ActualQtyInCostSourceUnit | |||
| PlanQtyInCostSourceUnit | PlanQtyInCostSourceUnit | |||
| TargetQtyInCostSourceUnit | TargetQtyInCostSourceUnit | |||
| PlanCtrlQtyInCostSourceUnit | PlanCtrlQtyInCostSourceUnit | |||
| ActlCtrlQtyInCostSourceUnit | ActlCtrlQtyInCostSourceUnit | |||
| DspCrcyActlPlanDiffPct | ||||
| DebitActlPlanDiffPercent | DebitActlPlanDiffPercent | |||
| ActlPlanDiffQuantity | ActlPlanDiffQuantity | |||
| ActlPlanDiffQtyPct | ||||
| DspCrcyActlTgtDiffPct | ||||
| DebitActlTgtDiffPercent | DebitActlTgtDiffPercent | |||
| ActlTgtDiffQuantity | ActlTgtDiffQuantity | |||
| ActlTgtDiffQtyPct | ||||
| DspCrcyPlnCtrlTgtDiffPct | ||||
| PlanCtrlTgtDiffQtyPct | ||||
| DspCrcyActlCtrlTgtDiffPct | ||||
| ActlCtrlTgtDiffQtyPct | ||||
| MaterialName | ||||
| MfgDebitCreditCodeName | ||||
| MfgOrderBusTransactionTypeName |
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 C_COPCCOrderAndItemCostsCube.
-- 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: CFIPCCOAICSTCUBE
-- Parameters: P_OrderID : fis_order_number, P_OrderItem : char4, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_PlanningCategory : fcom_category, P_ResultAnalysisVersion : versn, P_Language : sylangu, P_CurrencyRole : fac_crcyrole, P_CostCompIsForCOGM : char1, P_ControllingObject : j_objnr
CREATE VIEW C_COPCCOrderAndItemCostsCube AS
SELECT
CostElement,
CtrlgOriginClassification,
ControllingDebitCreditCode,
MfgOrderBusTransactionType,
cast(OriginCostCenter as fis_usp_kostl) AS OriginCostCenter,
OriginCostCtrActivityType,
OriginBusinessProcess,
OriginOrder,
CostOriginType,
cast(ltrim(OriginObject, '0') as kkb_herku) AS OriginObject,
CostOriginGroup,
cast(PartnerCostCenter as fis_skost) AS PartnerCostCenter,
PartnerCostCtrActivityType,
PartnerBusinessProcess,
PartnerOrder,
cast(ltrim(PartnerCostObject, '0') as kkb_partn) AS PartnerCostObject,
Plant,
Material,
SalesOrder,
ControllingArea,
CompanyCode,
ProfitCenter,
ResponsibleCostCenter,
OrderCategory,
OrderType,
ChartOfAccounts,
cast('' as ck_element) AS CostComponent,
cast('' as fis_ck_el_grup) AS CostComponentGroup,
cast('' as ck_herko) AS CostCompIsForCOGM,
cast('' as fis_kstar_name) AS GLAccountName,
cast('' as fis_origin_cost_center_name) AS CostCenterName,
cast('' as fis_origin_activity_type_name) AS CostCtrActivityTypeName,
cast('' as fco_cost_component_name) AS CostComponentName,
cast('' as fis_ck_txgrp) AS CostComponentGroupName,
UnitOfMeasure,
ActualQtyInCostSourceUnit,
PlanQtyInCostSourceUnit,
TargetQtyInCostSourceUnit,
PlanCtrlQtyInCostSourceUnit,
ActlCtrlQtyInCostSourceUnit,
cast(0 as fis_dspcrcy_actlplndiffpct) AS DspCrcyActlPlanDiffPct,
DebitActlPlanDiffPercent,
ActlPlanDiffQuantity,
cast(0 as fis_actlplandiffoutpqtypercent) AS ActlPlanDiffQtyPct,
cast( 0 as fis_dspcrcy_actltgtdiffpct) AS DspCrcyActlTgtDiffPct,
DebitActlTgtDiffPercent,
ActlTgtDiffQuantity,
cast(0 as fis_actltgtdiffqtypct) AS ActlTgtDiffQtyPct,
cast(0 as fis_dspcrcy_plnctrltgtdiffpct) AS DspCrcyPlnCtrlTgtDiffPct,
cast(0 as fis_planctrltgt_diffqtypct) AS PlanCtrlTgtDiffQtyPct,
cast(0 as fis_dspcrcy_actlctrltgtdiffpct) AS DspCrcyActlCtrlTgtDiffPct,
cast(0 as fis_actlctrltgt_diffqtypct) AS ActlCtrlTgtDiffQtyPct,
cast(_Material._Text[1: Language = $parameters.P_Language].MaterialName as fis_material_text) AS MaterialName,
cast( _MfgDebitCreditCode._Text[1: Language = $parameters.P_Language].MfgDebitCreditCodeName as fis_debit_indicator_text) AS MfgDebitCreditCodeName,
_COProdnOrderBusTrans._Text[1: Language = $parameters.P_Language].MfgOrderBusTransactionTypeName AS MfgOrderBusTransactionTypeName
FROM I_COPCCOrderAndItemCostsCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA