P_RSHRESOURCEWORKAGREEMENT
P_RSHRESOURCEWORKAGREEMENT is a CDS View in S/4HANA. 2 CDS views read from this table.
CDS Views using this table (2)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| P_RSHResourceAuthData | view | from | COMPOSITE | |
| P_RSHResourceData | view | from | COMPOSITE |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PRSHWRKAGRMENT'
@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 aka the new EmploymentDetailsCurrent
Specification: This view returns the First WorkAgreement / Employment TimeSlice for a given Time Period.
Requires: Parameters Start and EndDate
Ensures: First WorkAgreement TimeSlice is returned
Owners: TR
Contributors: TR
Unit Test required Y/N: Yes
Additional comments None
END OF CONTRACT***************************************************************************************************************
*/
define view P_RSHResourceWorkAgreement
with parameters
P_StartDate : syst_datum,
P_EndDate : syst_datum
as select from I_PersonWorkAgrmtOrglDetails {
//I_PersonWorkAgrmtOrglDetails
key PersonWorkAgreement,
key min(StartDate) as StartDate
}
where
StartDate <= $parameters.P_EndDate
and EndDate >= $parameters.P_StartDate
group by
PersonWorkAgreement
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PERSONWORKAGRMTORGLDETAILS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/