P_EngmtProjStaffedResource

DDL: P_ENGMTPROJSTAFFEDRESOURCE SQL: PENGSTFRES Type: view COMPOSITE

P_EngmtProjStaffedResource is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EngmntProjectPlnDataVersion) and exposes 20 fields with key fields EngagementProject, WorkPackage, EngagementProjectResource, ResourceDemandUUID, EngagementProjectServiceOrg. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EngmntProjectPlnDataVersion EngmntProjectPlnDataVersion from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_PersnWrkAgreementDet _PersonWorkAgreementDet $projection.EmploymentInternalID = _PersonWorkAgreementDet.PersonWorkAgreement
[0..1] I_EngagementProjectSrvcOrg _EngagementProjectServiceOrg $projection.EngagementProjectServiceOrg = _EngagementProjectServiceOrg.EngagementProjectServiceOrg

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PENGSTFRES view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY EngagementProject EngagementProject Engmnt Project ID
KEY WorkPackage WorkPackage Plan Item
KEY EngagementProjectResource EngagementProjectResource Resource ID
KEY ResourceDemandUUID ResourceDemandUUID Demand Key
KEY EngagementProjectServiceOrg EngagementProjectServiceOrg Service Org.
KEY EmploymentInternalID EmploymentInternalID WorkForce Assgmt ID
KEY EngagementProjectResourceType EngagementProjectResourceType ResourceTypeID
WorkItem WorkItem Work Item ID
Currency Currency Valuation Crcy
UnitOfMeasure UnitOfMeasure Unit Protected Qty
PlndEffortQty
PlndCostAmt
_Currency _Currency
_EngagementProject _EngagementProject
_EngagementProjectResource _EngagementProjectResource
_PlanSkillTags _PlanSkillTags
_UnitOfMeasure _UnitOfMeasure
_EngagementProjectServiceOrg _EngagementProjectServiceOrg
_PersonWorkAgreementDet _PersonWorkAgreementDet
_EngmntProjResourceType _EngmntProjResourceType

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_EngmtProjStaffedResource.
-- 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: PENGSTFRES

CREATE VIEW P_EngmtProjStaffedResource AS
SELECT
  EngagementProject,
  WorkPackage,
  EngagementProjectResource,
  ResourceDemandUUID,
  EngagementProjectServiceOrg,
  EmploymentInternalID,
  EngagementProjectResourceType,
  WorkItem,
  Currency,
  UnitOfMeasure,
  sum(EngmntProjectPlnDataVersion.PlndEffortQty) AS PlndEffortQty,
  sum(EngmntProjectPlnDataVersion.PlndCostAmt) AS PlndCostAmt
FROM I_EngmntProjectPlnDataVersion AS EngmntProjectPlnDataVersion
LEFT OUTER JOIN I_PersnWrkAgreementDet AS _PersonWorkAgreementDet ON EmploymentInternalID = _PersonWorkAgreementDet.PersonWorkAgreement  -- association [0..*]
LEFT OUTER JOIN I_EngagementProjectSrvcOrg AS _EngagementProjectServiceOrg ON EngagementProjectServiceOrg = _EngagementProjectServiceOrg.EngagementProjectServiceOrg  -- association [0..1]
;