I_PPM_SINGLERESPONSIBLEFORPROJ

CDS View

Returns the calculated single responsible for a project

I_PPM_SINGLERESPONSIBLEFORPROJ is a CDS View in S/4HANA. Returns the calculated single responsible for a project. It contains 3 fields. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
I_SingleResponsibleForProj view from COMPOSITE Single responsible person for a project
P_PPM_Prstcm_ProjData view left_outer CONSUMPTION Private View of Projects By Key Figures visual filters

Fields (3)

KeyField CDS FieldsUsed in Views
KEY ProjectSummaryTaskUUID ReferencedObjectUUID 1
_BusinessUser _BusinessUser 1
BusinessPartnerUUID ProjectManagerUUID 1
@EndUserText.label: 'Returns the calculated single responsible for a project'
@VDM.viewType: #COMPOSITE

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

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

@ClientHandling.algorithm: #SESSION_VARIABLE
// this view will only show GUIDs, no data

@AccessControl.authorizationCheck: #NOT_ALLOWED
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

@VDM.lifecycle.contract.type:  #SAP_INTERNAL_API

define view I_PPM_SingleResponsibleForProj
  as select from I_EntProjProjectRespPersn as Responsible

  association        to I_BusinessPartner   as _BusinessPartner on $projection.BusinessPartnerUUID = _BusinessPartner.BusinessPartnerUUID

  association        to I_BusinessUserBasic as _BusinessUser    on $projection.BusinessPartnerUUID = _BusinessUser.BusinessPartnerUUID

  association [0..1] to I_BPUsrExternalID   as _BPUsrExternalID on $projection.businesspartner          = _BPUsrExternalID.BusinessPartner
                                                                and(
                                                                  _BPUsrExternalID.BPIdentificationType = 'HCM001'
                                                                  or // HCM001 - Employee ID

                                                                  _BPUsrExternalID.BPIdentificationType = 'HCM030'
                                                                  or // HCM030 - Service Agent

                                                                  _BPUsrExternalID.BPIdentificationType = 'HCM031'
                                                                )    // HCM031 - Freelancer

{
  key Responsible.ProjectUUID,

      Responsible.ReferencedObjectUUID as ProjectSummaryTaskUUID,
      Responsible.BusinessPartnerUUID,
      _BusinessPartner.BusinessPartner,

      _BusinessPartner,
      _BusinessUser,
      _BPUsrExternalID
}