P_UserProfiles
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)
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 |
@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
}
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