P_EngmntProjStfngSrchByRole

DDL: P_ENGMNTPROJSTFNGSRCHBYROLE SQL: PENGPRJSRCHROLE Type: view CONSUMPTION

P_EngmntProjStfngSrchByRole is a Consumption CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 29 fields with key fields Person, PersonWorkAgreement, WorkforceAssgmtStartDate, WorkforceAssgmtEndDate, EngmntProjectDeliveryOrg.

Data Sources (8)

SourceAliasJoin Type
I_EngagementProjectSrvcOrg EngagementProjectSrvOrg inner
P_EngmntPlandataResource EngPlandataRes from
I_EngagementProjectSrvcOrgDets EngProjectSrvcOrgDets inner
I_PersonWorkAgreement_1 PersonWorkAgreement_1 inner
I_PersnWrkAgrmtRoleForOPg PersonWorkAgreementRole inner
I_PersonWorkAgrmtOrglDetails PersonWorkAgrmtOrglDetails inner
I_PersonWorkAgrmtStatus PersonWorkAgrmtStatus inner
I_WorkforcePerson WorkforcePerson inner

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PENGPRJSRCHROLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY Person I_PersonWorkAgreement_1 Person Person/ Farm/ Field
KEY PersonWorkAgreement I_PersonWorkAgreement_1 PersonWorkAgreement Personnel No.
KEY WorkforceAssgmtStartDate I_PersonWorkAgrmtStatus StartDate Valid From
KEY WorkforceAssgmtEndDate I_PersonWorkAgrmtStatus EndDate Term to
KEY EngmntProjectDeliveryOrg I_EngagementProjectSrvcOrgDets EngagementProjectServiceOrg Service Org.
KEY CostCenter I_PersonWorkAgrmtOrglDetails CostCenter Cost Center
KEY ServiceCostLevel PersonWorkAgrmtSrvcCostLevel ServiceCostLevel Service Cost Level
KEY StartDate PersonWorkAgrmtSrvcCostLevel StartDate Valid From
KEY EngagementProjectResource P_EngmntPlandataResource EngagementProjectResource Resource ID
EngagementProjResourceText P_EngmntPlandataResource EngagementProjResourceText
BusinessPartnerRole I_PersnWrkAgrmtRoleForOPg BusinessPartnerRole BP Role
CompanyCode I_PersonWorkAgrmtOrglDetails CompanyCode Receiver Company Code
EmployeeFullName I_PersonWorkAgreement_1 PersonFullName Full Name
PersonWorkAgreementExternalID
WorkforcePersonImageURL WorkforcePersonImageURL WorkforcePersonImageURL
WorkforcePersonSkillTagsTxt EmployeeskillTags WorkforcePersonSkillTagName
AuthorizationGroup I_PersonWorkAgreement_1 AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted I_WorkforcePerson IsBusinessPurposeCompleted Purpose Completed
DataControllerSet
DataController1
DataController2
DataController3
DataController4
DataController5
DataController6
DataController7
DataController8
DataController9
DataController10

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_EngmntProjStfngSrchByRole.
-- 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: PENGPRJSRCHROLE
-- Parameters: P_StartDate : dats, P_EndDate : dats

CREATE VIEW P_EngmntProjStfngSrchByRole AS
SELECT
  PersonWorkAgreement_1.Person AS Person,
  PersonWorkAgreement_1.PersonWorkAgreement AS PersonWorkAgreement,
  PersonWorkAgrmtStatus.StartDate AS WorkforceAssgmtStartDate,
  PersonWorkAgrmtStatus.EndDate AS WorkforceAssgmtEndDate,
  EngProjectSrvcOrgDets.EngagementProjectServiceOrg AS EngmntProjectDeliveryOrg,
  PersonWorkAgrmtOrglDetails.CostCenter AS CostCenter,
  PersonWorkAgrmtSrvcCostLevel.ServiceCostLevel AS ServiceCostLevel,
  PersonWorkAgrmtSrvcCostLevel.StartDate AS StartDate,
  EngPlandataRes.EngagementProjectResource AS EngagementProjectResource,
  EngPlandataRes.EngagementProjResourceText AS EngagementProjResourceText,
  PersonWorkAgreementRole.BusinessPartnerRole AS BusinessPartnerRole,
  PersonWorkAgrmtOrglDetails.CompanyCode AS CompanyCode,
  PersonWorkAgreement_1.PersonFullName AS EmployeeFullName,
  cast( WorkforcePerson.PersonExternalID as comm_id_long ) AS PersonWorkAgreementExternalID,
  WorkforcePersonImageURL.WorkforcePersonImageURL AS WorkforcePersonImageURL,
  EmployeeskillTags.WorkforcePersonSkillTagName AS WorkforcePersonSkillTagsTxt,
  PersonWorkAgreement_1.AuthorizationGroup AS AuthorizationGroup,
  WorkforcePerson.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  PersonWorkAgreement_1._BusinessPartner.DataControllerSet AS DataControllerSet,
  PersonWorkAgreement_1._BusinessPartner.DataController1 AS DataController1,
  PersonWorkAgreement_1._BusinessPartner.DataController2 AS DataController2,
  PersonWorkAgreement_1._BusinessPartner.DataController3 AS DataController3,
  PersonWorkAgreement_1._BusinessPartner.DataController4 AS DataController4,
  PersonWorkAgreement_1._BusinessPartner.DataController5 AS DataController5,
  PersonWorkAgreement_1._BusinessPartner.DataController6 AS DataController6,
  PersonWorkAgreement_1._BusinessPartner.DataController7 AS DataController7,
  PersonWorkAgreement_1._BusinessPartner.DataController8 AS DataController8,
  PersonWorkAgreement_1._BusinessPartner.DataController9 AS DataController9,
  PersonWorkAgreement_1._BusinessPartner.DataController10 AS DataController10
FROM P_EngmntPlandataResource AS EngPlandataRes
INNER JOIN I_PersonWorkAgreement_1 AS PersonWorkAgreement_1 ON /* join condition not captured in parsed metadata */
INNER JOIN I_PersonWorkAgrmtStatus AS PersonWorkAgrmtStatus ON /* join condition not captured in parsed metadata */
INNER JOIN I_WorkforcePerson AS WorkforcePerson ON /* join condition not captured in parsed metadata */
INNER JOIN I_PersnWrkAgrmtRoleForOPg AS PersonWorkAgreementRole ON /* join condition not captured in parsed metadata */
INNER JOIN I_PersonWorkAgrmtOrglDetails AS PersonWorkAgrmtOrglDetails ON /* join condition not captured in parsed metadata */
INNER JOIN I_EngagementProjectSrvcOrgDets AS EngProjectSrvcOrgDets ON /* join condition not captured in parsed metadata */
INNER JOIN I_EngagementProjectSrvcOrg AS EngagementProjectSrvOrg ON /* join condition not captured in parsed metadata */
;