P_UserReferenceUser
Reference User and User Alias
P_UserReferenceUser is a CDS View that provides data about "Reference User and User Alias" in SAP S/4HANA. It reads from 2 data sources (usrefus, P_USR02) and exposes 4 fields with key field bname. Part of development package SUSR.
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.extensibility.extensible | false | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Reference User and User Alias | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | false | view |
@AbapCatalog: {
viewEnhancementCategory: [ #NONE ]
, extensibility: { extensible: false }
}
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Reference User and User Alias'
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #M,
dataClass: #MIXED
}
@Metadata: { allowExtensions: false }
// Used for function module 'SUSR_USER_GET_DETAIL_MASS' (mass enabled 'BAPI_USER_GET_DETAIL')
// Parameters REF_USER ( structure BAPIREFUS + user ) and ALIAS ( structure BAPIALIAS + usernames )
define view entity P_UserReferenceUser
as select from P_USR02 as UserExistence
left outer join usrefus as ReferenceUser on UserExistence.bname = ReferenceUser.bname
{ key UserExistence.bname,
ReferenceUser.refuser,
ReferenceUser.useralias,
@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