SAP RSSH_HIERARCHY_CALL_SIMULATION Function Module for Show hierarchy after file upload
RSSH_HIERARCHY_CALL_SIMULATION is a standard rssh hierarchy call simulation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Show hierarchy after file upload 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 call simulation FM, simply by entering the name RSSH_HIERARCHY_CALL_SIMULATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSHIER
Program Name: SAPLRSSHIER
Main Program: SAPLRSSHIER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSSH_HIERARCHY_CALL_SIMULATION 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_CALL_SIMULATION'"Show hierarchy after file upload.
EXPORTING
I_E1RSHIE = "Hierarchy-header information
TABLES
I_T_HIETAB = "Hierarchy Node
I_T_HIETAB_TXT = "Name of the not postable node
I_T_HIETAB_INTVL = "Intervals
I_T_HIETAB_DIRT = "Hierarchy description
I_T_MESSAGE = "Error Messages
EXCEPTIONS
HIERARCHY_NOT_EXISTS = 1
IMPORTING Parameters details for RSSH_HIERARCHY_CALL_SIMULATION
I_E1RSHIE - Hierarchy-header information
Data type: RSARC_S_RSHIEDIROptional: No
Call by Reference: Yes
TABLES Parameters details for RSSH_HIERARCHY_CALL_SIMULATION
I_T_HIETAB - Hierarchy Node
Data type: RSARC_T_RSHIERSTRUCOptional: No
Call by Reference: Yes
I_T_HIETAB_TXT - Name of the not postable node
Data type: RSARC_T_RSFOLDERTOptional: No
Call by Reference: Yes
I_T_HIETAB_INTVL - Intervals
Data type: RSARC_T_RSHIERINTVLOptional: No
Call by Reference: Yes
I_T_HIETAB_DIRT - Hierarchy description
Data type: RSARC_T_RSHIEDIRTOptional: No
Call by Reference: Yes
I_T_MESSAGE - Error Messages
Data type: RSARR_T_IDOCSTATEOptional: No
Call by Reference: Yes
EXCEPTIONS details
HIERARCHY_NOT_EXISTS - Hierarchy does not exist
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSSH_HIERARCHY_CALL_SIMULATION 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_e1rshie | TYPE RSARC_S_RSHIEDIR, " | |||
lt_i_t_hietab | TYPE STANDARD TABLE OF RSARC_T_RSHIERSTRUC, " | |||
lv_hierarchy_not_exists | TYPE RSARC_T_RSHIERSTRUC, " | |||
lt_i_t_hietab_txt | TYPE STANDARD TABLE OF RSARC_T_RSFOLDERT, " | |||
lt_i_t_hietab_intvl | TYPE STANDARD TABLE OF RSARC_T_RSHIERINTVL, " | |||
lt_i_t_hietab_dirt | TYPE STANDARD TABLE OF RSARC_T_RSHIEDIRT, " | |||
lt_i_t_message | TYPE STANDARD TABLE OF RSARR_T_IDOCSTATE. " |
  CALL FUNCTION 'RSSH_HIERARCHY_CALL_SIMULATION' "Show hierarchy after file upload |
EXPORTING | ||
I_E1RSHIE | = lv_i_e1rshie | |
TABLES | ||
I_T_HIETAB | = lt_i_t_hietab | |
I_T_HIETAB_TXT | = lt_i_t_hietab_txt | |
I_T_HIETAB_INTVL | = lt_i_t_hietab_intvl | |
I_T_HIETAB_DIRT | = lt_i_t_hietab_dirt | |
I_T_MESSAGE | = lt_i_t_message | |
EXCEPTIONS | ||
HIERARCHY_NOT_EXISTS = 1 | ||
. " RSSH_HIERARCHY_CALL_SIMULATION |
ABAP code using 7.40 inline data declarations to call FM RSSH_HIERARCHY_CALL_SIMULATION
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.Search for further information about these or an SAP related objects