P_ActualCostRateDEX
Data Extraction for Actual Cost Rate - Private
P_ActualCostRateDEX is a Basic CDS View that provides data about "Data Extraction for Actual Cost Rate - Private" in SAP S/4HANA. It reads from 1 data source (accostrate) and exposes 22 fields with key field AccountingCostRateUUID. Part of development package RAP_FIN_CO_COST_RATE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| accostrate | accostrate | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingCostRateUUID | rateuuid | Cost Rate UUID | |
| CurrencyRole | cvtyp | Crcy/Valuation | ||
| Ledger | ledger | Ledger | ||
| CompanyCode | bukrs | Value | ||
| CostCenter | kostl | Substitute CC | ||
| ActivityType | activity_type | Inward/Outward Acty | ||
| ValidityStartFiscalYear | gjahrfrom | From Year | ||
| ValidityStartFiscalPeriod | periodfrom | From Period | ||
| ValidityStartDate | datefrom | Valid From | ||
| ValidityEndFiscalYear | gjahrto | Year To | ||
| ValidityEndFiscalPeriod | periodto | To Period | ||
| ValidityEndDate | dateto | Valid-To Date | ||
| ControllingArea | kokrs | Org. Value | ||
| Currency | currency | Valuation Crcy | ||
| CostRateTotalAmount | totalamount | Total Rate | ||
| CostRateFixedAmount | fixedamount | Fixed Rate | ||
| CostRateVarblAmount | ||||
| CostRateScaleFactor | scalefactor | Per | ||
| CostCtrActivityTypeQtyUnit | activity_unit | Activity Unit | ||
| PlanningCategory | category | Violation Category | ||
| BusinessTransactionType | bttype | Business Transaction Type | ||
| ComponentBreakdown | ucb_id | Breakdown ID |
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 P_ActualCostRateDEX.
-- 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.
CREATE VIEW P_ActualCostRateDEX AS
SELECT
rateuuid AS AccountingCostRateUUID,
cvtyp AS CurrencyRole,
Ledger,
bukrs AS CompanyCode,
kostl AS CostCenter,
activity_type AS ActivityType,
gjahrfrom AS ValidityStartFiscalYear,
periodfrom AS ValidityStartFiscalPeriod,
datefrom AS ValidityStartDate,
gjahrto AS ValidityEndFiscalYear,
periodto AS ValidityEndFiscalPeriod,
dateto AS ValidityEndDate,
kokrs AS ControllingArea,
Currency,
totalamount AS CostRateTotalAmount,
fixedamount AS CostRateFixedAmount,
cast( totalamount - fixedamount as fco_rate_varbl_amount ) AS CostRateVarblAmount,
scalefactor AS CostRateScaleFactor,
activity_unit AS CostCtrActivityTypeQtyUnit,
category AS PlanningCategory,
bttype AS BusinessTransactionType,
ucb_id AS ComponentBreakdown
FROM accostrate
;
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