C_ProfitCenterTP
Consumption: Profit Center Master Record
C_ProfitCenterTP is a Consumption CDS View that provides data about "Consumption: Profit Center Master Record" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterTP) and exposes 70 fields with key fields ControllingArea, ProfitCenter, ValidityEndDate. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProfitCenterTP | ProfitCenter | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_ProfitCenterTextTP | _MultiLangText | $projection.ControllingArea = _MultiLangText.ControllingArea and $projection.ProfitCenter = _MultiLangText.ProfitCenter and $projection.ValidityEndDate = _MultiLangText.ValidityEndDate |
| [0..*] | C_PrftCtrCompCodeAssgmtTP | _CompanyCodeAssignment | $projection.ControllingArea = _CompanyCodeAssignment.ControllingArea and $projection.ProfitCenter = _CompanyCodeAssignment.ProfitCenter and $projection.ValidityEndDate = _CompanyCodeAssignment.ValidityEndDate |
| [0..*] | C_ProfitCenterChangeDocument | _ProfitCenterChangeDocument | $projection.ChangeDocObject = _ProfitCenterChangeDocument.ChangeDocObject and _ProfitCenterChangeDocument.ChangeDocumentSAPClient = $session.client and $projection.ControllingAreaForEdit = _ProfitCenterChangeDocument.ControllingArea and $projection.ProfitCenterForEdit = _ProfitCenterChangeDocument.ProfitCenter and $projection.ValidityEndDateForEdit = _ProfitCenterChangeDocument.ValidityEndDate |
| [0..1] | I_SetHeader | _SetHeader | _SetHeader.SetSubClass = $projection.ControllingAreaForEdit and _SetHeader.SetClass = '0106' and _SetHeader.SetID = $projection.ProfitCenterStandardHierarchy |
| [0..1] | I_Segment | _Segment | _Segment.Segment = $projection.Segment |
| [0..1] | I_UserContactCard | _UserRespContactCard | $projection.ProfitCtrResponsibleUser = _UserRespContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _UserCrtedContactCard | $projection.ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ProfitCenterUserRespVH | $projection.ProfitCtrResponsibleUser = _ProfitCenterUserRespVH.ContactCardID |
| [0..1] | I_UserContactCard | _ProfitCenterUserCreatedVH | $projection.ProfitCenterCreatedByUser = _ProfitCenterUserCreatedVH.ContactCardID |
Annotations (24)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIPRFTCTRTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Consumption: Profit Center Master Record | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #ORGANIZATIONAL | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Consumption.semanticObject | ProfitCenter | view | |
| Metadata.allowExtensions | true | view | |
| UI.headerInfo.typeName | Profit Center | view | |
| UI.headerInfo.typeNamePlural | Profit Centers | view | |
| UI.headerInfo.title.label | Profit Center | view | |
| UI.headerInfo.title.value | ProfitCenter | view | |
| UI.headerInfo.description.value | ProfitCenterName | view |
Fields (70)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | ProfitCenter | ProfitCenter | Profit Center | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| ControllingAreaForEdit | ControllingAreaForEdit | Controlling Area | ||
| ControllingAreaName | ControllingAreaName | Long Text | ||
| ProfitCenterForEdit | ProfitCenterForEdit | Profit Center | ||
| ProfitCenterName | ProfitCenterName | Profit Center Name | ||
| ValidityEndDateForEdit | ValidityEndDateForEdit | Valid To | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ProfitCenterValidityPeriod | ProfitCenterValidityPeriod | |||
| ProfitCenterLongName | ProfitCenterLongName | Profit Center Description | ||
| ProfitCtrResponsiblePersonName | ProfitCtrResponsiblePersonName | Person Respons. | ||
| ProfitCtrResponsibleUser | ProfitCtrResponsibleUser | User Responsible | ||
| ProfitCenterCreationDate | ProfitCenterCreationDate | Entered On | ||
| ProfitCenterCreatedByUser | ProfitCenterCreatedByUser | Created By | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | CompanyCodeName | Company Name | ||
| ProfitCenterStandardHierarchy | ProfitCenterStandardHierarchy | Standard Hierarchy Node | ||
| SetDescription | ||||
| Segment | Segment | Segment number | ||
| SegmentName | ||||
| Department | Department | Department | ||
| ProfitCenterIsBlocked | ProfitCenterIsBlocked | Locked | ||
| FormOfAddress | FormOfAddress | Title Key | ||
| AddressName | AddressName | Name | ||
| AdditionalName | AdditionalName | Name 2 | ||
| ProfitCenterAddrName3 | ProfitCenterAddrName3 | Name 3 | ||
| ProfitCenterAddrName4 | ProfitCenterAddrName4 | Name 4 | ||
| StreetAddressName | StreetAddressName | Street | ||
| CityName | CityName | Name | ||
| PostalCode | PostalCode | Postal Code | ||
| District | District | District Court | ||
| Country | Country | Venue: Ctry/Reg | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| Region | Region | Venue Region | ||
| POBox | POBox | PO Box | ||
| POBoxPostalCode | POBoxPostalCode | PO Box Postal Code | ||
| Language | Language | Report Text Language | ||
| PhoneNumber1 | PhoneNumber1 | Telephone 1 | ||
| PhoneNumber2 | PhoneNumber2 | Telephone 2 | ||
| FaxNumber | FaxNumber | Fax Number | ||
| TeleboxNumber | TeleboxNumber | Telebox Number | ||
| TelexNumber | TelexNumber | Telex Number | ||
| DataCommunicationPhoneNumber | DataCommunicationPhoneNumber | Data Line | ||
| ProfitCenterPrinterName | ProfitCenterPrinterName | Printer | ||
| TeletexNumber | TeletexNumber | Teletex Number | ||
| ETag | ETag | Update Token | ||
| _CompanyCodeAssignment | _CompanyCodeAssignment | |||
| ProfitCenterResponsibilityArea | ProfitCenterResponsibilityArea | |||
| ProfitCenterHierarchyRespyArea | ProfitCenterHierarchyRespyArea | |||
| ChangeDocObject | ChangeDocObject | Object Value | ||
| CreatedByUserFullName | CreatedByUserFullName | Description | ||
| ResponsibleUserFullName | _UserRespContactCard | FullName | Name | |
| CountryName | ||||
| RegionName | ||||
| LanguageName | ||||
| _MultiLangText | _MultiLangText | |||
| _ProfitCenterHierarchyNode | _ProfitCenterHierarchyNode | |||
| _Company | _Company | |||
| _ControllingAreaText | _ControllingAreaText | |||
| _ProfitCenterChangeDocument | _ProfitCenterChangeDocument | |||
| _Country | _Country | |||
| _Region | _Region | |||
| _Language | _Language | |||
| _SetHeader | _SetHeader | |||
| _Segment | _Segment | |||
| _UserRespContactCard | _UserRespContactCard | |||
| _UserCrtedContactCard | _UserCrtedContactCard | |||
| _ProfitCenterUserRespVH | _ProfitCenterUserRespVH | |||
| _ProfitCenterUserCreatedVH | _ProfitCenterUserCreatedVH |
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 C_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.
CREATE VIEW C_ProfitCenterTP AS
SELECT
ControllingArea,
ProfitCenter,
ValidityEndDate,
ControllingAreaForEdit,
ControllingAreaName,
ProfitCenterForEdit,
ProfitCenterName,
ValidityEndDateForEdit,
ValidityStartDate,
ProfitCenterValidityPeriod,
ProfitCenterLongName,
ProfitCtrResponsiblePersonName,
ProfitCtrResponsibleUser,
ProfitCenterCreationDate,
ProfitCenterCreatedByUser,
CompanyCode,
CompanyCodeName,
ProfitCenterStandardHierarchy,
_SetHeader._SetHeaderText[1:Language = $session.system_language].SetDescription AS SetDescription,
Segment,
_Segment._Text[1:Language = $session.system_language].SegmentName AS SegmentName,
Department,
ProfitCenterIsBlocked,
FormOfAddress,
AddressName,
AdditionalName,
ProfitCenterAddrName3,
ProfitCenterAddrName4,
StreetAddressName,
CityName,
PostalCode,
District,
Country,
TaxJurisdiction,
Region,
POBox,
POBoxPostalCode,
Language,
PhoneNumber1,
PhoneNumber2,
FaxNumber,
TeleboxNumber,
TelexNumber,
DataCommunicationPhoneNumber,
ProfitCenterPrinterName,
TeletexNumber,
ETag,
ProfitCenterResponsibilityArea,
ProfitCenterHierarchyRespyArea,
ChangeDocObject,
CreatedByUserFullName,
_UserRespContactCard.FullName AS ResponsibleUserFullName,
_Country._Text[1: Language = $session.system_language].CountryName AS CountryName,
_Region._RegionText[1:Language = $session.system_language].RegionName AS RegionName,
_Language._Text[1:Language = $session.system_language].LanguageName AS LanguageName
FROM I_ProfitCenterTP AS ProfitCenter
LEFT OUTER JOIN C_ProfitCenterTextTP AS _MultiLangText ON ControllingArea = _MultiLangText.ControllingArea AND ProfitCenter = _MultiLangText.ProfitCenter AND ValidityEndDate = _MultiLangText.ValidityEndDate -- association [1..*]
LEFT OUTER JOIN C_PrftCtrCompCodeAssgmtTP AS _CompanyCodeAssignment ON ControllingArea = _CompanyCodeAssignment.ControllingArea AND ProfitCenter = _CompanyCodeAssignment.ProfitCenter AND ValidityEndDate = _CompanyCodeAssignment.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN C_ProfitCenterChangeDocument AS _ProfitCenterChangeDocument ON ChangeDocObject = _ProfitCenterChangeDocument.ChangeDocObject AND _ProfitCenterChangeDocument.ChangeDocumentSAPClient = $session.client AND ControllingAreaForEdit = _ProfitCenterChangeDocument.ControllingArea AND ProfitCenterForEdit = _ProfitCenterChangeDocument.ProfitCenter AND ValidityEndDateForEdit = _ProfitCenterChangeDocument.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN I_SetHeader AS _SetHeader ON _SetHeader.SetSubClass = ControllingAreaForEdit AND _SetHeader.SetClass = '0106' AND _SetHeader.SetID = ProfitCenterStandardHierarchy -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON _Segment.Segment = Segment -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserRespContactCard ON ProfitCtrResponsibleUser = _UserRespContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserCrtedContactCard ON ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ProfitCenterUserRespVH ON ProfitCtrResponsibleUser = _ProfitCenterUserRespVH.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ProfitCenterUserCreatedVH ON ProfitCenterCreatedByUser = _ProfitCenterUserCreatedVH.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