I_PersnWrkAgrmtValueHelp
Work Agreements of a Workforce Person
I_PersnWrkAgrmtValueHelp is a Composite CDS View that provides data about "Work Agreements of a Workforce Person" in SAP S/4HANA. It reads from 3 data sources (I_PersonWorkAgrmtOrglDetails, I_WorkforcePerson, I_PersonWorkAgrmtStatus) and exposes 32 fields with key fields PersonWorkAgreement, StartDateendasStartDate, EndDateendasEndDate.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PersonWorkAgrmtOrglDetails | OrgDet | inner |
| I_WorkforcePerson | Persn | inner |
| I_PersonWorkAgrmtStatus | Status | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Work Agreements of a Workforce Person | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.representativeKey | PersonWorkAgreement | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonWorkAgreement | WrkAgrmt | PersonWorkAgreement | Personnel Number |
| KEY | StartDateendasStartDate | |||
| KEY | EndDateendasEndDate | |||
| Person | WrkAgrmt | Person | Person/ Farm/ Field | |
| LastName | I_WorkforcePerson | LastName | Last Name | |
| FamilyName | Family Name | |||
| FirstName | I_WorkforcePerson | FirstName | First Name | |
| GivenName | Given Name | |||
| PersonExternalID | I_WorkforcePerson | PersonExternalID | Logical System | |
| UserID | User | UserID | User Name | |
| PersonFullName | I_WorkforcePerson | PersonFullName | Full Name | |
| CompanyCode | I_PersonWorkAgrmtOrglDetails | CompanyCode | Receiver Company Code | |
| CompanyCodeName | ||||
| CostCenter | I_PersonWorkAgrmtOrglDetails | CostCenter | Cost Center | |
| CostCenterName | ||||
| Job | I_PersonWorkAgrmtOrglDetails | Job | Undefined range (can be used for patch levels) | |
| JobName | Job Name | |||
| OrganizationalUnitName | Organizational Unit Name | |||
| PersonWorkAgrmtAuthznGrpg | I_PersonWorkAgrmtOrglDetails | PersonWorkAgrmtAuthznGrpg | Org.key | |
| AuthorizationGroup | ||||
| 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 I_PersnWrkAgrmtValueHelp.
-- 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.
CREATE VIEW I_PersnWrkAgrmtValueHelp AS
SELECT
WrkAgrmt.PersonWorkAgreement AS PersonWorkAgreement,
case when Status.StartDate < OrgDet.StartDate then OrgDet.StartDate else Status.StartDate end as StartDate AS StartDateendasStartDate,
case when Status.EndDate > OrgDet.EndDate then OrgDet.EndDate else Status.EndDate end as EndDate AS EndDateendasEndDate,
WrkAgrmt.Person AS Person,
Persn.LastName AS LastName,
Persn._BusinessPartner.BPLastNameSearchHelp AS FamilyName,
Persn.FirstName AS FirstName,
Persn._BusinessPartner.BPFirstNameSearchHelp AS GivenName,
Persn.PersonExternalID AS PersonExternalID,
User.UserID AS UserID,
Persn.PersonFullName AS PersonFullName,
OrgDet.CompanyCode AS CompanyCode,
OrgDet._CompanyCode.CompanyCodeName AS CompanyCodeName,
OrgDet.CostCenter AS CostCenter,
OrgDet._CostCenter._Text[1: Language = $session.system_language ].CostCenterName AS CostCenterName,
OrgDet.Job AS Job,
OrgDet._PersonWorkAgrmtJobText[1:Language = $session.system_language].JobName AS JobName,
OrgDet._OrganizationalUnitText[1:Language = $session.system_language].OrganizationalUnitName AS OrganizationalUnitName,
OrgDet.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg,
Persn. AuthorizationGroup AS AuthorizationGroup,
Persn.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
Persn._BusinessPartner.DataControllerSet AS DataControllerSet,
Persn._BusinessPartner.DataController1 AS DataController1,
Persn._BusinessPartner.DataController2 AS DataController2,
Persn._BusinessPartner.DataController3 AS DataController3,
Persn._BusinessPartner.DataController4 AS DataController4,
Persn._BusinessPartner.DataController5 AS DataController5,
Persn._BusinessPartner.DataController6 AS DataController6,
Persn._BusinessPartner.DataController7 AS DataController7,
Persn._BusinessPartner.DataController8 AS DataController8,
Persn._BusinessPartner.DataController9 AS DataController9,
Persn._BusinessPartner.DataController10 AS DataController10
INNER JOIN I_PersonWorkAgrmtOrglDetails AS OrgDet ON /* join condition not captured in parsed metadata */
INNER JOIN I_PersonWorkAgrmtStatus AS Status ON /* join condition not captured in parsed metadata */
INNER JOIN I_WorkforcePerson AS Persn 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