I_OrderRealTimeProductionCost
Order Real Time Production Cost
I_OrderRealTimeProductionCost is a Composite CDS View that provides data about "Order Real Time Production Cost" in SAP S/4HANA. It reads from 1 data source (P_EBOrderProductionCost3v2) and exposes 115 fields with key field OrderID. It has 18 associations to related views. Part of development package ODATA_CO_RT_PRODUCTION_COSTS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_EBOrderProductionCost3v2 | P_EBOrderProductionCost3v2 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_PlanningCategory | fcom_category | |
| P_CurrencyRole | fis_curtp |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Plant | _MRPPlant | $projection.MRPPlant = _MRPPlant.Plant |
| [1..1] | I_Product | _Material | $projection.Material = _Material.Product |
| [0..*] | I_ProductHierarchyText | _ProductHierarchyText | $projection.ProductHierarchy = _ProductHierarchyText.ProductHierarchy |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_ProductCostCtrlgOrderItem | _RepresentativeOrderItem | $projection.OrderID = _RepresentativeOrderItem.OrderID and _RepresentativeOrderItem.OrderItem = '0001' |
| [0..*] | I_LedgerText | _LedgerText | $projection.Ledger = _LedgerText.Ledger |
| [0..*] | I_OrderTypeText | _OrderTypeText | $projection.OrderType = _OrderTypeText.OrderType |
| [0..*] | I_OrderCategoryText | _OrderCategoryText | $projection.OrderCategory = _OrderCategoryText.OrderCategory |
| [0..*] | I_ProductText | _ProductText | $projection.Material = _ProductText.Product |
| [0..*] | I_CostingVariantText | _ActlCostsCostingVariantText | $projection.ActualCostsCostingVariant = _ActlCostsCostingVariantText.CostingVariant |
| [0..*] | I_CostingVariantText | _PlndCostsCostingVariantText | $projection.PlannedCostsCostingVariant = _PlndCostsCostingVariantText.CostingVariant |
| [0..*] | I_BusinessAreaText | _BusinessAreaText | $projection.BusinessArea = _BusinessAreaText.BusinessArea |
| [0..*] | I_ProductGroupText | _ProductGroupText | $projection.MaterialGroup = _ProductGroupText.MaterialGroup |
| [0..*] | I_ProfitCenterText | _ProfitCenterText | $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ValidityDate >= _ProfitCenterText.ValidityStartDate and $projection.ValidityDate <= _ProfitCenterText.ValidityEndDate |
| [0..*] | I_CostCenterText | _ResponsibleCostCenterText | $projection.ControllingArea = _ResponsibleCostCenterText.ControllingArea and $projection.ResponsibleCostCenter = _ResponsibleCostCenterText.CostCenter and $projection.ValidityDate >= _ResponsibleCostCenterText.ValidityStartDate and $projection.ValidityDate <= _ResponsibleCostCenterText.ValidityEndDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEBORDRTPRODCST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Order Real Time Production Cost | view |
Fields (115)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | OrderID | Order ID | |
| ObjectInternalID | ObjectInternalID | Object number | ||
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| ExternalOrder | ExternalOrder | Ext. order no. | ||
| OrderDescription | OrderDescription | |||
| OrderSettlementTriggerType | OrderSettlementTriggerType | |||
| Plant | Plant | Valuation Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| BaseUnit | ||||
| RatioUnit | RatioUnit | Unit of Measure | ||
| Ledger | Ledger | Ledger | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ResponsibleCostCenter | ResponsibleCostCenter | Responsible Cost Center | ||
| ProductionVersion | _RepresentativeOrderItem | ProductionVersion | Version ID | |
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| MfgOrderHasMultipleItems | MfgOrderHasMultipleItems | |||
| CombnOrdCombinationIdentifier | CombnOrdCombinationIdentifier | |||
| CombinedOrder | CombinedOrder | |||
| SuperiorOrder | SuperiorOrder | |||
| MfgOrderIsPartOfCollvOrder | MfgOrderIsPartOfCollvOrder | |||
| RequestOrderType | RequestOrderType | |||
| ActualCostsCostingVariant | ActualCostsCostingVariant | Act. Costing Variant | ||
| PlannedCostsCostingVariant | PlannedCostsCostingVariant | Plnd Costing Variant | ||
| PlannedReleaseDate | PlannedReleaseDate | |||
| PlannedCompletionDate | PlannedCompletionDate | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| TechnicalCompletionDate | TechnicalCompletionDate | |||
| Material | Material | Vehicle Model | ||
| MaterialGroup | _Material | ProductGroup | Product Sold Group | |
| ProductHierarchy | _Material | ProductHierarchy | Prod.hierarchy | |
| MRPPlant | ||||
| StorageLocation | ||||
| OrderItem | _RepresentativeOrderItem | OrderItem | ||
| ValuationType | _RepresentativeOrderItem | ValuationType | Valuation Type | |
| ScheduledBasicEndDate | ScheduledBasicEndDate | Sched. finish | ||
| ScheduledReleaseDate | ScheduledReleaseDate | |||
| ActualStartDate | ActualStartDate | Actual Start | ||
| ConfirmedEndDate | ConfirmedEndDate | |||
| ActualDeliveryDate | ActualDeliveryDate | Delivery Date | ||
| ActualReleasedDate | ActualReleasedDate | |||
| ControllingObjectStatus | ControllingObjectStatus | Status | ||
| OrderKeyStatus | OrderKeyStatus | |||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| ValidityDate | ValidityDate | Valid On | ||
| SalesOrder | _RepresentativeOrderItem | SalesOrder | SD Document | |
| SalesOrderItem | _RepresentativeOrderItem | SalesOrderItem | Sales Order Item | |
| WBSElementInternalID | ||||
| CreditActlCostInDspCrcy | CreditActlCostInDspCrcy | |||
| DebitActlCostInDspCrcy | DebitActlCostInDspCrcy | |||
| ActlCostInDspCrcy | ActlCostInDspCrcy | |||
| CrdtActlFxdCostInDspCrcy | CrdtActlFxdCostInDspCrcy | |||
| DebitActlFxdCostInDspCrcy | DebitActlFxdCostInDspCrcy | |||
| ActlFixedCostInDspCrcy | ActlFixedCostInDspCrcy | |||
| DebitActlVarblCostInDspCrcy | DebitActlVarblCostInDspCrcy | |||
| CrdtActlVarblCostIndDspCrcy | CrdtActlVarblCostIndDspCrcy | |||
| ActlVarblCostInDspCrcy | ActlVarblCostInDspCrcy | |||
| CreditPlanCostInDspCrcy | CreditPlanCostInDspCrcy | |||
| DebitPlanCostInDspCrcy | DebitPlanCostInDspCrcy | |||
| CrdtPlnFxdCostInDspCrcy | CrdtPlnFxdCostInDspCrcy | |||
| DebitPlnFxdCostInDspCrcy | DebitPlnFxdCostInDspCrcy | |||
| DebitPlnVarblCostInDspCrcy | DebitPlnVarblCostInDspCrcy | |||
| CrdtPlnVarblCostInDspCrcy | CrdtPlnVarblCostInDspCrcy | |||
| PlanVarblCostInDspCrcy | PlanVarblCostInDspCrcy | |||
| PlanCostInDspCrcy | PlanCostInDspCrcy | |||
| PlanFixedCostInDspCrcy | PlanFixedCostInDspCrcy | |||
| CrdtTargetCostInDspCrcy | CrdtTargetCostInDspCrcy | |||
| DebitTargetCostInDspCrcy | DebitTargetCostInDspCrcy | |||
| TargetCostInDspCrcy | TargetCostInDspCrcy | |||
| CrdtPlanCtrlCostInDspCrcy | CrdtPlanCtrlCostInDspCrcy | |||
| DebitPlanCtrlCostInDspCrcy | DebitPlanCtrlCostInDspCrcy | |||
| PlanCtrlCostInDspCrcy | PlanCtrlCostInDspCrcy | |||
| CrdtActlCtrlCostInDspCrcy | CrdtActlCtrlCostInDspCrcy | |||
| DebitActlCtrlCostInDspCrcy | DebitActlCtrlCostInDspCrcy | |||
| ActlCtrlCostInDspCrcy | ActlCtrlCostInDspCrcy | |||
| WIPCostInDspCrcy | WIPCostInDspCrcy | |||
| UnrlzdCostRsrvAmtInDspCrcy | UnrlzdCostRsrvAmtInDspCrcy | |||
| TotalWIPAmountInDspCrcy | TotalWIPAmountInDspCrcy | |||
| CostVarianceInDspCrcy | ||||
| InptPrVarcAmtInDspCrcy | ||||
| InptQtyVarcAmtInDspCrcy | ||||
| RsceUsgeVarcAmtInDspCrcy | ||||
| OutpPrVarcAmtInDspCrcy | ||||
| LotSizeVarcAmtInDspCrcy | ||||
| RmngVarcAmtInDspCrcy | ||||
| DebitActlPlnDiffCostInDspCrcy | DebitActlPlnDiffCostInDspCrcy | |||
| DebitActlPlanDiffPercent | DebitActlPlanDiffPercent | |||
| DebitActlTgtDiffCostInDspCrcy | DebitActlTgtDiffCostInDspCrcy | |||
| DebitActlTgtDiffPercent | DebitActlTgtDiffPercent | |||
| PlanOutputQuantity | PlanOutputQuantity | |||
| ActualOutputQuantity | ActualOutputQuantity | |||
| ActlPlanDiffOutputQuantity | ActlPlanDiffOutputQuantity | |||
| ActlPlanDiffOutpQtyPercent | ActlPlanDiffOutpQtyPercent | |||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode | |||
| _Plant | _Plant | |||
| _MRPPlant | _MRPPlant | |||
| _Material | _Material | |||
| _ProductHierarchyText | _ProductHierarchyText | |||
| _StorageLocation | _StorageLocation | |||
| _LedgerText | _LedgerText | |||
| _OrderTypeText | _OrderTypeText | |||
| _OrderCategoryText | _OrderCategoryText | |||
| _ProductText | _ProductText | |||
| _ActlCostsCostingVariantText | _ActlCostsCostingVariantText | |||
| _PlndCostsCostingVariantText | _PlndCostsCostingVariantText | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _ProductGroupText | _ProductGroupText | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _ResponsibleCostCenterText | _ResponsibleCostCenterText |
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_OrderRealTimeProductionCost.
-- 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: IEBORDRTPRODCST
-- Parameters: P_Ledger : fins_ledger, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_PlanningCategory : fcom_category, P_CurrencyRole : fis_curtp
CREATE VIEW I_OrderRealTimeProductionCost AS
SELECT
OrderID,
ObjectInternalID,
OrderType,
OrderCategory,
ExternalOrder,
OrderDescription,
OrderSettlementTriggerType,
Plant,
CompanyCode,
cast(_RepresentativeOrderItem.BaseUnit as fis_meinh) AS BaseUnit,
RatioUnit,
Ledger,
ControllingArea,
BusinessArea,
ProfitCenter,
ResponsibleCostCenter,
_RepresentativeOrderItem.ProductionVersion AS ProductionVersion,
IsMarkedForDeletion,
MfgOrderHasMultipleItems,
CombnOrdCombinationIdentifier,
CombinedOrder,
SuperiorOrder,
MfgOrderIsPartOfCollvOrder,
RequestOrderType,
ActualCostsCostingVariant,
PlannedCostsCostingVariant,
PlannedReleaseDate,
PlannedCompletionDate,
CreatedByUser,
CreationDate,
LastChangedByUser,
LastChangeDate,
TechnicalCompletionDate,
Material,
_Material.ProductGroup AS MaterialGroup,
_Material.ProductHierarchy AS ProductHierarchy,
cast(_RepresentativeOrderItem.MRPPlant as fis_co_pwerk) AS MRPPlant,
cast(_RepresentativeOrderItem.StorageLocation as fis_lgort_d) AS StorageLocation,
_RepresentativeOrderItem.OrderItem AS OrderItem,
_RepresentativeOrderItem.ValuationType AS ValuationType,
ScheduledBasicEndDate,
ScheduledReleaseDate,
ActualStartDate,
ConfirmedEndDate,
ActualDeliveryDate,
ActualReleasedDate,
ControllingObjectStatus,
OrderKeyStatus,
DisplayCurrency,
ValidityDate,
_RepresentativeOrderItem.SalesOrder AS SalesOrder,
_RepresentativeOrderItem.SalesOrderItem AS SalesOrderItem,
cast(_RepresentativeOrderItem.WBSElementInternalID as fco_ebpr_wbs_element_int_id preserving type ) AS WBSElementInternalID,
CreditActlCostInDspCrcy,
DebitActlCostInDspCrcy,
ActlCostInDspCrcy,
CrdtActlFxdCostInDspCrcy,
DebitActlFxdCostInDspCrcy,
ActlFixedCostInDspCrcy,
DebitActlVarblCostInDspCrcy,
CrdtActlVarblCostIndDspCrcy,
ActlVarblCostInDspCrcy,
CreditPlanCostInDspCrcy,
DebitPlanCostInDspCrcy,
CrdtPlnFxdCostInDspCrcy,
DebitPlnFxdCostInDspCrcy,
DebitPlnVarblCostInDspCrcy,
CrdtPlnVarblCostInDspCrcy,
PlanVarblCostInDspCrcy,
PlanCostInDspCrcy,
PlanFixedCostInDspCrcy,
CrdtTargetCostInDspCrcy,
DebitTargetCostInDspCrcy,
TargetCostInDspCrcy,
CrdtPlanCtrlCostInDspCrcy,
DebitPlanCtrlCostInDspCrcy,
PlanCtrlCostInDspCrcy,
CrdtActlCtrlCostInDspCrcy,
DebitActlCtrlCostInDspCrcy,
ActlCtrlCostInDspCrcy,
WIPCostInDspCrcy,
UnrlzdCostRsrvAmtInDspCrcy,
TotalWIPAmountInDspCrcy,
cast(CostVarianceInDspCrcy as fco_eb_totalvarcamt_in_dspcrcy) AS CostVarianceInDspCrcy,
cast(InptPrVarcAmtInDspCrcy as fis_inptprvarcamt_in_dspcrcy) AS InptPrVarcAmtInDspCrcy,
cast(InptQtyVarcAmtInDspCrcy as fis_inptqtyvarcamt_in_dspcrcy) AS InptQtyVarcAmtInDspCrcy,
cast(RsceUsgeVarcAmtInDspCrcy as fis_rsceusgevarcamt_in_dspcrcy) AS RsceUsgeVarcAmtInDspCrcy,
cast(OutpPrVarcAmtInDspCrcy as fco_eb_outprvarcamt_in_dspcrcy) AS OutpPrVarcAmtInDspCrcy,
cast(LotSizeVarcAmtInDspCrcy as fis_lotsizevarcamt_in_dspcrcy) AS LotSizeVarcAmtInDspCrcy,
cast(RmngVarcAmtInDspCrcy as fco_eb_rmngvarcamt_in_dspcrcy) AS RmngVarcAmtInDspCrcy,
DebitActlPlnDiffCostInDspCrcy,
DebitActlPlanDiffPercent,
DebitActlTgtDiffCostInDspCrcy,
DebitActlTgtDiffPercent,
PlanOutputQuantity,
ActualOutputQuantity,
ActlPlanDiffOutputQuantity,
ActlPlanDiffOutpQtyPercent
FROM P_EBOrderProductionCost3v2
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Plant AS _MRPPlant ON MRPPlant = _MRPPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_Product AS _Material ON Material = _Material.Product -- association [1..1]
LEFT OUTER JOIN I_ProductHierarchyText AS _ProductHierarchyText ON ProductHierarchy = _ProductHierarchyText.ProductHierarchy -- association [0..*]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_ProductCostCtrlgOrderItem AS _RepresentativeOrderItem ON OrderID = _RepresentativeOrderItem.OrderID AND _RepresentativeOrderItem.OrderItem = '0001' -- association [0..1]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger -- association [0..*]
LEFT OUTER JOIN I_OrderTypeText AS _OrderTypeText ON OrderType = _OrderTypeText.OrderType -- association [0..*]
LEFT OUTER JOIN I_OrderCategoryText AS _OrderCategoryText ON OrderCategory = _OrderCategoryText.OrderCategory -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product -- association [0..*]
LEFT OUTER JOIN I_CostingVariantText AS _ActlCostsCostingVariantText ON ActualCostsCostingVariant = _ActlCostsCostingVariantText.CostingVariant -- association [0..*]
LEFT OUTER JOIN I_CostingVariantText AS _PlndCostsCostingVariantText ON PlannedCostsCostingVariant = _PlndCostsCostingVariantText.CostingVariant -- association [0..*]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea -- association [0..*]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON MaterialGroup = _ProductGroupText.MaterialGroup -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter AND ValidityDate >= _ProfitCenterText.ValidityStartDate AND ValidityDate <= _ProfitCenterText.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _ResponsibleCostCenterText ON ControllingArea = _ResponsibleCostCenterText.ControllingArea AND ResponsibleCostCenter = _ResponsibleCostCenterText.CostCenter AND ValidityDate >= _ResponsibleCostCenterText.ValidityStartDate AND ValidityDate <= _ResponsibleCostCenterText.ValidityEndDate -- association [0..*]
;
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