P_ProjBillgCustomerProjectDets
P_ProjBillgCustomerProjectDets is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EnterpriseProject) and exposes 27 fields with key field ProjectUUID. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EnterpriseProject | EnterpriseProject | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EngagementProjectSrvcOrgText | _ServiceOrganizationText | _ServiceOrganizationText.EngagementProjectServiceOrg = $projection.EnterpriseProjectServiceOrg and _ServiceOrganizationText.Language = $session.system_language |
| [1..1] | I_CustomerToBusinessPartner | _CustomerToBusinessPartner | _CustomerToBusinessPartner.BusinessPartnerUUID = $projection.CustomerUUID |
| [0..1] | I_CostCenter | _ResponsibleCostCenter | $projection.ControllingArea = _ResponsibleCostCenter.ControllingArea and $projection.ResponsibleCostCenter = _ResponsibleCostCenter.CostCenter and $projection.ProjectStartDate <= _ResponsibleCostCenter.ValidityEndDate and $projection.ProjectStartDate >= _ResponsibleCostCenter.ValidityStartDate |
| [0..1] | I_ProfitCenter | _ProfitCenter | $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProjectStartDate <= _ProfitCenter.ValidityEndDate and $projection.ProjectStartDate >= _ProfitCenter.ValidityStartDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectUUID | ProjectUUID | ||
| ProjectInternalID | ProjectInternalID | |||
| Project | Project | |||
| ProjectDescription | ProjectDescription | |||
| ProjectStartDate | ProjectStartDate | |||
| ProjectEndDate | ProjectEndDate | |||
| CustomerUUID | CustomerUUID | |||
| StoreCustomerName | Customer | |||
| ResponsibleCostCenter | ResponsibleCostCenter | |||
| CostCenterName | Cost Center | |||
| ControllingArea | ControllingArea | |||
| ProfitCenter | ProfitCenter | |||
| ProfitCenterName | Profit Center | |||
| ProfitCenterName | ||||
| EnterpriseProjectServiceOrg | EnterpriseProjectServiceOrg | |||
| EngmtProjectServiceOrgName | _ServiceOrganizationText | EngmtProjectServiceOrgName | Service Organization | |
| ProcessingStatus | ProcessingStatus | |||
| CompanyCode | CompanyCode | |||
| ProjectProfileCode | ProjectProfileCode | |||
| ProjectCategory | ProjectCategory | |||
| EntProjectIsConfidential | EntProjectIsConfidential | |||
| ProjectSummaryTaskUUID | ProjectSummaryTaskUUID | |||
| _AuthGroup | _AuthGroup | |||
| _AuthRole | _AuthRole | |||
| _AuthSubst | _AuthSubst | |||
| _AuthUser | _AuthUser | |||
| _ProfitCenter | _ProfitCenter |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.private:true
@VDM.viewType: #COMPOSITE
define view entity P_ProjBillgCustomerProjectDets
as select from I_EnterpriseProject as EnterpriseProject
association [0..1] to I_EngagementProjectSrvcOrgText as _ServiceOrganizationText on _ServiceOrganizationText.EngagementProjectServiceOrg = $projection.EnterpriseProjectServiceOrg
and _ServiceOrganizationText.Language = $session.system_language
association [1..1] to I_CustomerToBusinessPartner as _CustomerToBusinessPartner on _CustomerToBusinessPartner.BusinessPartnerUUID = $projection.CustomerUUID
association [0..1] to I_CostCenter as _ResponsibleCostCenter on $projection.ControllingArea = _ResponsibleCostCenter.ControllingArea
and $projection.ResponsibleCostCenter = _ResponsibleCostCenter.CostCenter
and $projection.ProjectStartDate <= _ResponsibleCostCenter.ValidityEndDate
and $projection.ProjectStartDate >= _ResponsibleCostCenter.ValidityStartDate
association [0..1] to I_ProfitCenter as _ProfitCenter on $projection.ProfitCenter = _ProfitCenter.ProfitCenter
and $projection.ControllingArea = _ProfitCenter.ControllingArea
and $projection.ProjectStartDate <= _ProfitCenter.ValidityEndDate
and $projection.ProjectStartDate >= _ProfitCenter.ValidityStartDate
{
key ProjectUUID,
ProjectInternalID,
Project,
ProjectDescription,
ProjectStartDate,
ProjectEndDate,
CustomerUUID,
@Semantics.name.fullName: true
@Semantics.text: true
@EndUserText.label: 'Customer'
_CustomerToBusinessPartner._Customer.CustomerName as StoreCustomerName,
ResponsibleCostCenter,
@Semantics.text: true
@EndUserText.label: 'Cost Center'
_ResponsibleCostCenter._Text[1:Language = $session.system_language].CostCenterName,
ControllingArea,
ProfitCenter,
@Semantics.text: true
@EndUserText.label: 'Profit Center'
--_ProfitCenterText.ProfitCenterName,
_ProfitCenter._Text[1:Language = $session.system_language].ProfitCenterName,
EnterpriseProjectServiceOrg,
@Semantics.text: true
@EndUserText.label: 'Service Organization'
_ServiceOrganizationText.EngmtProjectServiceOrgName as EngmtProjectServiceOrgName,
ProcessingStatus,
CompanyCode,
ProjectProfileCode,
ProjectCategory,
EntProjectIsConfidential,
ProjectSummaryTaskUUID,
_AuthGroup,
_AuthRole,
_AuthSubst,
_AuthUser,
_ProfitCenter
}
where
ProjectCategory = '7'
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