I_PRACostCenter
PRA Cost Center
I_PRACostCenter is a Composite CDS View (Dimension) that provides data about "PRA Cost Center" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 19 fields with key fields CompanyCode, CostCenter, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenter | I_CostCenter | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PRACostCenterText | _Text | $projection.CompanyCode = _Text.CompanyCode and $projection.CostCenter = _Text.CostCenter and $projection.ValidityEndDate = _Text.ValidityEndDate association[1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PRA Cost Center | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | IPVCOSTCENTER | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | CostCenter | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | CostCenter | CostCenter | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| ControllingArea | ControllingArea | |||
| ValidityStartDate | ValidityStartDate | |||
| BusinessArea | BusinessArea | |||
| CostCtrResponsiblePersonName | CostCtrResponsiblePersonName | |||
| CostCtrResponsibleUser | CostCtrResponsibleUser | |||
| CostCenterCurrency | CostCenterCurrency | |||
| ProfitCenter | ProfitCenter | |||
| Department | Department | |||
| CostingSheet | CostingSheet | |||
| _BusinessArea | _BusinessArea | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenterHierarchyNode | _CostCenterHierarchyNode | |||
| _Currency | _Currency | |||
| _ProfitCenter | _ProfitCenter | |||
| _Text | _Text |
@EndUserText.label: 'PRA Cost Center'
@Analytics.dataCategory: #DIMENSION
@Metadata.allowExtensions:true
@Analytics.dataExtraction.enabled: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'IPVCOSTCENTER'
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations:true
@ObjectModel.representativeKey: 'CostCenter'
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION , #SQL_DATA_SOURCE , #CDS_MODELING_DATA_SOURCE , #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MASTER
// This view provides cost center foreign key lookups where controlling area is not passed, rather company
// calling it a basic view so that it can be used in associations
define view I_PRACostCenter
as select from I_CostCenter
association [0..*] to I_PRACostCenterText as _Text on $projection.CompanyCode = _Text.CompanyCode
and $projection.CostCenter = _Text.CostCenter
and $projection.ValidityEndDate = _Text.ValidityEndDate
association[1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
@ObjectModel.text.association: '_Text'
@ObjectModel.hierarchy.association: '_CostCenterHierarchyNode'
key CostCenter,
@Semantics.businessDate.to: true
key ValidityEndDate,
@ObjectModel.foreignKey.association: '_ControllingArea'
ControllingArea,
@Semantics.businessDate.from: true
ValidityStartDate,
@ObjectModel.foreignKey.association: '_BusinessArea'
BusinessArea,
CostCtrResponsiblePersonName,
CostCtrResponsibleUser,
@Semantics.currencyCode: true
CostCenterCurrency,
@ObjectModel.foreignKey.association: '_ProfitCenter'
ProfitCenter,
Department,
CostingSheet,
/* Associations */
_BusinessArea,
_CompanyCode,
_ControllingArea,
_CostCenterHierarchyNode,
_Currency,
_ProfitCenter,
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCENTER"
],
"ASSOCIATED":
[
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTERHIERARCHYNODE",
"I_CURRENCY",
"I_PRACOSTCENTERTEXT",
"I_PROFITCENTER"
],
"BASE":
[
"I_COSTCENTER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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