fac_cds_uh_costcenter

DDL: FAC_CDS_UH_COSTCENTER SQL: FACV_UH_CCTR Type: view

Cost Center in Flexible Hierarchy

fac_cds_uh_costcenter is a CDS View that provides data about "Cost Center in Flexible Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 9 fields with key fields ControllingArea, CostCenter, ValidityEndDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CostCenter I_CostCenter from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CostCenterText _CostCenterText $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter and $projection.ValidityEndDate = _CostCenterText.ValidityEndDate

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FACV_UH_CCTR view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Cost Center in Flexible Hierarchy view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY CostCenter CostCenter Cost Center
KEY ValidityEndDate ValidityEndDate ValidTo
ValidityStartDate ValidityStartDate Validity Start Date
CompanyCode CompanyCode Receiver Company Code
CostCenterCategory CostCenterCategory CCtr Category
CostCenter_T
CostCenter_T_Upper
_CostCenterText _CostCenterText

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 fac_cds_uh_costcenter.
-- 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: FACV_UH_CCTR

CREATE VIEW fac_cds_uh_costcenter AS
SELECT
  ControllingArea,
  CostCenter,
  ValidityEndDate,
  ValidityStartDate,
  CompanyCode,
  CostCenterCategory,
  _CostCenterText[1:Language = $session.system_language and ValidityEndDate = ValidityEndDate and ValidityStartDate = ValidityStartDate ].CostCenterName AS CostCenter_T,
  cast(upper(_CostCenterText[1:Language = $session.system_language and ValidityEndDate = ValidityEndDate and ValidityStartDate = ValidityStartDate ].CostCenterName)as fis_kostl_name) AS CostCenter_T_Upper
FROM I_CostCenter
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter AND ValidityEndDate = _CostCenterText.ValidityEndDate  -- association [0..*]
;