P_EHSBusinesUserWithPersWrkAgr
P_EHSBusinesUserWithPersWrkAgr is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BusinessUserBasic) and exposes 14 fields with key field BusinessPartner. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BusinessUserBasic | I_BusinessUserBasic | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PersonWorkAgreement_1 | _PersonWorkAgreement_1 | $projection.BusinessPartner = _PersonWorkAgreement_1.Person |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PBUWTHPWRK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | BusinessPartner | ||
| FirstName | FirstName | |||
| LastName | LastName | |||
| PersonFullName | PersonFullName | |||
| PersonWorkAgreement | _PersonWorkAgreement_1 | PersonWorkAgreement | ||
| OrganizationalUnit | ||||
| CompanyCode | ||||
| CompanyCodeName | ||||
| AuthorizationGroup | AuthorizationGroup | |||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | |||
| UserID | UserID | |||
| BusinessPartnerUUID | BusinessPartnerUUID | |||
| _PersonWorkAgreement_1 | _PersonWorkAgreement_1 | |||
| _WorkplaceAddress | _WorkplaceAddress |
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'PBUWTHPWRK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_ALLOWED
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
// used for BOBF Master Data Object
@ObjectModel.usageType:{ serviceQuality: #C, // < 15 msec
sizeCategory: #L, // < 10.000.000
dataClass: #MASTER }
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] } */
define view P_EHSBusinesUserWithPersWrkAgr as
select from I_BusinessUserBasic
association [0..1] to I_PersonWorkAgreement_1 as _PersonWorkAgreement_1 on $projection.BusinessPartner = _PersonWorkAgreement_1.Person
{
key BusinessPartner,
FirstName,
LastName,
PersonFullName,
_PersonWorkAgreement_1.PersonWorkAgreement,
_PersonWorkAgreement_1._PersonWorkAgrmtOrglDetails[1: StartDate <= $session.system_date
and EndDate >= $session.system_date].OrganizationalUnit,
_PersonWorkAgreement_1._PersonWorkAgrmtOrglDetails[1: StartDate <= $session.system_date
and EndDate >= $session.system_date].CompanyCode,
_PersonWorkAgreement_1._PersonWorkAgrmtOrglDetails[1: StartDate <= $session.system_date
and EndDate >= $session.system_date]._CompanyCode.CompanyCodeName,
AuthorizationGroup,
IsBusinessPurposeCompleted,
UserID,
BusinessPartnerUUID,
_PersonWorkAgreement_1,
_WorkplaceAddress
}
where
IsBusinessPurposeCompleted = ' ' and
_PersonWorkAgreement_1.PersonWorkAgreement is not null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSUSERBASIC",
"I_COMPANYCODE",
"I_PERSONWORKAGREEMENT_1",
"I_PERSONWORKAGRMTORGLDETAILS"
],
"ASSOCIATED":
[
"I_PERSONWORKAGREEMENT_1",
"I_WORKPLACEADDRESS"
],
"BASE":
[
"I_BUSINESSUSERBASIC"
],
"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