I_WorkforcePersonVH is a Composite CDS View that provides data about "Workforce Person Association Target" in SAP S/4HANA. It reads from 2 data sources (I_PersonWorkAgrmtStatus, I_PersonWorkAgreement_1) and exposes 19 fields with key field EmployeeExtID.
@AbapCatalog.sqlViewName: 'IWFPERSONVH'
@AbapCatalog.compiler.compareFilter: true@VDM.viewType: #COMPOSITE@AccessControl.authorizationCheck: #CHECK@AccessControl.personalData.blocking: #REQUIRED@ObjectModel.usageType.dataClass: #MASTER@ObjectModel.usageType.serviceQuality: #D@ObjectModel.usageType.sizeCategory: #L@ClientHandling.algorithm: #SESSION_VARIABLE@EndUserText.label: 'Workforce Person Association Target'
@ObjectModel.dataCategory:#VALUE_HELP@Search.searchable: true@Metadata.ignorePropagatedAnnotations: true@ObjectModel.supportedCapabilities: [#SEARCHABLE_ENTITY]//............................................................................................................
// This CDS viewis meant for Association Target ONLY ---- Do not use it for search help or for applications
//............................................................................................................
defineview I_WorkforcePersonVH asselectdistinctfrom I_WorkforcePerson as a
leftouterjoin I_PersonWorkAgreement_1 as employment on a.Person = employment.Person
leftouterjoin I_PersonWorkAgrmtStatus as b on employment.PersonWorkAgreement = b.PersonWorkAgreement
and b.EndDate >= $session.system_date //current and future employments
leftouter to one join I_BusinessUser as c on a.BusinessPartnerUUID = c.BusinessPartnerUUID
{
@EndUserText.label: 'Person ID'
@ObjectModel.text.element: ['PersonFullName']key a.PersonExternalID as EmployeeExtID,
a.Person,
@EndUserText.label: 'Last Name'
a._BusinessPartner.BPLastNameSearchHelp as LastName,
@EndUserText.label: 'First Name'
a._BusinessPartner.BPFirstNameSearchHelp as FirstName,
@Search.defaultSearchElement: true@Semantics.text: true
a.PersonFullName,
c.UserID,
@UI.hidden: true
a.AuthorizationGroup,
@UI.hidden: true
a.IsBusinessPurposeCompleted,
//BP Data controller adoption: Added only for DCL check
@Consumption.hidden:true@UI.hidden:true
a.DataControllerSet,
@Consumption.hidden:true@UI.hidden:true
a.DataController1,
@Consumption.hidden:true@UI.hidden:true
a.DataController2,
@Consumption.hidden:true@UI.hidden:true
a.DataController3,
@Consumption.hidden:true@UI.hidden:true
a.DataController4,
@Consumption.hidden:true@UI.hidden:true
a.DataController5,
@Consumption.hidden:true@UI.hidden:true
a.DataController6,
@Consumption.hidden:true@UI.hidden:true
a.DataController7,
@Consumption.hidden:true@UI.hidden:true
a.DataController8,
@Consumption.hidden:true@UI.hidden:true
a.DataController9,
@Consumption.hidden:true@UI.hidden:true
a.DataController10
}
where WorkAgreementStatus = '1'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNER",
"I_BUSINESSUSER",
"I_PERSONWORKAGREEMENT_1",
"I_PERSONWORKAGRMTSTATUS",
"I_WORKFORCEPERSON"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/