I_PersnWrkAgrmtValueHelp

DDL: I_PERSNWRKAGRMTVALUEHELP Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_PersonWorkAgrmtOrglDetails OrgDet inner
I_WorkforcePerson Persn inner
I_PersonWorkAgrmtStatus Status inner

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;