fac_cds_uh_profitcenter

DDL: FAC_CDS_UH_PROFITCENTER SQL: FACV_UH_PCTR Type: view

Profit Center

fac_cds_uh_profitcenter is a CDS View that provides data about "Profit Center" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenter) and exposes 8 fields with key fields ControllingArea, ProfitCenter, ValidityEndDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenter I_ProfitCenter from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_ProfitCenterText _ProfitCenterText $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ValidityEndDate = _ProfitCenterText.ValidityEndDate

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FACV_UH_PCTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Profit Center view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY ProfitCenter ProfitCenter Profit Center
KEY ValidityEndDate ValidityEndDate ValidTo
ValidityStartDate ValidityStartDate Validity Start Date
Segment Segment Segment number
ProfitCenter_T
ProfitCenter_T_Upper
_ProfitCenterText _ProfitCenterText

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_profitcenter.
-- 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_PCTR

CREATE VIEW fac_cds_uh_profitcenter AS
SELECT
  ControllingArea,
  ProfitCenter,
  ValidityEndDate,
  ValidityStartDate,
  Segment,
  _ProfitCenterText[1:Language = $session.system_language and ValidityEndDate = ValidityEndDate and ValidityStartDate = ValidityStartDate ].ProfitCenterName AS ProfitCenter_T,
  cast(upper(_ProfitCenterText[1:Language = $session.system_language and ValidityEndDate = ValidityEndDate and ValidityStartDate = ValidityStartDate ].ProfitCenterName) as ktext) AS ProfitCenter_T_Upper
FROM I_ProfitCenter
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter AND ValidityEndDate = _ProfitCenterText.ValidityEndDate  -- association [0..*]
;