P_EHSBUSINESUSERWITHPERSWRKAGR

CDS View

Determin party IDs for my user

P_EHSBUSINESUSERWITHPERSWRKAGR is a CDS View in S/4HANA. Determin party IDs for my user. It contains 1 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_PartyIDForMyUser view union COMPOSITE Determin party IDs for my user

Fields (1)

KeyField CDS FieldsUsed in Views
PersonFullName PartyName 1
@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