P_PPM_AuthorizationByUserRole

DDL: P_PPM_AUTHORIZATIONBYUSERROLE SQL: PPPMAUTHUSRROLE Type: view BASIC

P_PPM_AuthorizationByUserRole is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (aco_role, agr_users) and exposes 4 fields with key fields ReferencedObjectUUID, Activity, UserID.

Data Sources (2)

SourceAliasJoin Type
aco_role RoleAuth from
agr_users UserRole inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPPMAUTHUSRROLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ReferencedObjectUUID aco_role object_id
KEY Activity aco_role activity
KEY UserID agr_users uname
ObjectType aco_role type
@AbapCatalog.sqlViewName: 'PPPMAUTHUSRROLE'
@AbapCatalog.compiler.compareFilter: true

@VDM.viewType: #BASIC
@VDM.private:true

@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
// @EndUserText.label: 'PPM Object Authorization for a user by role assignment'

define view P_PPM_AuthorizationByUserRole as 
  select from  aco_role  as RoleAuth
    inner join agr_users as UserRole on RoleAuth.role_id = UserRole.agr_name
  {
  
    key RoleAuth.object_id  as ReferencedObjectUUID,
    key RoleAuth.activity   as Activity,
    key UserRole.uname      as UserID,
        RoleAuth.type       as ObjectType
  
  }
  where UserRole.exclude  = ''
    and UserRole.from_dat <= $session.system_date
    and UserRole.to_dat   >= $session.system_date