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 | ||
| KEY | ProfitCenter | ProfitCenter | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| ValidityStartDate | ValidityStartDate | |||
| ProfitCtrResponsiblePersonName | ||||
| CompanyCode | CompanyCode | |||
| ProfitCtrResponsibleUser | ProfitCtrResponsibleUser | |||
| Department | Department | |||
| ProfitCenterStandardHierarchy | ||||
| Segment | Segment | |||
| ProfitCenterIsBlocked | ||||
| FormulaPlanningTemplate | FormulaPlanningTemplate | |||
| FormOfAddress | FormOfAddress | |||
| AddressName | AddressName | |||
| AdditionalName | AdditionalName | |||
| ProfitCenterAddrName3 | ProfitCenterAddrName3 | |||
| ProfitCenterAddrName4 | ProfitCenterAddrName4 | |||
| StreetAddressName | StreetAddressName | |||
| POBox | POBox | |||
| CityName | CityName | |||
| PostalCode | PostalCode | |||
| POBoxPostalCode | POBoxPostalCode | |||
| District | District | |||
| Country | ||||
| Region | Region | |||
| TaxJurisdiction | TaxJurisdiction | |||
| Language | Language | |||
| PhoneNumber1 | PhoneNumber1 | |||
| PhoneNumber2 | PhoneNumber2 | |||
| TeleboxNumber | ||||
| TelexNumber | ||||
| TeletexNumber | ||||
| FaxNumber | FaxNumber | |||
| DataCommunicationPhoneNumber | ||||
| ProfitCenterPrinterName | ||||
| ProfitCenterCreatedByUser | ProfitCenterCreatedByUser | |||
| ProfitCenterCreationDate | ||||
| CreatedByUserFullName | _UserCrtedContactCard | FullName | ||
| ProfitCenterResponsibilityArea | ||||
| ProfitCenterHierarchyRespyArea | ||||
| ProfitCenterName | ||||
| ProfitCenterLongName | ||||
| ControllingAreaName | _ControllingAreaText | ControllingAreaName | ||
| CompanyCodeName | _Company | CompanyCodeName | ||
| _Text | _Text | |||
| _Country | _Country | |||
| _ControllingArea | _ControllingArea | |||
| _ProfitCenterHierarchyNode | _ProfitCenterHierarchyNode | |||
| _Language | _Language | |||
| _Company | _Company | |||
| _Segment | _Segment | |||
| _Region | _Region | |||
| _ControllingAreaText | _ControllingAreaText | |||
| _SegmentText | _SegmentText | |||
| _UserCrtedContactCard | _UserCrtedContactCard |
@AbapCatalog.sqlViewName: 'PFIPRFTCTRTP'
@AbapCatalog.compiler.compareFilter: true
//@EndUserText.label: 'Private view for Profit Center TP'
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #ORGANIZATIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.privilegedAssociations: [ '_UserCrtedContactCard' ]
define view P_ProfitCenterTP
as select from I_ProfitCenter
// association [0..1] to I_UserContactCard as _UserRespContactCard on $projection.CostCtrResponsibleUser = _UserRespContactCard.ContactCardID
association [0..1] to I_UserContactCard as _UserCrtedContactCard on $projection.ProfitCenterCreatedByUser = _UserCrtedContactCard.ContactCardID
{
@ObjectModel.foreignKey.association: '_ControllingArea'
key ControllingArea,
@ObjectModel.hierarchy.association: '_ProfitCenterHierarchyNode'
key ProfitCenter,
key ValidityEndDate,
ValidityStartDate,
cast ( ProfitCtrResponsiblePersonName as verak) as ProfitCtrResponsiblePersonName,
@ObjectModel.foreignKey.association: '_Company'
CompanyCode,
ProfitCtrResponsibleUser,
Department,
cast( ProfitCenterStandardHierarchy as fac_mpc_pcg preserving type ) as ProfitCenterStandardHierarchy,
@ObjectModel.foreignKey.association: '_Segment'
Segment,
cast ( ProfitCenterIsBlocked as fac_mpc_lock_indicator ) as ProfitCenterIsBlocked,
FormulaPlanningTemplate,
FormOfAddress,
AddressName,
AdditionalName,
ProfitCenterAddrName3,
ProfitCenterAddrName4,
StreetAddressName,
POBox,
CityName,
PostalCode,
POBoxPostalCode,
District,
@ObjectModel.foreignKey.association: '_Country'
cast(Country as fis_land1 preserving type ) as Country,
@ObjectModel.foreignKey.association: '_Region'
Region,
TaxJurisdiction,
@ObjectModel.foreignKey.association: '_Language'
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,
@ObjectModel.foreignKey.association: '_UserCrtedContactCard'
ProfitCenterCreatedByUser,
cast ( ProfitCenterCreationDate as ersda) as ProfitCenterCreationDate,
_UserCrtedContactCard.FullName as CreatedByUserFullName,
case( length( ControllingArea ) )
when 2 then cast( concat_with_space(ControllingArea, ProfitCenter, 2 ) as cdobjectv )
when 3 then cast( concat_with_space(ControllingArea, ProfitCenter, 1 ) as cdobjectv )
else cast( concat(ControllingArea, ProfitCenter) as cdobjectv ) end as ChangeDocObject,
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,
cast( _Text[1:Language=$session.system_language].ProfitCenterLongName as fac_prctr_ltext_short preserving type ) as ProfitCenterLongName,
_ControllingAreaText.ControllingAreaName,
_Company.CompanyCodeName,
_Text,
_Country,
_ControllingArea,
_ProfitCenterHierarchyNode,
_Language,
_Company,
_Segment,
_Region,
_ControllingAreaText,
_SegmentText,
_UserCrtedContactCard
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_PROFITCENTER",
"I_PROFITCENTERTEXT",
"I_USERCONTACTCARD"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_LANGUAGE",
"I_PROFITCENTERHIERARCHYNODE",
"I_PROFITCENTERTEXT",
"I_REGION",
"I_SEGMENT",
"I_SEGMENTTEXT",
"I_USERCONTACTCARD"
],
"BASE":
[
"I_PROFITCENTER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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