P_ProjBillgCustomerProjectDets

DDL: P_PROJBILLGCUSTOMERPROJECTDETS Type: view_entity COMPOSITE Package: VDM_PROJECTBILLINGELEMENT

Project Billing Customer Project Details

P_ProjBillgCustomerProjectDets is a Composite CDS View that provides data about "Project Billing Customer Project Details" in SAP S/4HANA. It reads from 1 data source (I_EnterpriseProject) and exposes 31 fields with key field ProjectUUID. It has 4 associations to related views. Part of development package VDM_PROJECTBILLINGELEMENT.

Data Sources (1)

SourceAliasJoin Type
I_EnterpriseProject EnterpriseProject from

Associations (4)

CardinalityTargetAliasCondition
[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 _ResponsibleCostCenter.ValidityEndDate >= $session.system_date and _ResponsibleCostCenter.ValidityStartDate <= $session.system_date
[0..1] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea and _ProfitCenter.ValidityEndDate >= $session.system_date and _ProfitCenter.ValidityStartDate <= $session.system_date

Annotations (7)

NameValueLevelField
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 (31)

KeyFieldSource TableSource FieldDescription
KEY ProjectUUID ProjectUUID Project UUID
ProjectInternalID ProjectInternalID Project Def.
Project Project WBS Element
ProjectDescription ProjectDescription Project Name
ProjectStartDate ProjectStartDate Latest Planned Start
ProjectEndDate ProjectEndDate Ltst Planned Finish
CustomerUUID CustomerUUID NodeID
StoreCustomerName Customer
ResponsibleCostCenter ResponsibleCostCenter Responsible Cost Center
CostCenterName Cost Center
ControllingArea ControllingArea Controlling Area
ProfitCenter ProfitCenter Profit Center
ProfitCenterName Profit Center
ProfitCenterName
EnterpriseProjectServiceOrg EnterpriseProjectServiceOrg Service Org.
EngmtProjectServiceOrgName _ServiceOrganizationText EngmtProjectServiceOrgName Service Organization
ProcessingStatus ProcessingStatus Worklist Status
CompanyCode CompanyCode Receiver Company Code
ProjectProfileCode ProjectProfileCode Project Profile
ProjectCategory ProjectCategory Proj. Category
EntProjectIsConfidential EntProjectIsConfidential Confidential
ProjectSummaryTaskUUID ProjectSummaryTaskUUID Entity GUID
_AuthGroup _AuthGroup
_AuthRole _AuthRole
_AuthSubst _AuthSubst
_AuthUser _AuthUser
_ProfitCenter _ProfitCenter
EnterpriseProjectType EnterpriseProjectType Proj.type
_EnterpriseProjectForUser _EnterpriseProjectForUser
FunctionalArea FunctionalArea Sendr Fctl Area
Plant Plant Valuation Area

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_ProjBillgCustomerProjectDets.
-- 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 P_ProjBillgCustomerProjectDets AS
SELECT
  ProjectUUID,
  ProjectInternalID,
  Project,
  ProjectDescription,
  ProjectStartDate,
  ProjectEndDate,
  CustomerUUID,
  _CustomerToBusinessPartner._Customer.CustomerName AS StoreCustomerName,
  ResponsibleCostCenter,
  _ResponsibleCostCenter._Text[1:Language = $session.system_language].CostCenterName AS CostCenterName,
  ControllingArea,
  ProfitCenter,
  _ProfitCenter._Text[1:Language = $session.system_language].ProfitCenterName AS ProfitCenterName,
  EnterpriseProjectServiceOrg,
  _ServiceOrganizationText.EngmtProjectServiceOrgName AS EngmtProjectServiceOrgName,
  ProcessingStatus,
  CompanyCode,
  ProjectProfileCode,
  ProjectCategory,
  EntProjectIsConfidential,
  ProjectSummaryTaskUUID,
  EnterpriseProjectType,
  FunctionalArea,
  Plant
FROM I_EnterpriseProject AS EnterpriseProject
LEFT OUTER JOIN I_EngagementProjectSrvcOrgText AS _ServiceOrganizationText ON _ServiceOrganizationText.EngagementProjectServiceOrg = EnterpriseProjectServiceOrg AND _ServiceOrganizationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _CustomerToBusinessPartner ON _CustomerToBusinessPartner.BusinessPartnerUUID = CustomerUUID  -- association [1..1]
LEFT OUTER JOIN I_CostCenter AS _ResponsibleCostCenter ON ControllingArea = _ResponsibleCostCenter.ControllingArea AND ResponsibleCostCenter = _ResponsibleCostCenter.CostCenter AND _ResponsibleCostCenter.ValidityEndDate >= $session.system_date AND _ResponsibleCostCenter.ValidityStartDate <= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea AND _ProfitCenter.ValidityEndDate >= $session.system_date AND _ProfitCenter.ValidityStartDate <= $session.system_date  -- association [0..1]
;