C_CustomerProject

DDL: C_CUSTOMERPROJECT SQL: CCUSTOMERPROJECT Type: view CONSUMPTION Package: CPD_CDS

Customer Project

C_CustomerProject is a Consumption CDS View that provides data about "Customer Project" in SAP S/4HANA. It reads from 1 data source (I_EngagementProject) and exposes 39 fields with key field CustomerProject. It has 6 associations to related views. Part of development package CPD_CDS.

Data Sources (1)

SourceAliasJoin Type
I_EngagementProject EngagementProject from

Associations (6)

CardinalityTargetAliasCondition
[0..*] C_WorkPackage _WorkPackage $projection.EngagementProjFinPlanUUID = _WorkPackage.EngagementProjFinPlanUUID
[0..1] I_EngagementProjectRole _ProjectController $projection.CustomerProject = _ProjectController.EngagementProject and _ProjectController.EngagementProjectTeamRole = 'P003'
[0..1] I_EngagementProjectRole _ProjectAccountant $projection.CustomerProject = _ProjectAccountant.EngagementProject and _ProjectAccountant.EngagementProjectTeamRole = 'P002'
[0..1] I_EngagementProjectRole _ProjectPartner $projection.CustomerProject = _ProjectPartner.EngagementProject and _ProjectPartner.EngagementProjectTeamRole = 'P004'
[0..1] E_CustomerProject _Extension $projection.CustomerProject = _Extension.CustomerProject
[0..*] I_PersnWrkAgreementDet _PersonWorkAgreement $projection.ProjectManagerWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.sqlViewName CCUSTOMERPROJECT view
EndUserText.label Customer Project view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY CustomerProject I_EngagementProject EngagementProject Engmnt Project ID
CustomerProjectUUID I_EngagementProject EngagementProjectUUID Engmnt Project UUID
EngagementProjFinPlanUUID _EngagementProjFinancialPlan EngagementProjFinPlanUUID Engagement Project
ProjectVisibility I_EngagementProject ProjectVisibility Confidential
CustomerProjectType I_EngagementProject EngagementProjectType
CustomerProjectStage I_EngagementProject EngagementProjectStage Stage
CompanyCode I_EngagementProject CompanyCode Receiver Company Code
ProjectProfileCode I_EngagementProject ProjectProfileCode Project Profile
ControllingArea I_EngagementProject ControllingArea Controlling Area
CostCenter I_EngagementProject CostCenter Cost Center
CustomerProjectServiceOrg I_EngagementProject EngagementProjectServiceOrg Service Org.
EngagementProjectCategory I_EngagementProject EngagementProjectCategory
ProfitCenter I_EngagementProject ProfitCenter Profit Center
CustomerProjectName I_EngagementProject EngagementProjectName User Group
Customer I_EngagementProject Customer Sold-to Party
LastChangeDateTime I_EngagementProject LastChangeDateTime Timestamp
LastChangedByUser I_EngagementProject LastChangedByUser User Name
ProjectManager I_EngagementProject ProjectManager Busn. Partner
ProjectManagerWorkAgreement I_EngagementProject ProjectManagerWorkAgreement
ProjectStartDate I_EngagementProject ProjectStartDate Latest Planned Start
ProjectEndDate I_EngagementProject ProjectEndDate Ltst Planned Finish
Currency EngagementProjectPlanData Currency Valuation Crcy
PlndCostAmt EngagementProjectPlanData PlndCostAmt Amount
PlndEffortQty EngagementProjectPlanData PlndEffortQty Total Quantity
PlndRevnAmt EngagementProjectPlanData PlndRevnAmt Amount
IsMyProject MyProjects IsMyProject
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_ProfitCenter _ProfitCenter
_Customer _Customer
_EngagementProjectItem _EngagementProjectItem
_PersonWorkAgreement _PersonWorkAgreement
_ProjectController _ProjectController
_ProjectAccountant _ProjectAccountant
_ProjectPartner _ProjectPartner
_EngagementProjectServiceOrg _EngagementProjectServiceOrg
_EngagementProjectStage _EngagementProjectStage
_EngagementProjFinancialPlan _EngagementProjFinancialPlan
_WorkPackage _WorkPackage

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_CustomerProject.
-- 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: CCUSTOMERPROJECT

CREATE VIEW C_CustomerProject AS
SELECT
  EngagementProject.EngagementProject AS CustomerProject,
  EngagementProject.EngagementProjectUUID AS CustomerProjectUUID,
  _EngagementProjFinancialPlan.EngagementProjFinPlanUUID AS EngagementProjFinPlanUUID,
  EngagementProject.ProjectVisibility AS ProjectVisibility,
  EngagementProject.EngagementProjectType AS CustomerProjectType,
  EngagementProject.EngagementProjectStage AS CustomerProjectStage,
  EngagementProject.CompanyCode AS CompanyCode,
  EngagementProject.ProjectProfileCode AS ProjectProfileCode,
  EngagementProject.ControllingArea AS ControllingArea,
  EngagementProject.CostCenter AS CostCenter,
  EngagementProject.EngagementProjectServiceOrg AS CustomerProjectServiceOrg,
  EngagementProject.EngagementProjectCategory AS EngagementProjectCategory,
  EngagementProject.ProfitCenter AS ProfitCenter,
  EngagementProject.EngagementProjectName AS CustomerProjectName,
  EngagementProject.Customer AS Customer,
  EngagementProject.LastChangeDateTime AS LastChangeDateTime,
  EngagementProject.LastChangedByUser AS LastChangedByUser,
  EngagementProject.ProjectManager AS ProjectManager,
  EngagementProject.ProjectManagerWorkAgreement AS ProjectManagerWorkAgreement,
  EngagementProject.ProjectStartDate AS ProjectStartDate,
  EngagementProject.ProjectEndDate AS ProjectEndDate,
  EngagementProjectPlanData.Currency AS Currency,
  EngagementProjectPlanData.PlndCostAmt AS PlndCostAmt,
  EngagementProjectPlanData.PlndEffortQty AS PlndEffortQty,
  EngagementProjectPlanData.PlndRevnAmt AS PlndRevnAmt,
  MyProjects.IsMyProject AS IsMyProject
FROM I_EngagementProject AS EngagementProject
LEFT OUTER JOIN C_WorkPackage AS _WorkPackage ON EngagementProjFinPlanUUID = _WorkPackage.EngagementProjFinPlanUUID  -- association [0..*]
LEFT OUTER JOIN I_EngagementProjectRole AS _ProjectController ON CustomerProject = _ProjectController.EngagementProject AND _ProjectController.EngagementProjectTeamRole = 'P003'  -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectRole AS _ProjectAccountant ON CustomerProject = _ProjectAccountant.EngagementProject AND _ProjectAccountant.EngagementProjectTeamRole = 'P002'  -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectRole AS _ProjectPartner ON CustomerProject = _ProjectPartner.EngagementProject AND _ProjectPartner.EngagementProjectTeamRole = 'P004'  -- association [0..1]
LEFT OUTER JOIN E_CustomerProject AS _Extension ON CustomerProject = _Extension.CustomerProject  -- association [0..1]
LEFT OUTER JOIN I_PersnWrkAgreementDet AS _PersonWorkAgreement ON ProjectManagerWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement  -- association [0..*]
;