R_EntProjElementPublicSector

DDL: R_ENTPROJELEMENTPUBLICSECTOR Type: view_entity BASIC Package: VDM_PPM_OBJECTS_TP_TASK

Basic View for Public Sector on WBS

R_EntProjElementPublicSector is a Basic CDS View that provides data about "Basic View for Public Sector on WBS" in SAP S/4HANA. It reads from 2 data sources (prps, /s4ppm/task) and exposes 15 fields with key field TaskUUID. It has 2 associations to related views. Part of development package VDM_PPM_OBJECTS_TP_TASK.

Data Sources (2)

SourceAliasJoin Type
prps prps inner
/s4ppm/task task from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_EnterpriseProjectElement _Element $projection.TaskUUID = _Element.ProjectElementUUID
[1..1] R_EnterpriseProject _EnterpriseProject $projection.ProjectUUID = _EnterpriseProject.ProjectUUID

Annotations (10)

NameValueLevelField
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.compositionRoot false view
ObjectModel.representativeKey TaskUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Basic View for Public Sector on WBS view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY TaskUUID /s4ppm/task guid
ProjectUUID /s4ppm/task project_guid
WBSElementInternalID
Fund prps rfund
FundIsFixAssigned prps fund_fix_assign
FunctionalArea prps func_area
FunctionalAreaIsFixAssigned prps func_area_fix_assigned
GrantID prps rgrant_nbr
GrantIsFixAssigned prps grant_fix_assigned
SponsoredProgram prps sponsoredprog
WBSIsAvailyControlControlObj prps is_avc_check_level
ControllingArea
ProfitCenter prps prctr
_EnterpriseProject _EnterpriseProject
_Element _Element
@VDM: {
    viewType: #BASIC,
    lifecycle.contract.type: #SAP_INTERNAL_API
}

@AccessControl: {
    authorizationCheck:     #MANDATORY,
    personalData.blocking:  #BLOCKED_DATA_EXCLUDED
}

@ObjectModel: {
   compositionRoot: false,
   representativeKey: 'TaskUUID',
   alternativeKey: [ { id : 'WBSElementInternalID', uniqueness: #UNIQUE } ],
   usageType: {
     serviceQuality:  #A,
     dataClass:       #MIXED, 
     sizeCategory:    #L
    }
}

@EndUserText.label: 'Basic View for Public Sector on WBS'
define view entity R_EntProjElementPublicSector 
      as select from /s4ppm/task    as task
      inner join   prps             as prps on prps.pspnr = task.pspnr
   
   association [1..1] to R_EnterpriseProjectElement as _Element                  on $projection.TaskUUID     = _Element.ProjectElementUUID
   association [1..1] to R_EnterpriseProject        as _EnterpriseProject        on $projection.ProjectUUID  = _EnterpriseProject.ProjectUUID
{
  key task.guid                       as TaskUUID,
      task.project_guid               as ProjectUUID,
      cast ( task.pspnr as ps_s4_pspnr preserving type ) as WBSElementInternalID,
      
      prps.rfund                      as Fund,
      prps.fund_fix_assign            as FundIsFixAssigned,
      prps.func_area                  as FunctionalArea,
      prps.func_area_fix_assigned     as FunctionalAreaIsFixAssigned,
      prps.rgrant_nbr                 as GrantID,
      prps.grant_fix_assigned         as GrantIsFixAssigned,
      prps.sponsoredprog              as SponsoredProgram,
      prps.is_avc_check_level         as WBSIsAvailyControlControlObj,
      
      cast ( prps.pkokr as ps_s4_kokrs preserving type ) as ControllingArea,
      prps.prctr                                         as ProfitCenter,
      
      _EnterpriseProject,
      _Element
}