CRHS SAP (Hierarchy Structure) Table details
Dictionary Type: Table
Description: Hierarchy Structure
Description: Hierarchy Structure
Table field list including key, data, relationships and ABAP select examples
CRHS is a standard SAP Table which is used to store Hierarchy Structure data and is available within R/3 SAP systems depending on the version and release level.
The CRHS table consists of various fields, each holding specific information or linking keys about Hierarchy Structure data available in SAP. These include OBJTY_HY (Object types of the CIM resource), OBJID_HY (Object ID of the resource), OBJTY_HO (Object types of the CIM resource), OBJID_HO (Object ID of the resource).. 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: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type)
SAP CRHS 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 | MANDT | CLNT | 3 | T000 | MANDT | |||
OBJTY_HY | Object types of the CIM resource | CR_OBJTY | CHAR | 2 | CR_OBJTY | ||||
OBJID_HY | Object ID of the resource | CR_OBJID | NUMC | 8 | CRID | CR_OBJID | |||
OBJTY_HO | Object types of the CIM resource | CR_OBJTY | CHAR | 2 | CR_OBJTY | ||||
OBJID_HO | Object ID of the resource | CR_OBJID | NUMC | 8 | CRID | CR_OBJID | |||
OBJTY_UP | Type of resource which is superior in the hierarchy | OBJTY_UP | CHAR | 2 | CR_OBJTY | ||||
OBJID_UP | ID of superior object in the hierarchy | OBJID_UP | NUMC | 8 | CRID | CR_OBJID | |||
OBJTY_LE | Type of resource located on the left of the hierarchy | OBJTY_LE | CHAR | 2 | CR_OBJTY | ||||
OBJID_LE | ID of resource located on the left of the hierarchy | OBJID_LE | NUMC | 8 | CRID | CR_OBJID | |||
VCXPOS | Horizontal position (calculated in bands) | VCXPOS | CHAR | 5 | VCPOSITION | ||||
VCYPOS | Vertical position (calculated in bands) | VCYPOS | CHAR | 5 | VCPOSITION | ||||
FLGAV | Indicator: no further explosion in available capacity calc. | CR_FLGAV | CHAR | 1 | FLAG |
Key field | Non-key field |
How do I retrieve data from SAP table CRHS using ABAP code
The following ABAP code Example will allow you to do a basic selection on CRHS to SELECT all data from the tableDATA: WA_CRHS TYPE CRHS.
SELECT SINGLE *
FROM CRHS
INTO CORRESPONDING FIELDS OF WA_CRHS
WHERE...
How to access SAP table CRHS
Within an ECC or HANA version of SAP you can also view further information about CRHS 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