I_PersonWorkAgreement_2

DDL: I_PERSONWORKAGREEMENT_2 SQL: IPERSWKAGRMT2 Type: view COMPOSITE

Person Work Agreement Details

I_PersonWorkAgreement_2 is a Composite CDS View (Dimension) that provides data about "Person Work Agreement Details" in SAP S/4HANA. It reads from 3 data sources (I_BusinessPartner, I_HrPersWrkAgrmt, I_PersWrkAgrmtToPartner) and exposes 14 fields with key field PersonWorkAgreement. It has 10 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_BusinessPartner BusinessPartner inner
I_HrPersWrkAgrmt HrPersonWorkAgreement from
I_PersWrkAgrmtToPartner PersonWrkAgrmtToPartner inner

Associations (10)

CardinalityTargetAliasCondition
[1] I_BusinessPartner _BusinessPartner $projection.Person = _BusinessPartner.BusinessPartner
[1] I_PersonWorkAgrmtForKeyDate _PersonWrkAgrmtForKeyDate $projection.PersonWorkAgreement = _PersonWrkAgrmtForKeyDate.PersonWorkAgreement
[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 (17)

NameValueLevelField
AbapCatalog.sqlViewName IPERSWKAGRMT2 view
VDM.viewType #COMPOSITE 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 #BLOCKED_DATA_EXCLUDED view
Analytics.dataExtraction.enabled true view
Analytics.dataCategory #DIMENSION view
AbapCatalog.preserveKey true view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
ObjectModel.representativeKey PersonWorkAgreement view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Person Work Agreement Details view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PersonWorkAgreement I_HrPersWrkAgrmt PersonWorkAgreement Personnel No.
Person I_BusinessPartner BusinessPartner Issuing Authority
AuthorizationGroup I_BusinessPartner AuthorizationGroup AuthorizGroup
PersonFullName I_BusinessPartner PersonFullName Full Name
_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 I_PersonWorkAgreement_2.
-- 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: IPERSWKAGRMT2

CREATE VIEW I_PersonWorkAgreement_2 AS
SELECT
  HrPersonWorkAgreement.PersonWorkAgreement AS PersonWorkAgreement,
  BusinessPartner.BusinessPartner AS Person,
  BusinessPartner.AuthorizationGroup AS AuthorizationGroup,
  BusinessPartner.PersonFullName AS PersonFullName
FROM I_HrPersWrkAgrmt AS HrPersonWorkAgreement
INNER JOIN I_PersWrkAgrmtToPartner AS PersonWrkAgrmtToPartner ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessPartner AS BusinessPartner ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON Person = _BusinessPartner.BusinessPartner  -- association [1]
LEFT OUTER JOIN I_PersonWorkAgrmtForKeyDate AS _PersonWrkAgrmtForKeyDate ON PersonWorkAgreement = _PersonWrkAgrmtForKeyDate.PersonWorkAgreement  -- 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]
;