I_RSHProjectAssignmentHrs
Resource Assignments
I_RSHProjectAssignmentHrs is a Composite CDS View that provides data about "Resource Assignments" in SAP S/4HANA. It reads from 1 data source (I_RSHProjectAssignment) and exposes 21 fields with key field ProjAssignmentUUID. It has 4 associations to related views. Part of development package RSH_CDS_PROJECT_ASG.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RSHProjectAssignment | ProjectAssignment | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_RSHResourceTimeSlice | _Resource | _Resource.EmploymentInternalID = $projection.EmploymentInternalID and _Resource.StartDate <= $projection.ProjAssignmentStartDate and _Resource.EndDate >= $projection.ProjAssignmentStartDate |
| [0..1] | P_RSHStaffingRequestDetails | _Request | _Request.ResourceDemandUUID = $projection.ResourceDemandUUID |
| [0..*] | I_RSHProjectAssignmentDailyHrs | _ProjectAssignmentPerDay | _ProjectAssignmentPerDay.ProjAssignmentUUID = $projection.ProjAssignmentUUID |
| [0..1] | I_EngmntProjPlanConfig | _EngmtProjPlanConfig | _EngmtProjPlanConfig.ProjectProfileCode = 'P001' |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRSHPRJASGPHR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Resource Assignments | view |
Fields (21)
| 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 | ||
| ProjAssignmentTotalHours | I_RSHProjectAssignment | ProjAssignmentTotalHours | ||
| SourceOfSupply | I_RSHProjectAssignment | SourceOfSupply | ||
| CompanyCode | _Resource | CompanyCode | ||
| CostCenter | _Resource | CostCenter | ||
| AuthorizationGroup | _Resource | AuthorizationGroup | ||
| IsBusinessPurposeCompleted | _Resource | IsBusinessPurposeCompleted | ||
| ServiceOrganization | _Request | ServiceOrganization | ||
| EmployeeRequestHdrSrvOrg | _Request | EmployeeRequestHdrSrvOrg | ||
| EmployeeRequestDelivOrg | _Request | EmployeeRequestDelivOrg | ||
| ProjectVisibility | _Request | ProjectVisibility | ||
| IsBusPrpsCmpltdCustomer | ||||
| CustomerAuthznGrp | ||||
| IsBusPrpsCmpltdProjectManager | ||||
| ProjectManagerAuthznGrp | ||||
| _ProjectAssignmentPerDay | _ProjectAssignmentPerDay | |||
| ExternalStaffingIsActive | _EngmtProjPlanConfig | ExternalStaffingIsActive |
@AbapCatalog.sqlViewName: 'IRSHPRJASGPHR'
@AccessControl.privilegedAssociations: [ '_ProjectAssignmentPerDay' ]
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE,#CDS_MODELING_ASSOCIATION_TARGET,#EXTRACTION_DATA_SOURCE]
@Analytics.dataExtraction.enabled: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.personalData.blockingIndicator: ['IsBusinessPurposeCompleted','IsBusPrpsCmpltdProjectManager','IsBusPrpsCmpltdCustomer']
@EndUserText.label: 'Resource Assignments'
/*
CONTRACT**********************************************************************************************************************
Name: RELEASED CDS VIEW for Project Assignment
Specification: Read Only CDS View for Customer use in View Builder to read Assginment Data
Requires: NA
Ensures: NA
Owners: TR
Contributors: NA
Unit Test required Y/N: N
Additional comments None
END OF CONTRACT***************************************************************************************************************
*/
define view I_RSHProjectAssignmentHrs
as select from I_RSHProjectAssignment as ProjectAssignment
association [0..*] to P_RSHResourceTimeSlice as _Resource on _Resource.EmploymentInternalID = $projection.EmploymentInternalID
and _Resource.StartDate <= $projection.ProjAssignmentStartDate
and _Resource.EndDate >= $projection.ProjAssignmentStartDate
association [0..1] to P_RSHStaffingRequestDetails as _Request on _Request.ResourceDemandUUID = $projection.ResourceDemandUUID
association [0..*] to I_RSHProjectAssignmentDailyHrs as _ProjectAssignmentPerDay on _ProjectAssignmentPerDay.ProjAssignmentUUID = $projection.ProjAssignmentUUID
association [0..1] to I_EngmntProjPlanConfig as _EngmtProjPlanConfig on _EngmtProjPlanConfig.ProjectProfileCode = 'P001'
{
key ProjectAssignment.ProjAssignmentUUID as ProjAssignmentUUID,
ProjectAssignment.ResourceDemandUUID as ResourceDemandUUID,
ProjectAssignment.EmploymentInternalID as EmploymentInternalID,
ProjectAssignment.ProjAssignmentStartDate as ProjAssignmentStartDate,
ProjectAssignment.ProjAssignmentEndDate as ProjAssignmentEndDate,
ProjectAssignment.ProjAssignmentTotalHours as ProjAssignmentTotalHours,
ProjectAssignment.SourceOfSupply as SourceOfSupply,
// Resource Specific Data for DCL
_Resource.CompanyCode,
_Resource.CostCenter,
@Consumption.hidden: true
_Resource.AuthorizationGroup,
@Consumption.hidden: true
_Resource.IsBusinessPurposeCompleted,
// Request Specific Data for DCL
_Request.ServiceOrganization,
_Request.EmployeeRequestHdrSrvOrg,
_Request.EmployeeRequestDelivOrg,
_Request.ProjectVisibility,
@Consumption.hidden: true
_Request._Customer.IsBusinessPurposeCompleted as IsBusPrpsCmpltdCustomer,
@Consumption.hidden: true
_Request._Customer.AuthorizationGroup as CustomerAuthznGrp,
@Consumption.hidden: true
_Request._ProjectManager._WorkforcePerson.IsBusinessPurposeCompleted as IsBusPrpsCmpltdProjectManager,
@Consumption.hidden: true
_Request._ProjectManager._WorkforcePerson.AuthorizationGroup as ProjectManagerAuthznGrp,
// Association to Per Day Assignments
_ProjectAssignmentPerDay,
@Semantics.booleanIndicator
_EngmtProjPlanConfig.ExternalStaffingIsActive as ExternalStaffingIsActive
}
where _EngmtProjPlanConfig.ExternalStaffingIsActive = ''
or _EngmtProjPlanConfig.ExternalStaffingIsActive = ' '
or _EngmtProjPlanConfig.ExternalStaffingIsActive is null
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