P_MyProjectBillingElements2

DDL: P_MYPROJECTBILLINGELEMENTS2 Type: view_entity COMPOSITE Package: VDM_PROJECTBILLINGELEMENT

Project Billing Elements by UserID (2)

P_MyProjectBillingElements2 is a Composite CDS View that provides data about "Project Billing Elements by UserID (2)" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentCompletePartners, I_WorkForcePersonMappings) and exposes 2 fields with key field ProjectBillingElementUUID. Part of development package VDM_PROJECTBILLINGELEMENT.

Data Sources (2)

SourceAliasJoin Type
I_SDDocumentCompletePartners Partners inner
I_WorkForcePersonMappings WorkForcePerson inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Project Billing Elements by UserID (2) view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ProjectBillingElementUUID ProjectBillingElement ProjectBillingElementUUID
UserID
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Project Billing Elements by UserID (2)'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
}
@VDM.viewType: #COMPOSITE
@VDM.private:true

define view entity P_MyProjectBillingElements2
  as select distinct from I_ProjectBillingElement      as ProjectBillingElement
    inner join            I_SDDocumentCompletePartners as Partners        on  ProjectBillingElement.SalesDocument    = Partners.SDDocument
                                                                          and Partners.Personnel                     is not initial
                                                                          and (
                                                                             ProjectBillingElement.SalesDocumentItem = Partners.SDDocumentItem
                                                                             or Partners.SDDocumentItem              is initial
                                                                           )
    inner join            I_WorkForcePersonMappings    as WorkForcePerson on  Partners.Personnel     = WorkForcePerson.WorkforceAssignment
                                                                          and WorkForcePerson.UserID = $session.user

{
  key ProjectBillingElement.ProjectBillingElementUUID,
      $session.user as UserID
}