P_PERSONWORKAGREEMENTVR
Retrieve the work agreements of the Person
P_PERSONWORKAGREEMENTVR is a Basic CDS View that provides data about "Retrieve the work agreements of the Person" in SAP S/4HANA. It reads from 2 data sources (wfd_d_assgmt, wfd_d_keymap) and exposes 3 fields with key fields Person, PersonWorkAgreement. It has 10 associations to related views. Part of development package VDM_WFD_WORK_FORCE.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| wfd_d_assgmt | assgmt | inner |
| wfd_d_keymap | keymap | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_PersonWorkAgrmtForKeyDate | _PersonWrkAgrmtForKeyDate | $projection.PersonWorkAgreement = _PersonWrkAgrmtForKeyDate.PersonWorkAgreement |
| [1] | I_BusinessPartner | _BusinessPartner | $projection.Person = _BusinessPartner.BusinessPartner and _BusinessPartner.BusinessPartnerCategory = '1' |
| [1] | I_WorkforcePerson | _WorkforcePerson | $projection.Person = _WorkforcePerson.Person |
| [1..*] | I_PersonWorkAgrmtToExternalID | _PersonWorkAgrmtToExternalID | $projection.PersonWorkAgreement = _PersonWorkAgrmtToExternalID.PersonWorkAgreement |
| [1..*] | I_PersonWorkAgrmtOrglDetails | _PersonWorkAgrmtOrglDetails | _PersonWorkAgrmtOrglDetails.PersonWorkAgreement = $projection.PersonWorkAgreement |
| [1..*] | I_PersonWorkAgrmtStatus | _PersonWorkAgrmtStatus | _PersonWorkAgrmtStatus.PersonWorkAgreement = $projection.PersonWorkAgreement |
| [0..*] | I_PersonWorkAgrmtPlndWrkgTime | _PersonWorkAgrmtPlndWrkgTime | _PersonWorkAgrmtPlndWrkgTime.PersonWorkAgreement = $projection.PersonWorkAgreement |
| [0..*] | I_PersonWorkAgrmtSrvcCostLevel | _PersonWorkAgrmtSrvcCostLevel | _PersonWorkAgrmtSrvcCostLevel.PersonWorkAgreement = $projection.PersonWorkAgreement |
| [0..*] | I_PersWrkAgrmtManagerForKeyDte | _PersWrkAgrmtManagerForKeyDte | $projection.PersonWorkAgreement = _PersWrkAgrmtManagerForKeyDte.PersonWorkAgreement |
| [1] | I_PersonWorkAgreementType | _PersonWorkAgreementType | $projection.PersonWorkAgreement = _PersonWorkAgreementType.PersonWorkAgreement |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPERWKAGRMVR | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | Person | view | |
| VDM.private | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Person | wfd_d_keymap | business_partner_id | Busn. Partner |
| KEY | PersonWorkAgreement | wfd_d_keymap | workforce_assgmt_id | WorkForce Assgmt ID |
| AuthorizationGroup | _BusinessPartner | AuthorizationGroup | AuthorizGroup |
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_PERSONWORKAGREEMENTVR.
-- 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: PPERWKAGRMVR
CREATE VIEW P_PERSONWORKAGREEMENTVR AS
SELECT
keymap.business_partner_id AS Person,
keymap.workforce_assgmt_id AS PersonWorkAgreement,
_BusinessPartner.AuthorizationGroup AS AuthorizationGroup
FROM wfd_d_keymap AS keymap
INNER JOIN wfd_d_assgmt AS assgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PersonWorkAgrmtForKeyDate AS _PersonWrkAgrmtForKeyDate ON PersonWorkAgreement = _PersonWrkAgrmtForKeyDate.PersonWorkAgreement -- association [1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON Person = _BusinessPartner.BusinessPartner AND _BusinessPartner.BusinessPartnerCategory = '1' -- association [1]
LEFT OUTER JOIN I_WorkforcePerson AS _WorkforcePerson ON Person = _WorkforcePerson.Person -- association [1]
LEFT OUTER JOIN I_PersonWorkAgrmtToExternalID AS _PersonWorkAgrmtToExternalID ON PersonWorkAgreement = _PersonWorkAgrmtToExternalID.PersonWorkAgreement -- association [1..*]
LEFT OUTER JOIN I_PersonWorkAgrmtOrglDetails AS _PersonWorkAgrmtOrglDetails ON _PersonWorkAgrmtOrglDetails.PersonWorkAgreement = PersonWorkAgreement -- association [1..*]
LEFT OUTER JOIN I_PersonWorkAgrmtStatus AS _PersonWorkAgrmtStatus ON _PersonWorkAgrmtStatus.PersonWorkAgreement = PersonWorkAgreement -- association [1..*]
LEFT OUTER JOIN I_PersonWorkAgrmtPlndWrkgTime AS _PersonWorkAgrmtPlndWrkgTime ON _PersonWorkAgrmtPlndWrkgTime.PersonWorkAgreement = PersonWorkAgreement -- association [0..*]
LEFT OUTER JOIN I_PersonWorkAgrmtSrvcCostLevel AS _PersonWorkAgrmtSrvcCostLevel ON _PersonWorkAgrmtSrvcCostLevel.PersonWorkAgreement = PersonWorkAgreement -- association [0..*]
LEFT OUTER JOIN I_PersWrkAgrmtManagerForKeyDte AS _PersWrkAgrmtManagerForKeyDte ON PersonWorkAgreement = _PersWrkAgrmtManagerForKeyDte.PersonWorkAgreement -- association [0..*]
LEFT OUTER JOIN I_PersonWorkAgreementType AS _PersonWorkAgreementType ON PersonWorkAgreement = _PersonWorkAgreementType.PersonWorkAgreement -- association [1]
;
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