P_AccountingCostRate
P_AccountingCostRate is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_ACCOSTRATERawData) and exposes 34 fields with key field AccountingCostRateUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ACCOSTRATERawData | r | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIACCOSTRATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingCostRateUUID | P_ACCOSTRATERawData | rateuuid | Cost Rate UUID |
| CurrencyRole | P_ACCOSTRATERawData | cvtyp | Crcy/Valuation | |
| Ledger | P_ACCOSTRATERawData | ledger | Ledger | |
| CompanyCode | P_ACCOSTRATERawData | bukrs | Value | |
| CostCenter | P_ACCOSTRATERawData | kostl | Substitute CC | |
| ActivityType | P_ACCOSTRATERawData | activity_type | Inward/Outward Acty | |
| ValidityStartFiscalYear | P_ACCOSTRATERawData | gjahrfrom | From Year | |
| ValidityStartFiscalPeriod | P_ACCOSTRATERawData | periodfrom | From Period | |
| ValidityStartDate | P_ACCOSTRATERawData | datefrom | Valid From | |
| ValidityEndFiscalYear | P_ACCOSTRATERawData | gjahrto | Year To | |
| ValidityEndFiscalPeriod | P_ACCOSTRATERawData | periodto | To Period | |
| ValidityEndDate | P_ACCOSTRATERawData | dateto | Valid-To Date | |
| ControllingArea | P_ACCOSTRATERawData | kokrs | Org. Value | |
| Currency | P_ACCOSTRATERawData | currency | Valuation Crcy | |
| CostRateTotalAmount | P_ACCOSTRATERawData | totalamount | Total Rate | |
| CostRateFixedAmount | P_ACCOSTRATERawData | fixedamount | Fixed Rate | |
| CostRateScaleFactor | P_ACCOSTRATERawData | scalefactor | Per | |
| CostCtrActivityTypeQtyUnit | P_ACCOSTRATERawData | activity_unit | Activity Unit | |
| PlanningCategory | P_ACCOSTRATERawData | category | Violation Category | |
| BusinessTransactionType | P_ACCOSTRATERawData | bttype | Business Transaction Type | |
| CreatedByUser | P_ACCOSTRATERawData | usnam | User Name | |
| CreationDateTime | P_ACCOSTRATERawData | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| LastChangedByUser | P_ACCOSTRATERawData | usnam | User Name | |
| CostRateIsDeleted | P_ACCOSTRATERawData | deleted | Truth Value | |
| DeletedByUser | P_ACCOSTRATERawData | deleted_by | User Name | |
| IsIntercompanyRate | P_ACCOSTRATERawData | ico_rate | ICO Rate | |
| ReceivingCompanyCode | P_ACCOSTRATERawData | comp_receiving | Receiving Company | |
| ServiceCostLevel | P_ACCOSTRATERawData | srv_cost_level | Service Cost Level | |
| PersonnelNumber | P_ACCOSTRATERawData | pernr | Personnel no. | |
| WBSElementInternalID | P_ACCOSTRATERawData | ps_psp_pnr | WBS Element | |
| WBSElementExternalID | P_ACCOSTRATERawData | ps_posid | WBS Element | |
| WorkItem | P_ACCOSTRATERawData | work_item_id | Work Item ID | |
| TimeSheetOvertimeCategory | P_ACCOSTRATERawData | overtimecat | Overtime Category | |
| ControllingObject |
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_AccountingCostRate.
-- 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: PFIACCOSTRATE
CREATE VIEW P_AccountingCostRate AS
SELECT
r.rateuuid AS AccountingCostRateUUID,
r.cvtyp AS CurrencyRole,
r.ledger AS Ledger,
r.bukrs AS CompanyCode,
r.kostl AS CostCenter,
r.activity_type AS ActivityType,
r.gjahrfrom AS ValidityStartFiscalYear,
r.periodfrom AS ValidityStartFiscalPeriod,
r.datefrom AS ValidityStartDate,
r.gjahrto AS ValidityEndFiscalYear,
r.periodto AS ValidityEndFiscalPeriod,
r.dateto AS ValidityEndDate,
r.kokrs AS ControllingArea,
r.currency AS Currency,
r.totalamount AS CostRateTotalAmount,
r.fixedamount AS CostRateFixedAmount,
r.scalefactor AS CostRateScaleFactor,
r.activity_unit AS CostCtrActivityTypeQtyUnit,
r.category AS PlanningCategory,
r.bttype AS BusinessTransactionType,
r.usnam AS CreatedByUser,
r.timestamp AS CreationDateTime,
r.usnam AS LastChangedByUser,
r.deleted AS CostRateIsDeleted,
r.deleted_by AS DeletedByUser,
r.ico_rate AS IsIntercompanyRate,
r.comp_receiving AS ReceivingCompanyCode,
r.srv_cost_level AS ServiceCostLevel,
r.pernr AS PersonnelNumber,
r.ps_psp_pnr AS WBSElementInternalID,
r.ps_posid AS WBSElementExternalID,
r.work_item_id AS WorkItem,
r.overtimecat AS TimeSheetOvertimeCategory,
coalesce(c.objnr, '') AS ControllingObject
FROM P_ACCOSTRATERawData AS r
;
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