I_WorkforcePersonRoleTP
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)
| Source | Alias | Join Type |
|---|---|---|
| P_BPUSRPERSONEXTERNALID | _BPIdentification | inner |
| I_BusinessPartner_to_BP_Role | _BusinessPartnerRole | from |
| bpu_rolecat_whl | bpu_rolecat_whl | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_WrkfrcPersnRelshpToCoTP | _WrkfrcPersnRelshpToCo | |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkforcePersonExternalID | P_BPUSRPERSONEXTERNALID | BPIdentificationNumber | |
| KEY | BusinessPartnerRole | I_BusinessPartner_to_BP_Role | BusinessPartnerRole | |
| BusinessPartner | I_BusinessPartner_to_BP_Role | BusinessPartner | ||
| RoleCategory | I_BusinessPartner_to_BP_Role | RoleCategory | ||
| ValidFrom | ||||
| ValidTo | ||||
| _WorkforcePerson | _WorkforcePerson | |||
| _WrkfrcPersnRelshpToCo | _WrkfrcPersnRelshpToCo |
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Workforce Person Role'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@ObjectModel: {
supportedCapabilities: [#TRANSACTIONAL_PROVIDER],
modelingPattern: #TRANSACTIONAL_INTERFACE
}
define view entity I_WorkforcePersonRoleTP
as select from I_BusinessPartner_to_BP_Role as _BusinessPartnerRole
inner join P_BPUSRPERSONEXTERNALID as _BPIdentification on _BPIdentification.BusinessPartner = _BusinessPartnerRole.BusinessPartner
inner join bpu_rolecat_whl on bpu_rolecat_whl.rolecategory = _BusinessPartnerRole.RoleCategory
composition [0..*] of I_WrkfrcPersnRelshpToCoTP as _WrkfrcPersnRelshpToCo
association to parent I_WorkforcePersonTP as _WorkforcePerson on $projection.WorkforcePersonExternalID = _WorkforcePerson.WorkforcePersonExternalID
{
key _BPIdentification.BPIdentificationNumber as WorkforcePersonExternalID,
key _BusinessPartnerRole.BusinessPartnerRole,
_BusinessPartnerRole.BusinessPartner,
_BusinessPartnerRole.RoleCategory,
tstmp_to_dats(_BusinessPartnerRole.ValidFrom,'UTC', $session.client, 'NULL') as ValidFrom,
tstmp_to_dats(_BusinessPartnerRole.ValidTo,'UTC', $session.client, 'NULL') as ValidTo,
/* Associations */
_WorkforcePerson,
_WrkfrcPersnRelshpToCo
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNER_TO_BP_ROLE",
"P_BPUSRPERSONEXTERNALID",
"BPU_ROLECAT_WHL"
],
"ASSOCIATED":
[
"I_WORKFORCEPERSONTP",
"I_WRKFRCPERSNRELSHPTOCOTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA