P_BPUsrDetail
Business User - User Detail
P_BPUsrDetail is a Basic CDS View that provides data about "Business User - User Detail" in SAP S/4HANA. It reads from 4 data sources (usr01, usr02, usr21, usrefus) and exposes 13 fields with key field BusinessPartnerUUID. It has 1 association to related views.
Data Sources (4)
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_USR_BY_GLOBALUID | _UserBySAPUserUUID | $projection.UserID = _UserBySAPUserUUID.bname |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PBPUSRDETAIL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Business User - User Detail | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ObjectModel.representativeKey | BusinessPartnerUUID | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartnerUUID | usr21 | bpperson | |
| UserID | ||||
| UserName | usrefus | useralias | ||
| UserDescription | ||||
| LogonLanguageCode | usr01 | langu | ||
| TimeFormatCode | usr01 | timefm | ||
| TimeZoneCode | usr02 | tzone | ||
| DateFormatCode | usr01 | datfm | ||
| DecimalFormatCode | usr01 | dcpfm | ||
| UserGroup | usr02 | class | ||
| ValidFrom | usr02 | gltgv | ||
| ValidTo | usr02 | gltgb | ||
| _UserBySAPUserUUID | _UserBySAPUserUUID |
@AbapCatalog.sqlViewName: 'PBPUSRDETAIL'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Business User - User Detail'
@ClientHandling.type: #CLIENT_DEPENDENT
@ObjectModel.representativeKey: 'BusinessPartnerUUID'
@VDM.private: true
@VDM.viewType: #BASIC
define view P_BPUsrDetail
as select from usr21
inner join usr01 on usr01.bname = usr21.bname
inner join usr02 on usr02.bname = usr21.bname
inner join usrefus on usrefus.bname = usr21.bname
association [0..*] to P_USR_BY_GLOBALUID as _UserBySAPUserUUID on $projection.UserID = _UserBySAPUserUUID.bname
{
key usr21.bpperson as BusinessPartnerUUID,
cast( usr21.bname as vdm_userid preserving type ) as UserID,
usrefus.useralias as UserName,
cast( usr21.techdesc as vdm_userdescription preserving type ) as UserDescription,
case usr02.uflag
when 32 then 'X'
when 64 then 'X'
when 96 then 'X'
else ' ' end as LockedIndicator, //ByteCoded: 32, 64 and 96 represents locks
usr01.langu as LogonLanguageCode,
usr01.timefm as TimeFormatCode,
usr02.tzone as TimeZoneCode,
usr01.datfm as DateFormatCode,
usr01.dcpfm as DecimalFormatCode,
usr02.class as UserGroup,
usr02.gltgv as ValidFrom,
usr02.gltgb as ValidTo,
_UserBySAPUserUUID
}
where
usr21.idadtype = '02'
or usr21.idadtype = '04'
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