I_EntProjUsrIsInRole

DDL: I_ENTPROJUSRISINROLE Type: view_entity COMPOSITE Package: VDM_PPM_OBJECTS_TEAMMEMBER

Ent proj where the logged in user is assigned project role

I_EntProjUsrIsInRole is a Composite CDS View that provides data about "Ent proj where the logged in user is assigned project role" in SAP S/4HANA. It reads from 1 data source (I_User) and exposes 2 fields with key field ProjectUUID. Part of development package VDM_PPM_OBJECTS_TEAMMEMBER.

Data Sources (1)

SourceAliasJoin Type
I_User User inner

Parameters (1)

NameTypeDefault
P_ProjectRoleCategory domvalue_l

Annotations (9)

NameValueLevelField
EndUserText.label Ent proj where the logged in user is assigned project role view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.representativeKey ProjectUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #M view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ProjectUUID TeamMbrRoleStaffing ProjectUUID
IsInRoleCategory
@EndUserText.label: 'Ent proj where the logged in user is assigned project role'

@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type:  #SAP_INTERNAL_API

@ObjectModel: {
   representativeKey: 'ProjectUUID',
   usageType: {
     serviceQuality:  #C,
     dataClass:       #MIXED,
     sizeCategory:    #M
   }
}

@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@AccessControl.personalData.blocking: #NOT_REQUIRED

define view entity I_EntProjUsrIsInRole 
            with parameters P_ProjectRoleCategory : domvalue_l
    as select distinct from I_EntProjTeamMbrRoleStaffing as TeamMbrRoleStaffing
            inner join I_User   as User on TeamMbrRoleStaffing.BusinessPartnerUUID = User.BusinessPartnerUUID 
{
    key TeamMbrRoleStaffing.ProjectUUID,    
    cast( 'X' as boolean ) as IsInRoleCategory
} where TeamMbrRoleStaffing.ProjectRoleCategory = $parameters.P_ProjectRoleCategory
    and User.UserID = $session.user