I_PPM_ISMYPROJECT

CDS View

All projects a user is respsonible for

I_PPM_ISMYPROJECT is a CDS View in S/4HANA. All projects a user is respsonible for. 5 CDS views read from this table.

CDS Views using this table (5)

ViewTypeJoinVDMDescription
I_PPM_MostCriticalProject view left_outer COMPOSITE My Projects - Critical
I_PPM_MyActiveProjects view inner COMPOSITE My Projects – Active
I_PPM_Myplannedprojects view inner COMPOSITE My Projects – Planned
P_PPM_Project view left_outer COMPOSITE Project
P_PPM_ProjectList view left_outer COMPOSITE List of all Projects for UI consumption
@EndUserText.label: 'All projects a user is respsonible for'

@VDM.viewType: #COMPOSITE

@AbapCatalog: { 
    sqlViewName: 'IPPMISMYPROJECT',
    compiler.compareFilter: true,
    preserveKey:true
}

@ObjectModel: {
   representativeKey: 'ProjectUUID',
   alternativeKey: [ { id : 'ProjectSummaryTaskUUID', uniqueness: #UNIQUE, element: 'ProjectSummaryTaskUUID' } ],
   usageType: {
     serviceQuality:  #C,
     dataClass:       #MIXED,
     sizeCategory:    #S
   }
}

@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

@VDM.lifecycle.contract.type:  #SAP_INTERNAL_API
define view I_PPM_IsMyProject as select from I_PPM_ProjectSummaryTask as PST
    inner join I_PPM_TeamMemberIsInRole( P_ProjectRoleCategory : 'PM' )        as IsInRole
          on PST.ProjectUUID = IsInRole.ProjectUUID          
{
    key PST.ProjectUUID,
    key PST.ProjectSummaryTaskUUID,
    IsInRole.IsInRoleCategory as IsMyProject // indicator: user is in Role Project Manager

    
}