P_RSHResourceStatus
Status of Work Agreement of a resource
P_RSHResourceStatus is a Composite CDS View that provides data about "Status of Work Agreement of a resource" in SAP S/4HANA. It reads from 1 data source (I_PersonWorkAgrmtStatus) and exposes 2 fields with key fields PersonWorkAgreement, StartDate. Part of development package RSH_CDS_RES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PersonWorkAgrmtStatus | I_PersonWorkAgrmtStatus | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | syst_datum | |
| P_EndDate | syst_datum |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PRSHRESSTATUS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonWorkAgreement | PersonWorkAgreement | ||
| KEY | StartDate |
@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
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA