I_WorkforcePersonRoleTP

DDL: I_WORKFORCEPERSONROLETP Type: view_entity

Workforce Person Role

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

Data Sources (3)

SourceAliasJoin Type
P_BPUSRPERSONEXTERNALID _BPIdentification inner
I_BusinessPartner_to_BP_Role _BusinessPartnerRole from
bpu_rolecat_whl bpu_rolecat_whl inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_WrkfrcPersnRelshpToCoTP _WrkfrcPersnRelshpToCo

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Workforce Person Role view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #TRANSACTIONAL_INTERFACE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY WorkforcePersonExternalID P_BPUSRPERSONEXTERNALID BPIdentificationNumber Logical System
KEY BusinessPartnerRole I_BusinessPartner_to_BP_Role BusinessPartnerRole BP Role
BusinessPartner I_BusinessPartner_to_BP_Role BusinessPartner Issuing Authority
RoleCategory I_BusinessPartner_to_BP_Role RoleCategory BP Role Cat.
ValidFrom
ValidTo
_WorkforcePerson _WorkforcePerson
_WrkfrcPersnRelshpToCo _WrkfrcPersnRelshpToCo

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_WorkforcePersonRoleTP.
-- 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_WorkforcePersonRoleTP AS
SELECT
  _BPIdentification.BPIdentificationNumber AS WorkforcePersonExternalID,
  _BusinessPartnerRole.BusinessPartnerRole AS BusinessPartnerRole,
  _BusinessPartnerRole.BusinessPartner AS BusinessPartner,
  _BusinessPartnerRole.RoleCategory AS RoleCategory,
  tstmp_to_dats(_BusinessPartnerRole.ValidFrom,'UTC', $session.client, 'NULL') AS ValidFrom,
  tstmp_to_dats(_BusinessPartnerRole.ValidTo,'UTC', $session.client, 'NULL') AS ValidTo
FROM I_BusinessPartner_to_BP_Role AS _BusinessPartnerRole
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_WrkfrcPersnRelshpToCoTP AS _WrkfrcPersnRelshpToCo ON /* condition not available in parsed metadata */  -- association [0..*]
;