SAP RSSH_HIERARCHY_GET Function Module for Returns Header Data and Attributes of Hierarchy









RSSH_HIERARCHY_GET is a standard rssh hierarchy get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns Header Data and Attributes of Hierarchy processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rssh hierarchy get FM, simply by entering the name RSSH_HIERARCHY_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSSH
Program Name: SAPLRSSH
Main Program: SAPLRSSH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSSH_HIERARCHY_GET pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RSSH_HIERARCHY_GET'"Returns Header Data and Attributes of Hierarchy
EXPORTING
* I_HIEID = "Internal Hierarchy ID (Unique ID)
I_OBJVERS = "Object Version
* I_HIETYPE = '1' "Hierarchy type
* I_HIENM = "Name of Hierarchy
* I_VERSION = "Hierarchy Version
* I_DATETO = "Valid-To Date
* I_IOBJNM = "InfoObject
* I_BYPASS_BUFFER = RS_C_TRUE "Do not use table buffer

IMPORTING
E_S_RSHIEDIR = "Hierarchy Catalog
E_S_HIETEXT = "Structure with Short, Medium and Long Text
E_T_RSHIEDIRT = "Description of a Hierarchy

EXCEPTIONS
HIERARCHY_NOT_FOUND = 1
.



IMPORTING Parameters details for RSSH_HIERARCHY_GET

I_HIEID - Internal Hierarchy ID (Unique ID)

Data type: RSHIEID
Optional: Yes
Call by Reference: Yes

I_OBJVERS - Object Version

Data type: RSOBJVERS
Optional: No
Call by Reference: Yes

I_HIETYPE - Hierarchy type

Data type: RSHIETYPE
Default: '1'
Optional: Yes
Call by Reference: Yes

I_HIENM - Name of Hierarchy

Data type: RSHIENM
Optional: Yes
Call by Reference: Yes

I_VERSION - Hierarchy Version

Data type: RSVERSION
Optional: Yes
Call by Reference: Yes

I_DATETO - Valid-To Date

Data type: RSDATETO
Optional: Yes
Call by Reference: Yes

I_IOBJNM - InfoObject

Data type: RSIOBJNM
Optional: Yes
Call by Reference: Yes

I_BYPASS_BUFFER - Do not use table buffer

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSSH_HIERARCHY_GET

E_S_RSHIEDIR - Hierarchy Catalog

Data type: RSHIEDIR
Optional: No
Call by Reference: Yes

E_S_HIETEXT - Structure with Short, Medium and Long Text

Data type: RSTXTSML
Optional: No
Call by Reference: Yes

E_T_RSHIEDIRT - Description of a Hierarchy

Data type: RSSH_T_RSHIEDIRT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

HIERARCHY_NOT_FOUND - Hierarchy not found; check import parameters

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSSH_HIERARCHY_GET Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_hieid  TYPE RSHIEID, "   
lv_e_s_rshiedir  TYPE RSHIEDIR, "   
lv_hierarchy_not_found  TYPE RSHIEDIR, "   
lv_i_objvers  TYPE RSOBJVERS, "   
lv_e_s_hietext  TYPE RSTXTSML, "   
lv_i_hietype  TYPE RSHIETYPE, "   '1'
lv_e_t_rshiedirt  TYPE RSSH_T_RSHIEDIRT, "   
lv_i_hienm  TYPE RSHIENM, "   
lv_i_version  TYPE RSVERSION, "   
lv_i_dateto  TYPE RSDATETO, "   
lv_i_iobjnm  TYPE RSIOBJNM, "   
lv_i_bypass_buffer  TYPE RS_BOOL. "   RS_C_TRUE

  CALL FUNCTION 'RSSH_HIERARCHY_GET'  "Returns Header Data and Attributes of Hierarchy
    EXPORTING
         I_HIEID = lv_i_hieid
         I_OBJVERS = lv_i_objvers
         I_HIETYPE = lv_i_hietype
         I_HIENM = lv_i_hienm
         I_VERSION = lv_i_version
         I_DATETO = lv_i_dateto
         I_IOBJNM = lv_i_iobjnm
         I_BYPASS_BUFFER = lv_i_bypass_buffer
    IMPORTING
         E_S_RSHIEDIR = lv_e_s_rshiedir
         E_S_HIETEXT = lv_e_s_hietext
         E_T_RSHIEDIRT = lv_e_t_rshiedirt
    EXCEPTIONS
        HIERARCHY_NOT_FOUND = 1
. " RSSH_HIERARCHY_GET




ABAP code using 7.40 inline data declarations to call FM RSSH_HIERARCHY_GET

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
DATA(ld_i_hietype) = '1'.
 
 
 
 
 
 
DATA(ld_i_bypass_buffer) = RS_C_TRUE.
 


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!