Agr_Users_Usrefus
User-Role Assignment for ref. User
Agr_Users_Usrefus is a CDS View that provides data about "User-Role Assignment for ref. User" in SAP S/4HANA. It reads from 2 data sources (usrefus, agr_users) and exposes 4 fields with key fields user_name, role_name, valid_from, valid_to.
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AGR_USREFUS_V | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | User-Role Assignment for ref. User | view |
@AbapCatalog.sqlViewName: 'AGR_USREFUS_V'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'User-Role Assignment for ref. User'
--do not use within BASIC developement
--only usable for application development
define view Agr_Users_Usrefus
as select from usrefus as ref_user
inner join agr_users as role_to_user on ref_user.refuser = role_to_user.uname
{
key ref_user.bname as user_name,
key role_to_user.agr_name as role_name,
key role_to_user.from_dat as valid_from,
key role_to_user.to_dat as valid_to
}
where role_to_user.exclude = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"AGR_USERS",
"USREFUS"
],
"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