R_CostCenterTextTP

DDL: R_COSTCENTERTEXTTP Type: view_entity TRANSACTIONAL

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)

SourceAliasJoin Type
I_CostCenterText I_CostCenterText from

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/