I_WORKFORCEPERSONDETERMINEROLE
Workforce person current or future role
I_WORKFORCEPERSONDETERMINEROLE is a CDS View in S/4HANA. Workforce person current or future role. 3 CDS views read from this table.
CDS Views using this table (3)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| P_N_Employee | view | left_outer | BASIC | |
| P_N_EmployeeOp | view | left_outer | BASIC | |
| P_O_EmployeeOp | view | left_outer | BASIC |
@AbapCatalog.sqlViewName: 'IWFPERSONDETROLE'
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #MASTER
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #REQUIRED
@AbapCatalog.preserveKey:true
@EndUserText.label: 'Workforce person current or future role'
//--------------------------------------------------------------------------------------
// Internal use only - Do not use this in other views or applications
//--------------------------------------------------------------------------------------
define view I_WorkforcePersonDetermineRole as select from but100 as bp_role
inner join I_WorkforcePersonMinRole as bp_minrole on bp_minrole.EmployeeInternalID = bp_role.partner and bp_minrole.ValidityStartDate = bp_role.valid_from
{
key bp_role.partner as EmployeeInternalID,
key bp_role.rltyp as BusinessPartnerRole,
bp_role.valid_from as ValidityStartDate
}
where
bp_role.dfval = '' and
(bp_role.valid_from <= tstmp_current_utctimestamp() and bp_role.valid_to >= dats_tims_to_tstmp( cast($session.system_date as abap.dats), cast('000000' as abap.tims), 'UTC', $session.client, 'NULL')
or bp_role.valid_from >= tstmp_current_utctimestamp()) and (bp_role.rltyp = 'BUP003' or // BUP003 - Employee
bp_role.rltyp = 'BBP005' or // BBP005 - Service Agent
bp_role.rltyp = 'BBP010' ) // BBP010 - Freelancer
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKFORCEPERSONMINROLE",
"BUT100"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/