P_ProfitCenterTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ProfitCenter | I_ProfitCenter | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserContactCard | _UserCrtedContactCard | $projection.ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA