AGR_USERS SAP (Assignment of roles to users) Table details

Dictionary Type: Table
Description: Assignment of roles to users




ABAP Code to SELECT data from AGR_USERS
Related tables to AGR_USERS
Access table AGR_USERS




Table field list including key, data, relationships and ABAP select examples

AGR_USERS is a standard SAP Table which is used to store Assignment of roles to users data and is available within R/3 SAP systems depending on the version and release level.

The AGR_USERS table consists of various fields, each holding specific information or linking keys about Assignment of roles to users data available in SAP. These include AGR_NAME (Role Name), UNAME (User Name in User Master Record), FROM_DAT (Date of validity), TO_DAT (Date of validity).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: C - Customising table, maintenance only by cust
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP AGR_USERS table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient ID SYMANDTCLNT3T000MANDT
AGR_NAMERole Name AGR_NAMECHAR30AGR_DEFINEAGR_NAMEAGR_NAME
UNAMEUser Name in User Master Record XUBNAMECHAR12USR02XUBNAMEXUS
FROM_DATDate of validity AGR_FDATEDATS8DATS
TO_DATDate of validity AGR_TDATEDATS8DATS
EXCLUDEExclusive AGR_EXCLCHAR1CHAR1
CHANGE_DATDate of menu generation MENU_DATEDATS8DATS
CHANGE_TIMTime when the menu was generated last MENU_TIMETIMS6TIMES
CHANGE_TSTUTC Time Stamp in Short Form (YYYYMMDDhhmmss) RSTIMESTMPDEC15TZNTSTMPS
ORG_FLAGFlag: Assignment Comes From HR Organization Management AGR_ORGCHAR1CHAR1
COL_FLAGFlag: Assignment from composite role AGR_COLCHAR1CHAR1_X

Key field Non-key field



How do I retrieve data from SAP table AGR_USERS using ABAP code

The following ABAP code Example will allow you to do a basic selection on AGR_USERS to SELECT all data from the table
DATA: WA_AGR_USERS TYPE AGR_USERS.

SELECT SINGLE *
FROM AGR_USERS
INTO CORRESPONDING FIELDS OF WA_AGR_USERS
WHERE...

How to access SAP table AGR_USERS

Within an ECC or HANA version of SAP you can also view further information about AGR_USERS and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!