I_DistinctEmployee
Get Distinct Employee
I_DistinctEmployee is a Composite CDS View that provides data about "Get Distinct Employee" in SAP S/4HANA.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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