C_ProductCostByOrderQuery
Production Cost By Order
C_ProductCostByOrderQuery is a Consumption CDS View that provides data about "Production Cost By Order" in SAP S/4HANA. It reads from 1 data source (I_ProductCostByOrderCube) and exposes 52 fields with key field OrderID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductCostByOrderCube | I_ProductCostByOrderCube | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_PlanVersion | fis_kkb_plvrs | |
| P_TargetCostVariant | fis_awvrs | |
| P_ResultAnalysisVersion | versn_abgr | |
| P_Language | sylangu | |
| P_CurrencyRole | fac_crcyrole |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIPRODCSTBOQRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Production Cost By Order | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| Analytics.settings.maxProcessingEffort | #HIGH | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| OData.publish | true | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | OrderID | Order ID | |
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| ExternalOrder | ExternalOrder | Ext. order no. | ||
| OrderDescription | OrderDescription | |||
| OrderTypeName | OrderTypeName | |||
| OrderCategoryName | OrderCategoryName | |||
| Plant | Plant | Valuation Area | ||
| PlantName | PlantName | Plant Name | ||
| ProductionUnit | ProductionUnit | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| ControllingAreaName | ControllingAreaName | Long Text | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | CompanyCodeName | Company Name | ||
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| CreationDate | CreationDate | Time Stamp | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalWeek | FiscalWeek | |||
| Material | Material | Vehicle Model | ||
| MaterialName | MaterialName | Material Description | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| ScheduledBasicEndDate | ScheduledBasicEndDate | Sched. finish | ||
| ScheduledReleaseDate | ScheduledReleaseDate | |||
| ActualStartDate | ActualStartDate | Actual Start | ||
| ConfirmedEndDate | ConfirmedEndDate | |||
| ActualReleasedDate | ActualReleasedDate | |||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| ActlCostInDspCrcy | ActlCostInDspCrcy | |||
| ActlVarblCostInDspCrcy | ActlVarblCostInDspCrcy | |||
| ActlFixedCostInDspCrcy | ActlFixedCostInDspCrcy | |||
| PlanCostInDspCrcy | PlanCostInDspCrcy | |||
| PlanFixedCostInDspCrcy | PlanFixedCostInDspCrcy | |||
| PlanVarblCostInDspCrcy | PlanVarblCostInDspCrcy | |||
| InptPrVarcAmtInDspCrcy | InptPrVarcAmtInDspCrcy | |||
| InptQtyVarcAmtInDspCrcy | InptQtyVarcAmtInDspCrcy | |||
| RsceUsgeVarcAmtInDspCrcy | RsceUsgeVarcAmtInDspCrcy | |||
| InptRmngVarcAmtInDspCrcy | InptRmngVarcAmtInDspCrcy | |||
| MixedPrVarcAmtInDspCrcy | MixedPrVarcAmtInDspCrcy | |||
| OutpPrVarcAmtInDspCrcy | OutpPrVarcAmtInDspCrcy | |||
| LotSizeVarcAmtInDspCrcy | LotSizeVarcAmtInDspCrcy | |||
| OutpQtyVarcAmtInDspCrcy | OutpQtyVarcAmtInDspCrcy | |||
| OutpRmngVarcAmtInDspCrcy | OutpRmngVarcAmtInDspCrcy | |||
| ScrapVarcAmtInDspCrcy | ScrapVarcAmtInDspCrcy | |||
| CostVarianceInDspCrcy | CostVarianceInDspCrcy | |||
| WIPAmtInDisplayCurrency | WIPAmtInDisplayCurrency | |||
| RsrvAmountInDisplayCrcy | RsrvAmountInDisplayCrcy | |||
| PlanOutputQuantity | PlanOutputQuantity | |||
| ActualOutputQuantity | ActualOutputQuantity | |||
| DebitActlPlnDiffCostInDspCrcy | DebitActlPlnDiffCostInDspCrcy |
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_ProductCostByOrderQuery.
-- 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: CFIPRODCSTBOQRY
-- Parameters: P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_PlanVersion : fis_kkb_plvrs, P_TargetCostVariant : fis_awvrs, P_ResultAnalysisVersion : versn_abgr, P_Language : sylangu, P_CurrencyRole : fac_crcyrole
CREATE VIEW C_ProductCostByOrderQuery AS
SELECT
OrderID,
OrderType,
OrderCategory,
ReferenceOrder,
ExternalOrder,
OrderDescription,
OrderTypeName,
OrderCategoryName,
Plant,
PlantName,
ProductionUnit,
ControllingArea,
ControllingAreaName,
CompanyCode,
CompanyCodeName,
BusinessArea,
ProfitCenter,
CreationDate,
FiscalYear,
FiscalPeriod,
FiscalWeek,
Material,
MaterialName,
StorageLocation,
ScheduledBasicEndDate,
ScheduledReleaseDate,
ActualStartDate,
ConfirmedEndDate,
ActualReleasedDate,
DisplayCurrency,
ActlCostInDspCrcy,
ActlVarblCostInDspCrcy,
ActlFixedCostInDspCrcy,
PlanCostInDspCrcy,
PlanFixedCostInDspCrcy,
PlanVarblCostInDspCrcy,
InptPrVarcAmtInDspCrcy,
InptQtyVarcAmtInDspCrcy,
RsceUsgeVarcAmtInDspCrcy,
InptRmngVarcAmtInDspCrcy,
MixedPrVarcAmtInDspCrcy,
OutpPrVarcAmtInDspCrcy,
LotSizeVarcAmtInDspCrcy,
OutpQtyVarcAmtInDspCrcy,
OutpRmngVarcAmtInDspCrcy,
ScrapVarcAmtInDspCrcy,
CostVarianceInDspCrcy,
WIPAmtInDisplayCurrency,
RsrvAmountInDisplayCrcy,
PlanOutputQuantity,
ActualOutputQuantity,
DebitActlPlnDiffCostInDspCrcy
FROM I_ProductCostByOrderCube
;
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