P_USER_COMPOSITE_PROF
Get Profiles for users
P_USER_COMPOSITE_PROF is a CDS View that provides data about "Get Profiles for users" in SAP S/4HANA. It reads from 5 data sources (usr10, usr10, usrefus, ust04, ust04) and exposes 5 fields.
Data Sources (5)
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PUSRPROFC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Get Profiles for users | view |
@AbapCatalog.sqlViewName: 'PUSRPROFC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Get Profiles for users'
define view P_USER_COMPOSITE_PROF
as select distinct from usr02
left outer join ust04 on usr02.bname = ust04.bname
left outer join usr10 on ust04.profile = usr10.profn
{
usr02.bname,
@Consumption.hidden: true
usr02.class, // Do not export usergroup!
ust04.profile
}
where
usr10.typ = 'C'
union select distinct from usr02
left outer join usrefus on usr02.bname = usrefus.bname
left outer join ust04 on usrefus.refuser = ust04.bname
left outer join usr10 on ust04.profile = usr10.profn
{
usr02.bname,
@Consumption.hidden: true
usr02.class, // Do not export usergroup!
ust04.profile
}
where
usr10.typ = 'C'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"USR02",
"USR10",
"USREFUS",
"UST04"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/
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