I_CustomerProject

DDL: I_CUSTOMERPROJECT Type: view BASIC

Customer Project

I_CustomerProject is a Basic CDS View (Dimension) that provides data about "Customer Project" in SAP S/4HANA. It reads from 1 data source (I_EngagementProject) and exposes 31 fields with key field CustomerProject. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EngagementProject CustomerProject from

Associations (10)

CardinalityTargetAliasCondition
[0..*] I_CustomerProjectItem _Item $projection.CustomerProjectUUID = _Item.CustomerProjectUUID
[0..1] I_EngagementProjectStage _Stage $projection.CustomerProjectStage = _Stage.EngagementProjectStage
[0..*] I_PersnWrkAgreementDet _PersonWorkAgreement $projection.CustProjMgrPersonnelNumber = _PersonWorkAgreement.PersonWorkAgreement
[0..*] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_EngagementProjectSrvcOrg _EngagementProjectServiceOrg $projection.CustomerProjectServiceOrg = _EngagementProjectServiceOrg.EngagementProjectServiceOrg
[1..1] E_CustomerProject _Extension CustomerProject.EngagementProject = _Extension.CustomerProject
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTOMERPROJECT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled false view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Customer Project view
ObjectModel.representativeKey CustomerProject view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations false view
VDM.lifecycle.contract.type #NONE view
VDM.viewType #BASIC view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CustomerProject
CustomerProjectUUID
CustomerProjectName
CustomerProjectType
CustomerProjectStage
CustomerProjectVisibility
LastChangedByUser I_EngagementProject LastChangedByUser User Name
LastChangeDateTime I_EngagementProject LastChangeDateTime Timestamp
Customer I_EngagementProject Customer Sold-to Party
CustomerProjectServiceOrg I_EngagementProject EngagementProjectServiceOrg Service Org.
ProjectProfileCode I_EngagementProject ProjectProfileCode Project Profile
CustProjMgrPersonnelNumber I_EngagementProject ProjectManagerWorkAgreement
CustomerProjectStartDate I_EngagementProject ProjectStartDate Latest Planned Start
CustomerProjectEndDate I_EngagementProject ProjectEndDate Ltst Planned Finish
CostCenter I_EngagementProject CostCenter Cost Center
ProfitCenter I_EngagementProject ProfitCenter Profit Center
EngmntProjectHeaderCompanyCode I_EngagementProject CompanyCode Receiver Company Code
ProjectType
Currency _EngagementProjFinancialPlan Currency Valuation Crcy
CustProjFinancialPlanUUID
UnitOfMeasure _EngagementProjFinancialPlan UnitOfMeasure Unit Protected Qty
ControllingArea I_EngagementProject ControllingArea Controlling Area
_Stage _Stage
_PersonWorkAgreement _PersonWorkAgreement
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_EngagementProjectServiceOrg _EngagementProjectServiceOrg
_Currency _Currency
_Customer _Customer
_Item _Item
_UserInvlmnt _UserInvlmnt

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 I_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.

CREATE VIEW I_CustomerProject AS
SELECT
  cast(CustomerProject.EngagementProject as /cpd/ss_cp_id preserving type ) AS CustomerProject,
  cast(CustomerProject.EngagementProjectUUID as /cpd/ss_cp_uuid preserving type ) AS CustomerProjectUUID,
  cast(CustomerProject.EngagementProjectName as /cpd/ss_cp_desc preserving type) AS CustomerProjectName,
  cast(CustomerProject.EngagementProjectType as /cpd/ss_cp_type preserving type ) AS CustomerProjectType,
  cast(CustomerProject.EngagementProjectStage as /cpd/ss_cp_stage preserving type ) AS CustomerProjectStage,
  cast(CustomerProject.ProjectVisibility as /cpd/ss_cp_visibility preserving type ) AS CustomerProjectVisibility,
  CustomerProject.LastChangedByUser AS LastChangedByUser,
  CustomerProject.LastChangeDateTime AS LastChangeDateTime,
  CustomerProject.Customer AS Customer,
  CustomerProject.EngagementProjectServiceOrg AS CustomerProjectServiceOrg,
  CustomerProject.ProjectProfileCode AS ProjectProfileCode,
  CustomerProject.ProjectManagerWorkAgreement AS CustProjMgrPersonnelNumber,
  CustomerProject.ProjectStartDate AS CustomerProjectStartDate,
  CustomerProject.ProjectEndDate AS CustomerProjectEndDate,
  CustomerProject.CostCenter AS CostCenter,
  CustomerProject.ProfitCenter AS ProfitCenter,
  CustomerProject.CompanyCode AS EngmntProjectHeaderCompanyCode,
  cast( CustomerProject.EngagementProjectCategory as ps_prart ) AS ProjectType,
  _EngagementProjFinancialPlan.Currency AS Currency,
  cast(_EngagementProjFinancialPlan.EngagementProjFinPlanUUID as /cpd/eng_pfp_db_key preserving type ) AS CustProjFinancialPlanUUID,
  _EngagementProjFinancialPlan.UnitOfMeasure AS UnitOfMeasure,
  CustomerProject.ControllingArea AS ControllingArea
FROM I_EngagementProject AS CustomerProject
LEFT OUTER JOIN I_CustomerProjectItem AS _Item ON CustomerProjectUUID = _Item.CustomerProjectUUID  -- association [0..*]
LEFT OUTER JOIN I_EngagementProjectStage AS _Stage ON CustomerProjectStage = _Stage.EngagementProjectStage  -- association [0..1]
LEFT OUTER JOIN I_PersnWrkAgreementDet AS _PersonWorkAgreement ON CustProjMgrPersonnelNumber = _PersonWorkAgreement.PersonWorkAgreement  -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectSrvcOrg AS _EngagementProjectServiceOrg ON CustomerProjectServiceOrg = _EngagementProjectServiceOrg.EngagementProjectServiceOrg  -- association [0..1]
LEFT OUTER JOIN E_CustomerProject AS _Extension ON CustomerProject.EngagementProject = _Extension.CustomerProject  -- association [1..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
;