R_CostCenterTextTP
Cost Center Text
R_CostCenterTextTP is a Transactional CDS View that provides data about "Cost Center Text" in SAP S/4HANA. It reads from 1 data source (I_CostCenterText) and exposes 8 fields with key fields Language, ControllingArea, CostCenter, ValidityEndDate.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenterText | I_CostCenterText | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Cost Center Text | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Language | Language | ||
| KEY | ControllingArea | ControllingArea | ||
| KEY | CostCenter | CostCenter | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| LanguageForEdit | Language | |||
| CostCenterName | CostCenterName | |||
| CostCenterDescription | ||||
| _CostCenterTP | _CostCenterTP |
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Cost Center Text'
@ObjectModel: {
dataCategory: #TEXT,
usageType: {
serviceQuality: #A,
sizeCategory: #M,
dataClass: #MASTER
}
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type:#SAP_INTERNAL_API
}
@Metadata.ignorePropagatedAnnotations: true
define view entity R_CostCenterTextTP
as select from I_CostCenterText
association to parent R_CostCenterTP as _CostCenterTP on $projection.ControllingArea = _CostCenterTP.ControllingArea
and $projection.CostCenter = _CostCenterTP.CostCenter
and $projection.ValidityEndDate = _CostCenterTP.ValidityEndDate
// association[0..1] to I_Language as _Language on $projection.LanguageForEdit = _Language.Language
{
@Semantics.language: true
key Language,
key ControllingArea,
key CostCenter,
@Semantics.businessDate.to: true
key ValidityEndDate,
@ObjectModel.editableFieldFor: 'Language'
@Semantics.language: true
Language as LanguageForEdit,
@Semantics.text: true
CostCenterName,
cast( CostCenterDescription as fis_cc_kostl_ltext preserving type ) as CostCenterDescription,
/* Associations */
_CostCenterTP
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCENTERTEXT"
],
"ASSOCIATED":
[
"R_COSTCENTERTP"
],
"BASE":
[],
"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