I_WrkfrcPersnRelshpToCoTP

DDL: I_WRKFRCPERSNRELSHPTOCOTP Type: view_entity

Workforce Person Relationship to Company

I_WrkfrcPersnRelshpToCoTP is a CDS View that provides data about "Workforce Person Relationship to Company" in SAP S/4HANA. It reads from 3 data sources (P_BPUSRPERSONEXTERNALID, I_BPRelationship, bpu_rolecat_whl) and exposes 8 fields with key fields WorkforcePersonExternalID, BusinessPartnerRole, BusinessPartnerCompany, ValidityEndDate. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
P_BPUSRPERSONEXTERNALID _BPIdentification inner
I_BPRelationship _BPRelationship from
bpu_rolecat_whl bpu_rolecat_whl inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_WorkforcePersonTP _WorkforcePerson _WorkforcePerson.WorkforcePersonExternalID = $projection.WorkforcePersonExternalID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Workforce Person Relationship to Company view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY WorkforcePersonExternalID P_BPUSRPERSONEXTERNALID BPIdentificationNumber Logical System
KEY BusinessPartnerRole bpu_rolecat_whl rolecategory BP Role Cat.
KEY BusinessPartnerCompany I_BPRelationship BusinessPartnerCompany Busn. Partner
KEY ValidityEndDate I_BPRelationship ValidityEndDate ValidTo
ValidityStartDate I_BPRelationship ValidityStartDate Validity Start Date
RelationshipCategory I_BPRelationship RelationshipCategory Relationsh.Cat.
_WorkforcePersonRole _WorkforcePersonRole
_WorkforcePerson _WorkforcePerson

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_WrkfrcPersnRelshpToCoTP.
-- 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_WrkfrcPersnRelshpToCoTP AS
SELECT
  _BPIdentification.BPIdentificationNumber AS WorkforcePersonExternalID,
  bpu_rolecat_whl.rolecategory AS BusinessPartnerRole,
  _BPRelationship.BusinessPartnerCompany AS BusinessPartnerCompany,
  _BPRelationship.ValidityEndDate AS ValidityEndDate,
  _BPRelationship.ValidityStartDate AS ValidityStartDate,
  _BPRelationship.RelationshipCategory AS RelationshipCategory
FROM I_BPRelationship AS _BPRelationship
INNER JOIN P_BPUSRPERSONEXTERNALID AS _BPIdentification ON /* join condition not captured in parsed metadata */
INNER JOIN bpu_rolecat_whl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePersonTP AS _WorkforcePerson ON _WorkforcePerson.WorkforcePersonExternalID = WorkforcePersonExternalID  -- association [1..1]
;