I_DistinctEmployee

DDL: I_DISTINCTEMPLOYEE SQL: IDISEMP Type: view COMPOSITE

Get Distinct Employee

I_DistinctEmployee is a Composite CDS View that provides data about "Get Distinct Employee" in SAP S/4HANA.

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IDISEMP view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Get Distinct Employee view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID Employment PersonWorkAgreement
BusinessUser
EmployeeFullName
Person Employment Person
_WorkforcePerson Employment _WorkforcePerson
_BusinessPartner Employment _BusinessPartner
@AbapCatalog.sqlViewName: 'IDISEMP'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Get Distinct Employee'
@VDM.viewType: #COMPOSITE
@AccessControl.personalData.blocking: #REQUIRED

define view I_DistinctEmployee as 
/*->>NOTE:2921621
 select distinct from I_Employment as Employment
{
    Employment._Employee.BusinessUser   ,
    Employment.PersonnelNumber  ,
    Employment._Employee.EmployeeFullName ,
    Employment.EmploymentInternalID,
    Employment._Employee
}  

*/
select distinct from I_PersonWorkAgreement_1 as Employment
{
key Employment.PersonWorkAgreement as EmploymentInternalID,
Employment._WorkforcePerson._BusinessUser.UserID as BusinessUser,
//removing PersonnelNumber without further replacement

Employment._WorkforcePerson.PersonFullName as EmployeeFullName,
Employment.Person,
Employment._WorkforcePerson,
Employment._BusinessPartner
}

//<-NOTE:2921621    

  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSUSER",
"I_PERSONWORKAGREEMENT_1",
"I_WORKFORCEPERSON"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_WORKFORCEPERSON"
],
"BASE":
[
"I_PERSONWORKAGREEMENT_1"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/