P_RSHAssignment
Assignment Header
P_RSHAssignment is a Composite CDS View that provides data about "Assignment Header" in SAP S/4HANA. It reads from 1 data source (I_RSHProjectAssignment) and exposes 8 fields with key field ProjAssignmentUUID. It has 1 association to related views. Part of development package RSH_CDS_RES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RSHProjectAssignment | ProjectAssignment | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PersonWorkAgreement_1 | _PersonWorkAgreement | _PersonWorkAgreement.PersonWorkAgreement = $projection.EmploymentInternalID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHASSIGN | 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 | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjAssignmentUUID | I_RSHProjectAssignment | ProjAssignmentUUID | |
| ResourceDemandUUID | I_RSHProjectAssignment | ResourceDemandUUID | ||
| EmploymentInternalID | I_RSHProjectAssignment | EmploymentInternalID | ||
| ProjAssignmentStartDate | I_RSHProjectAssignment | ProjAssignmentStartDate | ||
| ProjAssignmentEndDate | I_RSHProjectAssignment | ProjAssignmentEndDate | ||
| AssignedHours | I_RSHProjectAssignment | ProjAssignmentTotalHours | ||
| AuthorizationGroup | ||||
| IsBusinessPurposeCompleted |
@AbapCatalog.sqlViewName: 'PRSHASSIGN'
@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
@ClientHandling.algorithm: #SESSION_VARIABLE
/*
CONTRACT**********************************************************************************************************************
Name: Resource Assignments
Specification: This View returns the details of assignment (header) per resource and resource request
- this means that 0..1 assignment (header) is returned per each combination of resource and resource request
- Durations of Daily Assignments per Resource & Request are added up by selected I-View
- Start & End Date are determined as min & max Start & End of Daily Assignments per Resource & Request by selected
- Assignment GUID refers to assignment header per resource & Request
Requires: No
Ensures: All request specific assigned resources are returned.
Owners: TR
Contributors: TR, JS
Unit Test required Y/N: No
Additional comments NOTE: for now, this view will only return 0..1 assignment per request because multiple supply
line items are not allowed yet on project side!!!!
END OF CONTRACT***************************************************************************************************************
*/
define view P_RSHAssignment
as select from I_RSHProjectAssignment as ProjectAssignment
//Cardinality is correct: 1 work agreement can only be assigned to 1 person (ID) but 1 person (ID) to several work agreements
association [0..1] to I_PersonWorkAgreement_1 as _PersonWorkAgreement on _PersonWorkAgreement.PersonWorkAgreement = $projection.EmploymentInternalID
{
key ProjectAssignment.ProjAssignmentUUID as ProjAssignmentUUID,
ProjectAssignment.ResourceDemandUUID as ResourceDemandUUID,
ProjectAssignment.EmploymentInternalID as EmploymentInternalID,
ProjectAssignment.ProjAssignmentStartDate as ProjAssignmentStartDate,
ProjectAssignment.ProjAssignmentEndDate as ProjAssignmentEndDate,
ProjectAssignment.ProjAssignmentTotalHours as AssignedHours,
_PersonWorkAgreement._WorkforcePerson.AuthorizationGroup,
_PersonWorkAgreement._WorkforcePerson.IsBusinessPurposeCompleted
}
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