SAP RSSH_HIERARCHY_CREATE Function Module for Create/Maintain Hierarchy from Admin Workbench









RSSH_HIERARCHY_CREATE is a standard rssh hierarchy create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create/Maintain Hierarchy from Admin Workbench 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 create FM, simply by entering the name RSSH_HIERARCHY_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSSH_HIERARCHY_CREATE 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_CREATE'"Create/Maintain Hierarchy from Admin Workbench
EXPORTING
I_IOBJNM = "
* I_HIEID = ' ' "
* I_OBJVERS = 'A' "
I_COMMAND = "
* I_T_MDHIERATTR = "Metadata Hierarchy Attribute Table
* I_MDHIER = RS_C_FALSE "Flag whether metadata hierarchy
* I_NEWONE = RS_C_TRUE "Boolean

IMPORTING
E_TEXTTECH = "
E_HIEID = "Internal Hierarchy ID (Unique ID)

EXCEPTIONS
NO_AUTHORITY = 1 CANCELLED = 2
.



IMPORTING Parameters details for RSSH_HIERARCHY_CREATE

I_IOBJNM -

Data type: RSHI_S_HIEDIR-IOBJNM
Optional: No
Call by Reference: No ( called with pass by value option)

I_HIEID -

Data type: RSHI_S_HIEDIR-HIEID
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJVERS -

Data type: RSHI_S_HIEDIR-OBJVERS
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMMAND -

Data type: RSHI_MODE
Optional: No
Call by Reference: No ( called with pass by value option)

I_T_MDHIERATTR - Metadata Hierarchy Attribute Table

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

I_MDHIER - Flag whether metadata hierarchy

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

I_NEWONE - Boolean

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

EXPORTING Parameters details for RSSH_HIERARCHY_CREATE

E_TEXTTECH -

Data type: RSHI_S_HIERARCHY_TREE_TEXT-TEXTTECH
Optional: No
Call by Reference: No ( called with pass by value option)

E_HIEID - Internal Hierarchy ID (Unique ID)

Data type: RSHIEID
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSSH_HIERARCHY_CREATE 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_iobjnm  TYPE RSHI_S_HIEDIR-IOBJNM, "   
lv_e_texttech  TYPE RSHI_S_HIERARCHY_TREE_TEXT-TEXTTECH, "   
lv_no_authority  TYPE RSHI_S_HIERARCHY_TREE_TEXT, "   
lv_e_hieid  TYPE RSHIEID, "   
lv_i_hieid  TYPE RSHI_S_HIEDIR-HIEID, "   ' '
lv_cancelled  TYPE RSHI_S_HIEDIR, "   
lv_i_objvers  TYPE RSHI_S_HIEDIR-OBJVERS, "   'A'
lv_i_command  TYPE RSHI_MODE, "   
lv_i_t_mdhierattr  TYPE RSSH_T_MDHIERATTR, "   
lv_i_mdhier  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_newone  TYPE RS_BOOL. "   RS_C_TRUE

  CALL FUNCTION 'RSSH_HIERARCHY_CREATE'  "Create/Maintain Hierarchy from Admin Workbench
    EXPORTING
         I_IOBJNM = lv_i_iobjnm
         I_HIEID = lv_i_hieid
         I_OBJVERS = lv_i_objvers
         I_COMMAND = lv_i_command
         I_T_MDHIERATTR = lv_i_t_mdhierattr
         I_MDHIER = lv_i_mdhier
         I_NEWONE = lv_i_newone
    IMPORTING
         E_TEXTTECH = lv_e_texttech
         E_HIEID = lv_e_hieid
    EXCEPTIONS
        NO_AUTHORITY = 1
        CANCELLED = 2
. " RSSH_HIERARCHY_CREATE




ABAP code using 7.40 inline data declarations to call FM RSSH_HIERARCHY_CREATE

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.

"SELECT single IOBJNM FROM RSHI_S_HIEDIR INTO @DATA(ld_i_iobjnm).
 
"SELECT single TEXTTECH FROM RSHI_S_HIERARCHY_TREE_TEXT INTO @DATA(ld_e_texttech).
 
 
 
"SELECT single HIEID FROM RSHI_S_HIEDIR INTO @DATA(ld_i_hieid).
DATA(ld_i_hieid) = ' '.
 
 
"SELECT single OBJVERS FROM RSHI_S_HIEDIR INTO @DATA(ld_i_objvers).
DATA(ld_i_objvers) = 'A'.
 
 
 
DATA(ld_i_mdhier) = RS_C_FALSE.
 
DATA(ld_i_newone) = 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!