P_RSHCostCenterMaxValidity

DDL: P_RSHCOSTCENTERMAXVALIDITY SQL: PRSHCSTCTRMAXVLD Type: view COMPOSITE Package: RSH_CDS_PROJECT

Cost center with max validity end date

P_RSHCostCenterMaxValidity is a Composite CDS View that provides data about "Cost center with max validity end date" in SAP S/4HANA. It reads from 1 data source (I_CostCenterText) and exposes 4 fields with key fields CostCenter, ControllingArea, Language. Part of development package RSH_CDS_PROJECT.

Data Sources (1)

SourceAliasJoin Type
I_CostCenterText I_CostCenterText from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRSHCSTCTRMAXVLD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Cost center with max validity end date view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CostCenter CostCenter Cost Center
KEY ControllingArea ControllingArea Controlling Area
KEY Language Language Report Text Language
ValidityEndDate

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_RSHCostCenterMaxValidity.
-- 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: PRSHCSTCTRMAXVLD

CREATE VIEW P_RSHCostCenterMaxValidity AS
SELECT
  CostCenter,
  ControllingArea,
  Language,
  max(ValidityEndDate) AS ValidityEndDate
FROM I_CostCenterText
;