P_RSHResource
RSH Resource
P_RSHResource is a Composite CDS View that provides data about "RSH Resource" in SAP S/4HANA. It reads from 2 data sources (P_RSHResourceData, I_WorkforcePerson) and exposes 29 fields with key field EmploymentInternalID. It has 2 associations to related views. Part of development package RSH_CDS_RES.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RSHResourceData | P_RSHResourceData | from |
| I_WorkforcePerson | Person | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | syst_datum | |
| P_EndDate | syst_datum |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_RSHResourceSkilltags | _Skilltags | $projection.Person = _Skilltags.Person |
| [0..1] | I_RSHResourceServiceOrg | _serviceorg | $projection.CostCenter = _serviceorg.AssignedOrganisation and _serviceorg.CompanyCode = $projection.CompanyCode |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHRESOURCE | 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 (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EmploymentInternalID | P_RSHResourceData | EmploymentInternalID | |
| StartDate | P_RSHResourceData | StartDate | ||
| EndDate | P_RSHResourceData | EndDate | ||
| WorkAgreementStatus | P_RSHResourceData | WorkAgreementStatus | ||
| CompanyCode | P_RSHResourceData | CompanyCode | ||
| CostCenter | P_RSHResourceData | CostCenter | ||
| Job | P_RSHResourceData | Job | ||
| OrganizationalUnit | P_RSHResourceData | OrganizationalUnit | ||
| PersonWorkAgrmtAuthznGrpg | P_RSHResourceData | PersonWorkAgrmtAuthznGrpg | ||
| Person | I_WorkforcePerson | Person | ||
| PersonExternalID | PersonExternalID | |||
| FirstName | FirstName | |||
| LastName | LastName | |||
| MiddleName | MiddleName | |||
| AdditionalLastName | AdditionalLastName | |||
| PersonFullName | PersonFullName | |||
| BusinessPartnerUUID | BusinessPartnerUUID | |||
| AuthorizationGroup | AuthorizationGroup | |||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _OrganizationalUnitText | _OrganizationalUnitText | |||
| _PersonWorkAgrmtJobText | _PersonWorkAgrmtJobText | |||
| _BusinessPartner | _BusinessPartner | |||
| _PersonWorkAgreement | _PersonWorkAgreement_1 | |||
| _ServicePerformerToSupplier | _ServicePerformerToSupplier | |||
| _WorkplaceAddress | _WorkplaceAddress | |||
| _Skilltags | _Skilltags | |||
| _serviceorg | _serviceorg |
@AbapCatalog.sqlViewName: 'PRSHRESOURCE'
@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: THE Central RSH Resource View
Specification: This view returns all relevant key data of resources, based on the first employment of the given time period
Requires: Parameters Start and EndDate
Ensures: All key and base resource data is returned.
Owners: TR
Contributors: TR
Unit Test required Y/N: Yes
Additional comments None
END OF CONTRACT***************************************************************************************************************
*/
define view P_RSHResource
with parameters
P_StartDate : syst_datum,
P_EndDate : syst_datum
as select from P_RSHResourceData( P_StartDate: $parameters.P_StartDate, P_EndDate: $parameters.P_EndDate )
inner join I_WorkforcePerson as Person on Person.Person = P_RSHResourceData.Person
association [0..1] to P_RSHResourceSkilltags as _Skilltags on $projection.Person = _Skilltags.Person
association [0..1] to I_RSHResourceServiceOrg as _serviceorg on $projection.CostCenter = _serviceorg.AssignedOrganisation and _serviceorg.CompanyCode = $projection.CompanyCode
{
//P_RSHResourceData
key P_RSHResourceData.EmploymentInternalID,
P_RSHResourceData.StartDate,
P_RSHResourceData.EndDate,
P_RSHResourceData.WorkAgreementStatus,
P_RSHResourceData.CompanyCode,
P_RSHResourceData.CostCenter,
P_RSHResourceData.Job,
P_RSHResourceData.OrganizationalUnit,
P_RSHResourceData.PersonWorkAgrmtAuthznGrpg,
//Person
Person.Person,
PersonExternalID,
FirstName,
LastName,
MiddleName,
AdditionalLastName,
PersonFullName,
BusinessPartnerUUID,
AuthorizationGroup,
IsBusinessPurposeCompleted,
/* Associations */
//P_RSHResourceData
_CompanyCode,
_CostCenter,
_OrganizationalUnitText,
_PersonWorkAgrmtJobText,
//Person
_BusinessPartner,
_PersonWorkAgreement_1 as _PersonWorkAgreement,
_ServicePerformerToSupplier,
_WorkplaceAddress,
_Skilltags,
_serviceorg
}
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