P_EngmntProjStfngSrchByRole
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)
| Source | Alias | Join 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)
| Name | Type | Default |
|---|---|---|
| P_StartDate | dats | |
| P_EndDate | dats |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA