@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":""
}
}*/