AGR_HIER2 SAP (Menu structure information - Customer version of SAP roles) Table details
Dictionary Type: Table
Description: Menu structure information - Customer version of SAP roles
Description: Menu structure information - Customer version of SAP roles
Table field list including key, data, relationships and ABAP select examples
AGR_HIER2 is a standard SAP Table which is used to store Menu structure information - Customer version of SAP roles data and is available within R/3 SAP systems depending on the version and release level.
The AGR_HIER2 table consists of various fields, each holding specific information or linking keys about Menu structure information - Customer version of SAP roles data available in SAP. These include AGR_NAME (Role Name), OBJECT_ID (Counter for Menu ID), PARENT_ID (Counter for Menu ID), FOLDER (Customized ('C') or standard menu ('S') flag).. 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: E - Control table, SAP and customer have separate key areasDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
Text table = AGR_HIERT2
SAP AGR_HIER2 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 | Assigned to domain | MANDT | |||
AGR_NAME | Role Name | AGR_NAME | CHAR | 30 | Assigned to domain | AGR_NAME | AGR_NAME | ||
OBJECT_ID | Counter for Menu ID | MENU_NUM_8 | NUMC | 8 | NUM08 | ||||
PARENT_ID | Counter for Menu ID | MENU_NUM_8 | NUMC | 8 | NUM08 | ||||
FOLDER | Customized ('C') or standard menu ('S') flag | MENU_FLAG | CHAR | 1 | CHAR1 | ||||
SORT_ORDER | Counter for Menu ID | MENU_NUM_8 | NUMC | 8 | NUM08 | ||||
REPORTTYPE | Report type | REPORTTYPE | CHAR | 2 | Assigned to domain | CHAR2REP | REPORT_TYPE | ||
REPORT | Extended Program Name | EXTDREPORT | CHAR | 48 | EXTDREPORT | ||||
MENU_LEVEL | Level in the menu | MENU_NUM_2 | NUMC | 2 | NUM02 | ||||
SAP_GUID | Unique ID - 32 characters | HIER_GUID | CHAR | 32 | SYCHAR32 | ||||
ATTRIBUTES | Attributes of the menu | MENU_ATTR | CHAR | 10 | CHAR10 | ||||
TARGET_SYS | Logical Destination (Specified in Function Call) | RFCDEST | CHAR | 32 | Assigned to domain | RFCDEST | RFC | F4_RFCDESTYPEALL | |
X_POS | Counter for menu ID | MENU_NUM_5 | NUMC | 5 | NUM05 | ||||
Y_POS | Counter for menu ID | MENU_NUM_5 | NUMC | 5 | NUM05 | ||||
BOOK_INFO | Structures: name of the structure | COLOR_INFO | CHAR | 12 | COLOR_INFO | ||||
SOURCE_AGR | Role Name | AGR_NAME | CHAR | 30 | Assigned to domain | AGR_NAME | AGR_NAME | ||
ICON | Icons for Role Menu Entries | MENU_ICON | CHAR | 128 | CHAR128_CASE | ||||
FLAGS | Attributes for Menu Entry | MENU_FLAGS | CHAR | 16 | CHAR16 | ||||
APPL_ALIAS | Application Alias | MENU_DETAILS_ALIAS | CHAR | 60 | TEXT60 |
Key field | Non-key field |
How do I retrieve data from SAP table AGR_HIER2 using ABAP code
The following ABAP code Example will allow you to do a basic selection on AGR_HIER2 to SELECT all data from the tableDATA: WA_AGR_HIER2 TYPE AGR_HIER2.
SELECT SINGLE *
FROM AGR_HIER2
INTO CORRESPONDING FIELDS OF WA_AGR_HIER2
WHERE...
How to access SAP table AGR_HIER2
Within an ECC or HANA version of SAP you can also view further information about AGR_HIER2 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