P_ProfitCenterTP

DDL: P_PROFITCENTERTP SQL: PFIPRFTCTRTP Type: view COMPOSITE

P_ProfitCenterTP is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ProfitCenter) and exposes 55 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..1] I_UserContactCard _UserCrtedContactCard $projection.ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PFIPRFTCTRTP view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY ProfitCenter ProfitCenter Profit Center
KEY ValidityEndDate ValidityEndDate ValidTo
ValidityStartDate ValidityStartDate Validity Start Date
ProfitCtrResponsiblePersonName Person Respons.
CompanyCode CompanyCode Receiver Company Code
ProfitCtrResponsibleUser ProfitCtrResponsibleUser User Responsible
Department Department Department
ProfitCenterStandardHierarchy Standard Hierarchy Node
Segment Segment Segment number
ProfitCenterIsBlocked Locked
FormulaPlanningTemplate FormulaPlanningTemplate Form. Planning Temp.
FormOfAddress FormOfAddress Title Key
AddressName AddressName Name
AdditionalName AdditionalName Name 2
ProfitCenterAddrName3 ProfitCenterAddrName3 Name 3
ProfitCenterAddrName4 ProfitCenterAddrName4 Name 4
StreetAddressName StreetAddressName Street
POBox POBox PO Box
CityName CityName Name
PostalCode PostalCode Postal Code
POBoxPostalCode POBoxPostalCode PO Box Postal Code
District District District Court
Country Venue: Ctry/Reg
Region Region Venue Region
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
Language Language Report Text Language
PhoneNumber1 PhoneNumber1 Telephone 1
PhoneNumber2 PhoneNumber2 Telephone 2
TeleboxNumber Telebox Number
TelexNumber Telex Number
TeletexNumber Teletex Number
FaxNumber FaxNumber Fax Number
DataCommunicationPhoneNumber Data Line
ProfitCenterPrinterName Printer
ProfitCenterCreatedByUser ProfitCenterCreatedByUser Created By
ProfitCenterCreationDate Entered On
CreatedByUserFullName _UserCrtedContactCard FullName Name
ProfitCenterResponsibilityArea
ProfitCenterHierarchyRespyArea
ProfitCenterName
ProfitCenterLongName
ControllingAreaName _ControllingAreaText ControllingAreaName Long Text
CompanyCodeName _Company CompanyCodeName Company Name
_Text _Text
_Country _Country
_ControllingArea _ControllingArea
_ProfitCenterHierarchyNode _ProfitCenterHierarchyNode
_Language _Language
_Company _Company
_Segment _Segment
_Region _Region
_ControllingAreaText _ControllingAreaText
_SegmentText _SegmentText
_UserCrtedContactCard _UserCrtedContactCard

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_ProfitCenterTP.
-- 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: PFIPRFTCTRTP

CREATE VIEW P_ProfitCenterTP AS
SELECT
  ControllingArea,
  ProfitCenter,
  ValidityEndDate,
  ValidityStartDate,
  cast ( ProfitCtrResponsiblePersonName as verak) AS ProfitCtrResponsiblePersonName,
  CompanyCode,
  ProfitCtrResponsibleUser,
  Department,
  cast( ProfitCenterStandardHierarchy as fac_mpc_pcg preserving type ) AS ProfitCenterStandardHierarchy,
  Segment,
  cast ( ProfitCenterIsBlocked as fac_mpc_lock_indicator ) AS ProfitCenterIsBlocked,
  FormulaPlanningTemplate,
  FormOfAddress,
  AddressName,
  AdditionalName,
  ProfitCenterAddrName3,
  ProfitCenterAddrName4,
  StreetAddressName,
  POBox,
  CityName,
  PostalCode,
  POBoxPostalCode,
  District,
  cast(Country as fis_land1 preserving type ) AS Country,
  Region,
  TaxJurisdiction,
  Language,
  PhoneNumber1,
  PhoneNumber2,
  cast( TeleboxNumber as fac_mpc_comm_telbx preserving type ) AS TeleboxNumber,
  cast( TelexNumber as fac_mpc_comm_telx1 preserving type ) AS TelexNumber,
  cast( TeletexNumber as fac_mpc_teltx preserving type ) AS TeletexNumber,
  FaxNumber,
  cast( DataCommunicationPhoneNumber as fac_mpc_comm_data_line preserving type ) AS DataCommunicationPhoneNumber,
  cast( ProfitCenterPrinterName as fac_mpc_comm_printer preserving type ) AS ProfitCenterPrinterName,
  ProfitCenterCreatedByUser,
  cast ( ProfitCenterCreationDate as ersda) AS ProfitCenterCreationDate,
  _UserCrtedContactCard.FullName AS CreatedByUserFullName,
  cast( concat('PC', concat(ControllingArea, ProfitCenter)) as fac_mpc_resparea ) AS ProfitCenterResponsibilityArea,
  cast( concat('PH', concat(ControllingArea, ProfitCenterStandardHierarchy)) as fac_mpc_hier_resparea ) AS ProfitCenterHierarchyRespyArea,
  _Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterName,
  cast( _Text[1:Language=$session.system_language].ProfitCenterLongName as fac_prctr_ltext_short preserving type ) AS ProfitCenterLongName,
  _ControllingAreaText.ControllingAreaName AS ControllingAreaName,
  _Company.CompanyCodeName AS CompanyCodeName
FROM I_ProfitCenter
LEFT OUTER JOIN I_UserContactCard AS _UserCrtedContactCard ON ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID  -- association [0..1]
;