P_RSHRESOURCESTATUS

CDS View

Status of Work Agreement of a resource

P_RSHRESOURCESTATUS is a CDS View in S/4HANA. Status of Work Agreement of a resource. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_RSHResourceData view inner COMPOSITE Resource Data like Cost Center assignnt
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PRSHRESSTATUS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@VDM.viewType: #COMPOSITE

/*
CONTRACT**********************************************************************************************************************

Name:                       Resource Work Agreement Status determination
Specification:              This view returns the First WorkAgreement-Status Information for given time period.
Requires:                   Parameters Start and EndDate
Ensures:                    First WorkAgreement Status TimeSlice is returned
Owners:                     TR
Contributors:               TR
Unit Test required Y/N:     Yes
Additional comments         None

END OF CONTRACT***************************************************************************************************************
*/


define view P_RSHResourceStatus 
     with parameters
    P_StartDate : syst_datum,
    P_EndDate   : syst_datum
        
    as select from I_PersonWorkAgrmtStatus {
    
  
    key PersonWorkAgreement, 
    key min(StartDate) as StartDate
           
   
} 
 where
      StartDate <= $parameters.P_EndDate
  and EndDate   >= $parameters.P_StartDate
  
 group by 
  PersonWorkAgreement