C_RealTimeOrdCostCompGrpDetail
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)
| Source | Alias | Join Type |
|---|---|---|
| P_EBOC_COGM_OrderAndItemCosts | P_EBOC_COGM_OrderAndItemCosts | from |
Parameters (9)
| Name | Type | Default |
|---|---|---|
| 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CostComponentText | _CostComponentText | $projection.CostComponent = _CostComponentText.CostComponent and $projection.CostComponentStructure = _CostComponentText.CostComponentStructure |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4254 | ASQL_F4254 | C2 | NOT_RELEASED |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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