I_MasterProject

DDL: I_MASTERPROJECT SQL: IMASTERPROJECT Type: view BASIC

Master Project

I_MasterProject is a Basic CDS View (Dimension) that provides data about "Master Project" in SAP S/4HANA. It reads from 2 data sources (/cpd/d_mp_hdr_s, /cpd/d_mp_hdr) and exposes 46 fields with key field MasterProject. It has 18 associations to related views.

Data Sources (2)

SourceAliasJoin Type
/cpd/d_mp_hdr_s MasterProjectText inner
/cpd/d_mp_hdr MPList from

Associations (18)

CardinalityTargetAliasCondition
[0..1] I_MasterProjectType _MasterProjectType $projection.MasterProjectType = _MasterProjectType.MasterProjectType
[0..1] I_EngagementProjectStage _MasterProjectStage $projection.MasterProjectStage = _MasterProjectStage.EngagementProjectStage
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_BusinessPartner _ProjectManager $projection.ProjectManager = _ProjectManager.BusinessPartner
[0..1] I_EngagementProjectSrvcOrg _MasterProjectOrganization $projection.MasterProjectOrganization = _MasterProjectOrganization.EngagementProjectServiceOrg
[0..1] I_Country _Country $projection.Country = _Country.Country
[0..1] I_Region _Region $projection.Country = _Region.Country and $projection.Region = _Region.Region
[0..1] I_CpdIndustry _Industry $projection.Industry = _Industry.Industry
[0..1] I_Cpdprojectrisk _ProjectRisk $projection.ProjectRisk = _ProjectRisk.ProjectRisk
[0..1] I_Cpdfinancialrisk _FinancialRisk $projection.FinancialRisk = _FinancialRisk.FinancialRisk
[0..1] I_Cpdtechnicalrisk _TechnicalRisk $projection.TechnicalRisk = _TechnicalRisk.TechnicalRisk
[0..1] I_Cpdprojectrisk _OverallRisk $projection.OverallRisk = _OverallRisk.ProjectRisk
[1..*] I_MPContactPerson _ContactPerson $projection.MasterProjectUUID = _ContactPerson.MasterProjectUUID
[0..1] I_MasterProjectVH _MasterProject $projection.MasterProject = _MasterProject.MasterProject
[0..1] I_Cpdworktype _WorkType $projection.WorkType = _WorkType.WorkType
[0..1] I_WorkforcePerson _Employee $projection.ProjectManager = _Employee.Person
[1..1] E_MasterProject _Extension $projection.MasterProjectUUID = _Extension.MasterProjectUUID
[0..1] E_MasterProjectKPI _ExtensionKPI $projection.MasterProject = _ExtensionKPI.MasterProject

Annotations (14)

NameValueLevelField
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMASTERPROJECT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
ObjectModel.representativeKey MasterProject view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Master Project view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY MasterProject
MasterProjectUUID /cpd/d_mp_hdr db_key UUID
MasterProjectName
MasterProjectType
MasterProjectStage
StartDate /cpd/d_mp_hdr start_date Valn start date
EndDate /cpd/d_mp_hdr end_date Valn End date
StatusIsActive /cpd/d_mp_hdr active Usage Active
Customer /cpd/d_mp_hdr customer Sold-to Party
MasterProjectOrganization
MasterProjectIsConfidential
Country
Region /cpd/d_mp_hdr region Venue Region
WorkType /cpd/d_mp_hdr work_type Type of Work
Industry /cpd/d_mp_hdr industry Industry Sector
ProjectRisk
FinancialRisk /cpd/d_mp_hdr fin_risk Financial Risk
TechnicalRisk /cpd/d_mp_hdr tech_risk Technical Risk
OverallRisk
InspectionDate /cpd/d_mp_hdr int_inspect_date Int. Inspection
InternalInspectionDate
ExternalInspectionDate
CreatedByUser /cpd/d_mp_hdr created_by Version Created By
CreationDateTime
ProjectLastChangedDateTime
ChangedBy /cpd/d_mp_hdr changed_by User Name
ProjectManager /cpd/d_mp_hdr proj_mgr_bupa_id Business Partner
ProjectUUID
Currency /cpd/d_mp_hdr proj_currency Currency
MstrProjCutOffDate /cpd/d_mp_hdr cut_off_date Cut-Off Date
_MasterProjectType _MasterProjectType
_MasterProjectStage _MasterProjectStage
_Customer _Customer
_ProjectManager _ProjectManager
_MasterProjectOrganization _MasterProjectOrganization
_Country _Country
_Region _Region
_Industry _Industry
_ProjectRisk _ProjectRisk
_FinancialRisk _FinancialRisk
_TechnicalRisk _TechnicalRisk
_OverallRisk _OverallRisk
_ContactPerson _ContactPerson
_MasterProject _MasterProject
_WorkType _WorkType
_Employee _Employee

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_MasterProject.
-- 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: IMASTERPROJECT

CREATE VIEW I_MasterProject AS
SELECT
  cast(MPList.mp_id as /cpd/cpm_comlprojid) AS MasterProject,
  MPList.db_key AS MasterProjectUUID,
  cast(MasterProjectText.text as /cpd/cpm_comlprojname) AS MasterProjectName,
  cast(MPList.mp_type as /cpd/cpm_mp_type) AS MasterProjectType,
  cast(MPList.mp_stage as /cpd/cpm_mp_stage) AS MasterProjectStage,
  MPList.start_date AS StartDate,
  MPList.end_date AS EndDate,
  MPList.active AS StatusIsActive,
  MPList.customer AS Customer,
  cast(MPList.org_id as /cpd/cpm_comlprojorg) AS MasterProjectOrganization,
  cast(MPList.confidential as /cpd/cpm_comlprojcofl ) AS MasterProjectIsConfidential,
  cast(MPList.country as /cpd/cpm_country) AS Country,
  MPList.region AS Region,
  MPList.work_type AS WorkType,
  MPList.industry AS Industry,
  cast(MPList.proj_risk as /cpd/cpm_projrisk) AS ProjectRisk,
  MPList.fin_risk AS FinancialRisk,
  MPList.tech_risk AS TechnicalRisk,
  cast(MPList.overall_risk as /cpd/cpm_overalprojrisk) AS OverallRisk,
  MPList.int_inspect_date AS InspectionDate,
  cast(MPList.int_inspect_date as /cpd/cpm_intinsdate) AS InternalInspectionDate,
  cast(MPList.ext_inspect_date as /cpd/cpm_extinsdate) AS ExternalInspectionDate,
  MPList.created_by AS CreatedByUser,
  cast(MPList.created_on as /cpd/cpm_createdon) AS CreationDateTime,
  cast(MPList.changed_on as /cpd/cpm_changedon) AS ProjectLastChangedDateTime,
  MPList.changed_by AS ChangedBy,
  MPList.proj_mgr_bupa_id AS ProjectManager,
  bintohex(MPList.db_key) AS ProjectUUID,
  MPList.proj_currency AS Currency,
  MPList.cut_off_date AS MstrProjCutOffDate
FROM /cpd/d_mp_hdr AS MPList
INNER JOIN /cpd/d_mp_hdr_s AS MasterProjectText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MasterProjectType AS _MasterProjectType ON MasterProjectType = _MasterProjectType.MasterProjectType  -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectStage AS _MasterProjectStage ON MasterProjectStage = _MasterProjectStage.EngagementProjectStage  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _ProjectManager ON ProjectManager = _ProjectManager.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectSrvcOrg AS _MasterProjectOrganization ON MasterProjectOrganization = _MasterProjectOrganization.EngagementProjectServiceOrg  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON Country = _Region.Country AND Region = _Region.Region  -- association [0..1]
LEFT OUTER JOIN I_CpdIndustry AS _Industry ON Industry = _Industry.Industry  -- association [0..1]
LEFT OUTER JOIN I_Cpdprojectrisk AS _ProjectRisk ON ProjectRisk = _ProjectRisk.ProjectRisk  -- association [0..1]
LEFT OUTER JOIN I_Cpdfinancialrisk AS _FinancialRisk ON FinancialRisk = _FinancialRisk.FinancialRisk  -- association [0..1]
LEFT OUTER JOIN I_Cpdtechnicalrisk AS _TechnicalRisk ON TechnicalRisk = _TechnicalRisk.TechnicalRisk  -- association [0..1]
LEFT OUTER JOIN I_Cpdprojectrisk AS _OverallRisk ON OverallRisk = _OverallRisk.ProjectRisk  -- association [0..1]
LEFT OUTER JOIN I_MPContactPerson AS _ContactPerson ON MasterProjectUUID = _ContactPerson.MasterProjectUUID  -- association [1..*]
LEFT OUTER JOIN I_MasterProjectVH AS _MasterProject ON MasterProject = _MasterProject.MasterProject  -- association [0..1]
LEFT OUTER JOIN I_Cpdworktype AS _WorkType ON WorkType = _WorkType.WorkType  -- association [0..1]
LEFT OUTER JOIN I_WorkforcePerson AS _Employee ON ProjectManager = _Employee.Person  -- association [0..1]
LEFT OUTER JOIN E_MasterProject AS _Extension ON MasterProjectUUID = _Extension.MasterProjectUUID  -- association [1..1]
LEFT OUTER JOIN E_MasterProjectKPI AS _ExtensionKPI ON MasterProject = _ExtensionKPI.MasterProject  -- association [0..1]
;