C_RealTimeOrdCostCompGrpDetail

DDL: C_REALTIMEORDCOSTCOMPGRPDETAIL SQL: CRTORDCOSTCGDTLS Type: view CONSUMPTION Package: ODATA_CO_RT_ORDER_COSTS_DETAIL

Real-Time Order Costs Details - Cost Component Groups

C_RealTimeOrdCostCompGrpDetail is a Consumption CDS View that provides data about "Real-Time Order Costs Details - Cost Component Groups" in SAP S/4HANA. It reads from 1 data source (P_EBOC_COGM_OrderAndItemCosts) and exposes 33 fields with key fields CostElement, CtrlgOriginClassification, ControllingDebitCreditCode, CostOriginGroup, PartnerCostCenter. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F4254). Part of development package ODATA_CO_RT_ORDER_COSTS_DETAIL.

Data Sources (1)

SourceAliasJoin Type
P_EBOC_COGM_OrderAndItemCosts P_EBOC_COGM_OrderAndItemCosts from

Parameters (9)

NameTypeDefault
P_Ledger fins_ledger
P_CompanyCode fis_bukrs
P_OrderID fis_order_number
P_OrderItem char4
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_PlanningCategory fcom_category
P_CurrencyRole fac_crcyrole
P_CostComponentStructure ck_elesmhk

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CostComponentText _CostComponentText $projection.CostComponent = _CostComponentText.CostComponent and $projection.CostComponentStructure = _CostComponentText.CostComponentStructure

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CRTORDCOSTCGDTLS view
AbapCatalog.preserveKey true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
UI.textArrangement #TEXT_LAST view
EndUserText.label Real-Time Order Costs Details - Cost Component Groups view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F4254 ASQL_F4254 C2 NOT_RELEASED

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CostElement CostElement G/L Account
KEY CtrlgOriginClassification CtrlgOriginClassification
KEY ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
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 UnitOfMeasure UnitOfMeasure Unit Protected Qty
KEY Material Material Vehicle Model
KEY IsLotSizeIndependent IsLotSizeIndependent
Plant Plant Valuation Area
SalesOrder SalesOrder SD Document
CompanyCode CompanyCode Receiver Company Code
OrderCategory OrderCategory Order Category
OrderType OrderType Order Type
ChartOfAccounts ChartOfAccounts Node Class
CostComponent
CostComponentGroup
CostComponentGroupName
CostComponentStructure CostComponentStructure
DisplayCurrency DisplayCurrency Display Currency
DebitActlCostInDspCrcy DebitActlCostInDspCrcy
DebitPlanCostInDspCrcy DebitPlanCostInDspCrcy
DebitTargetCostInDspCrcy DebitTargetCostInDspCrcy
DebitActlTgtDiffCostInDspCrcy DebitActlTgtDiffCostInDspCrcy
GLAccountName
FromFiscalYearPeriod
ToFiscalYearPeriod
PlanningCategory
PlanningCategoryName
_GLAccountTxt _GLAccountTxt
_CostComponentText _CostComponentText

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_RealTimeOrdCostCompGrpDetail.
-- 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: CRTORDCOSTCGDTLS
-- Parameters: P_Ledger : fins_ledger, P_CompanyCode : fis_bukrs, P_OrderID : fis_order_number, P_OrderItem : char4, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_PlanningCategory : fcom_category, P_CurrencyRole : fac_crcyrole, P_CostComponentStructure : ck_elesmhk

CREATE VIEW C_RealTimeOrdCostCompGrpDetail AS
SELECT
  CostElement,
  CtrlgOriginClassification,
  ControllingDebitCreditCode,
  CostOriginGroup,
  cast(PartnerCostCenter as sendercostcenter) AS PartnerCostCenter,
  PartnerCostCtrActivityType,
  PartnerBusinessProcess,
  PartnerOrder,
  UnitOfMeasure,
  Material,
  IsLotSizeIndependent,
  Plant,
  SalesOrder,
  CompanyCode,
  OrderCategory,
  OrderType,
  ChartOfAccounts,
  cast( CostComponent as fco_cost_component) AS CostComponent,
  cast( CostComponentGroup as fco_cost_comp_group) AS CostComponentGroup,
  cast( CostComponentGroupName as fco_cost_comp_group_name) AS CostComponentGroupName,
  CostComponentStructure,
  DisplayCurrency,
  DebitActlCostInDspCrcy,
  DebitPlanCostInDspCrcy,
  DebitTargetCostInDspCrcy,
  DebitActlTgtDiffCostInDspCrcy,
  cast(_GLAccountTxt[1: Language = $session.system_language].GLAccountName as fco_glaccount_name) AS GLAccountName,
  cast('' as fins_fyearperiod) AS FromFiscalYearPeriod,
  cast('' as fins_fyearperiod) AS ToFiscalYearPeriod,
  cast('' as fcom_category) AS PlanningCategory,
  cast('' as fcom_category_t) AS PlanningCategoryName
FROM P_EBOC_COGM_OrderAndItemCosts
LEFT OUTER JOIN I_CostComponentText AS _CostComponentText ON CostComponent = _CostComponentText.CostComponent AND CostComponentStructure = _CostComponentText.CostComponentStructure  -- association [0..*]
;