P_UserProfiles

DDL: P_USERPROFILES Type: view_entity Package: SUSR

User profile assignments

P_UserProfiles is a CDS View that provides data about "User profile assignments" in SAP S/4HANA. It reads from 3 data sources (ust04, P_USR02, usr10) and exposes 5 fields with key fields bname, profile. Part of development package SUSR.

Data Sources (3)

SourceAliasJoin Type
ust04 Profiles from
P_USR02 UserExistence inner
usr10 Usprof left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.extensibility.extensible false view
AccessControl.authorizationCheck #CHECK view
EndUserText.label User profile assignments view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions false view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY bname ust04 bname
KEY profile ust04 profile
typ usr10 typ
aktps usr10 aktps
class P_USR02 class
@AbapCatalog:   { 
                  viewEnhancementCategory: [ #NONE ]
                , extensibility: { extensible: false }
                }
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'User profile assignments'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #L,
  dataClass: #MIXED
}
@Metadata:      { allowExtensions: false }

// Used for function module 'SUSR_USER_GET_DETAIL_MASS' (mass enabled 'BAPI_USER_GET_DETAIL')

// Parameter PROFILES with BAPIPROF structure + usernames


define view entity P_UserProfiles
  as select from    ust04   as Profiles
    inner join      P_USR02 as UserExistence on Profiles.bname   = UserExistence.bname
    left outer join usr10   as Usprof        on Profiles.profile = Usprof.profn
                                            and Usprof.aktps = 'A' //only active profiles

{
  key Profiles.bname,
  key Profiles.profile,
      Usprof.typ,
      Usprof.aktps,
      
      @Consumption.hidden: true
      UserExistence.class
}