I_OrdHdrItmRealTimeProdnCost

DDL: I_ORDHDRITMREALTIMEPRODNCOST SQL: IEBORDHIRTPRCST Type: view COMPOSITE

Event-Based Order Header and Item Production Costs

I_OrdHdrItmRealTimeProdnCost is a Composite CDS View that provides data about "Event-Based Order Header and Item Production Costs" in SAP S/4HANA. It reads from 1 data source (P_EBOrderHdrItmProdnCost2v2) and exposes 111 fields with key fields OrderID, OrderItem. It has 17 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_EBOrderHdrItmProdnCost2v2 P_EBOrderHdrItmProdnCost2v2 from

Parameters (5)

NameTypeDefault
P_Ledger fins_ledger
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_PlanningCategory fcom_category
P_CurrencyRole fis_curtp

Associations (17)

CardinalityTargetAliasCondition
[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..*] 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)

NameValueLevelField
AbapCatalog.sqlViewName IEBORDHIRTPRCST 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 Event-Based Order Header and Item Production Costs view

Fields (111)

KeyFieldSource TableSource FieldDescription
KEY OrderID OrderID Order ID
KEY OrderItem OrderItem
OrderInternalID OrderInternalID Plan No.f.Oper.
ObjectInternalID ObjectInternalID Object number
OrderType OrderType Order Type
OrderCategory OrderCategory Order Category
ExternalOrder ExternalOrder Ext. order no.
OrderDescription OrderDescription
Plant Plant Valuation Area
CompanyCode CompanyCode Receiver Company Code
BaseUnit BaseUnit Unit of Measure
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
WBSElementInternalID WBS Internal ID
ProductionVersion ProductionVersion Version ID
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
Material Material Vehicle Model
MaterialGroup _Material ProductGroup Product Sold Group
ProductHierarchy _Material ProductHierarchy Prod.hierarchy
MRPPlant MRPPlant Plant
StorageLocation StorageLocation StorageLocation
ProductionUnit ProductionUnit
ValuationType ValuationType Valuation Type
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
MfgOrderHasMultipleItems MfgOrderHasMultipleItems
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
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
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_OrdHdrItmRealTimeProdnCost.
-- 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: IEBORDHIRTPRCST
-- Parameters: P_Ledger : fins_ledger, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_PlanningCategory : fcom_category, P_CurrencyRole : fis_curtp

CREATE VIEW I_OrdHdrItmRealTimeProdnCost AS
SELECT
  OrderID,
  OrderItem,
  OrderInternalID,
  ObjectInternalID,
  OrderType,
  OrderCategory,
  ExternalOrder,
  OrderDescription,
  Plant,
  CompanyCode,
  BaseUnit,
  RatioUnit,
  Ledger,
  ControllingArea,
  BusinessArea,
  ProfitCenter,
  ResponsibleCostCenter,
  cast(WBSElementInternalID as fco_ebpr_wbs_element_int_id preserving type ) AS WBSElementInternalID,
  ProductionVersion,
  SalesOrder,
  SalesOrderItem,
  Material,
  _Material.ProductGroup AS MaterialGroup,
  _Material.ProductHierarchy AS ProductHierarchy,
  MRPPlant,
  StorageLocation,
  ProductionUnit,
  ValuationType,
  IsMarkedForDeletion,
  MfgOrderHasMultipleItems,
  ActualCostsCostingVariant,
  PlannedCostsCostingVariant,
  PlannedReleaseDate,
  PlannedCompletionDate,
  CreatedByUser,
  CreationDate,
  LastChangedByUser,
  LastChangeDate,
  TechnicalCompletionDate,
  ScheduledBasicEndDate,
  ScheduledReleaseDate,
  ActualStartDate,
  ConfirmedEndDate,
  ActualDeliveryDate,
  ActualReleasedDate,
  ControllingObjectStatus,
  OrderKeyStatus,
  DisplayCurrency,
  ValidityDate,
  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_EBOrderHdrItmProdnCost2v2
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_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..*]
;