C_EngmntProjProjectManagerVH

DDL: C_ENGMNTPROJPROJECTMANAGERVH SQL: CENGPROJPMVH Type: view CONSUMPTION Package: CPD_CDS

Value Help for project managers

C_EngmntProjProjectManagerVH is a Consumption CDS View that provides data about "Value Help for project managers" in SAP S/4HANA. It reads from 2 data sources (I_PersonWorkAgreement_1, I_PersonWorkAgrmtStatus) and exposes 19 fields with key field ProjectManager. Part of development package CPD_CDS.

Data Sources (2)

SourceAliasJoin Type
I_PersonWorkAgreement_1 employment left_outer
I_PersonWorkAgrmtStatus PersonWorkAgrmtStatus left_outer

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CENGPROJPMVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Value Help for project managers view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #VALUE_HELP view
Consumption.valueHelpDefault.fetchValues #AUTOMATICALLY_WHEN_DISPLAYED view
Search.searchable true view
Consumption.ranked true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ProjectManager
ProjectManagerName
LastName Last Name
FirstName First Name
PersonExternalID WorkforcePerson PersonExternalID Person ID
UserID BusinessUser UserID
AuthorizationGroup WorkforcePerson AuthorizationGroup
IsBusinessPurposeCompleted WorkforcePerson IsBusinessPurposeCompleted
DataControllerSet
DataController1
DataController2
DataController3
DataController4
DataController5
DataController6
DataController7
DataController8
DataController9
DataController10
@AbapCatalog.sqlViewName: 'CENGPROJPMVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED

@EndUserText.label: 'Value Help for project managers'

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION

@ObjectModel.dataCategory: #VALUE_HELP
@Consumption.valueHelpDefault.fetchValues: #AUTOMATICALLY_WHEN_DISPLAYED
@Search.searchable: true
@Consumption.ranked: true

@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L

@Consumption.dbHints: [ 'USE_HEX_PLAN' ]

define view C_EngmntProjProjectManagerVH
  as select distinct from  I_WorkforcePerson       as WorkforcePerson

    left outer join        I_PersonWorkAgreement_1 as employment            on WorkforcePerson.Person = employment.Person

    left outer join        I_PersonWorkAgrmtStatus as PersonWorkAgrmtStatus on  employment.PersonWorkAgreement = PersonWorkAgrmtStatus.PersonWorkAgreement
                                                                            and PersonWorkAgrmtStatus.EndDate  >= $session.system_date //current and future employments

      left outer to one join I_BusinessUserBasic     as BusinessUser        on   WorkforcePerson.BusinessPartnerUUID = BusinessUser.BusinessPartnerUUID
{
      @ObjectModel.text.element: 'ProjectManagerName'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#HIGH
  key cast(WorkforcePerson.Person as /cpd/ss_pm preserving type )              as ProjectManager,  
      @Semantics.text: true
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#LOW
      cast(WorkforcePerson.PersonFullName as /cpd/ss_pm_name preserving type ) as ProjectManagerName,
      @EndUserText.label: 'Last Name'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#LOW
      WorkforcePerson._BusinessPartner.BPLastNameSearchHelp                    as LastName,
      @EndUserText.label: 'First Name'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#LOW
      WorkforcePerson._BusinessPartner.BPFirstNameSearchHelp                   as FirstName,
      @EndUserText.label: 'Person ID'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#LOW
      WorkforcePerson.PersonExternalID,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking:#LOW
      BusinessUser.UserID,
      @UI.hidden: true
      WorkforcePerson.AuthorizationGroup,
      @UI.hidden: true
      WorkforcePerson.IsBusinessPurposeCompleted,
      /* Code snippet for DDL */
     //added only for DCL check

     @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataControllerSet  as DataControllerSet,                                                                                                                                                                      
      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController1 as DataController1,                                                                                                                                                                      
      //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController2 as DataController2,
      //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController3 as DataController3,
     //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController4 as DataController4,
     //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController5 as DataController5,                                                                                                                                                                       
      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController6 as DataController6,                                                                                                                                                                        
      //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController7 as DataController7,                                                                                                                                                                      
     //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController8 as DataController8,
     //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
     WorkforcePerson._BusinessPartner.DataController9 as DataController9,                                                                                                                                   
      //added only for DCL check

      @Consumption.hidden:true
      @UI.hidden:true
      WorkforcePerson._BusinessPartner.DataController10 as DataController10
}
where
  WorkAgreementStatus = '1'