Deprecated
This CDS view is deprecated in S/4HANA. Use I_PersonWorkAgreement_1 instead. View all deprecated CDS views →

P_N_PersonWorkAgreement

DDL: P_N_PERSONWORKAGREEMENT SQL: PNPERSWKAGRMT Type: view BASIC Package: VDM_WFD_WORK_FORCE

Retrieve the work agreements of the Person

P_N_PersonWorkAgreement 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 13 fields with key fields Person, PersonWorkAgreement. It has 10 associations to related views. Part of development package VDM_WFD_WORK_FORCE.

Data Sources (2)

SourceAliasJoin Type
wfd_d_assgmt assgmt inner
wfd_d_keymap keymap from

Associations (10)

CardinalityTargetAliasCondition
[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..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 (15)

NameValueLevelField
AbapCatalog.sqlViewName PNPERSWKAGRMT view
VDM.private true 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
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey Person view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_PersonWorkAgreement_1 view

Fields (13)

KeyFieldSource TableSource FieldDescription
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
_PersonWrkAgrmtForKeyDate _PersonWrkAgrmtForKeyDate
_PersonWorkAgrmtToExternalID _PersonWorkAgrmtToExternalID
_BusinessPartner _BusinessPartner
_WorkforcePerson _WorkforcePerson
_PersonWorkAgrmtOrglDetails _PersonWorkAgrmtOrglDetails
_PersonWorkAgrmtStatus _PersonWorkAgrmtStatus
_PersonWorkAgrmtPlndWrkgTime _PersonWorkAgrmtPlndWrkgTime
_PersonWorkAgrmtSrvcCostLevel _PersonWorkAgrmtSrvcCostLevel
_PersWrkAgrmtManagerForKeyDte _PersWrkAgrmtManagerForKeyDte
_PersonWorkAgreementType _PersonWorkAgreementType

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_N_PersonWorkAgreement.
-- 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: PNPERSWKAGRMT

CREATE VIEW P_N_PersonWorkAgreement 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..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]
;