P_CostCenterLatest

DDL: P_COSTCENTERLATEST Type: view_entity COMPOSITE Package: FINS_FIS_FICO

None

P_CostCenterLatest is a Composite CDS View that provides data about "None" in SAP S/4HANA. It has 1 association to related views. Part of development package FINS_FIS_FICO.

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter and $projection.ValidityEndDate = _CostCenter.ValidityEndDate

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.representativeKey CostCenter view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea I_CostCenter ControllingArea Controlling Area
KEY CostCenter I_CostCenter CostCenter Cost Center
ValidityEndDate
_CostCenter _CostCenter

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_CostCenterLatest.
-- 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.
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_CostCenterLatest AS
SELECT
  I_CostCenter.ControllingArea AS ControllingArea,
  I_CostCenter.CostCenter AS CostCenter,
  coalesce(CurrentCostCenter.ValidityEndDate, coalesce(PreviousCostCenter.ValidityEndDate, NextCostCenter.ValidityEndDate)) AS ValidityEndDate
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter AND ValidityEndDate = _CostCenter.ValidityEndDate  -- association [1..1]
;