AGR_USERS SAP (Assignment of roles to users) Table details
Dictionary Type: Table
Description: Assignment of roles to users
Description: Assignment of roles to 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 custDisplay/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 |
MANDT | Client ID | SYMANDT | CLNT | 3 | T000 | MANDT | |||
AGR_NAME | Role Name | AGR_NAME | CHAR | 30 | AGR_DEFINE | AGR_NAME | AGR_NAME | ||
UNAME | User Name in User Master Record | XUBNAME | CHAR | 12 | USR02 | XUBNAME | XUS | ||
FROM_DAT | Date of validity | AGR_FDATE | DATS | 8 | DATS | ||||
TO_DAT | Date of validity | AGR_TDATE | DATS | 8 | DATS | ||||
EXCLUDE | Exclusive | AGR_EXCL | CHAR | 1 | CHAR1 | ||||
CHANGE_DAT | Date of menu generation | MENU_DATE | DATS | 8 | DATS | ||||
CHANGE_TIM | Time when the menu was generated last | MENU_TIME | TIMS | 6 | TIMES | ||||
CHANGE_TST | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | RSTIMESTMP | DEC | 15 | TZNTSTMPS | ||||
ORG_FLAG | Flag: Assignment Comes From HR Organization Management | AGR_ORG | CHAR | 1 | CHAR1 | ||||
COL_FLAG | Flag: Assignment from composite role | AGR_COL | CHAR | 1 | CHAR1_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 tableDATA: 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 asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects