P_RSHAssignment

DDL: P_RSHASSIGNMENT SQL: PRSHASSIGN Type: view COMPOSITE

P_RSHAssignment is a Composite CDS View 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.

Data Sources (1)

SourceAliasJoin Type
I_RSHProjectAssignment ProjectAssignment from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PersonWorkAgreement_1 _PersonWorkAgreement _PersonWorkAgreement.PersonWorkAgreement = $projection.EmploymentInternalID

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY ProjAssignmentUUID I_RSHProjectAssignment ProjAssignmentUUID UUID
ResourceDemandUUID I_RSHProjectAssignment ResourceDemandUUID Demand Key
EmploymentInternalID I_RSHProjectAssignment EmploymentInternalID WorkForce Assgmt ID
ProjAssignmentStartDate I_RSHProjectAssignment ProjAssignmentStartDate
ProjAssignmentEndDate I_RSHProjectAssignment ProjAssignmentEndDate
AssignedHours I_RSHProjectAssignment ProjAssignmentTotalHours Total Duration
AuthorizationGroup
IsBusinessPurposeCompleted

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_RSHAssignment.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PRSHASSIGN

CREATE VIEW P_RSHAssignment AS
SELECT
  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 AS AuthorizationGroup,
  _PersonWorkAgreement._WorkforcePerson.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_RSHProjectAssignment AS ProjectAssignment
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON _PersonWorkAgreement.PersonWorkAgreement = EmploymentInternalID  -- association [0..1]
;