SAP RSNDI_SHIE_STRUCTURE_UPDATE3 Function Module for Update of Hierarchies
RSNDI_SHIE_STRUCTURE_UPDATE3 is a standard rsndi shie structure update3 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update of Hierarchies 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 rsndi shie structure update3 FM, simply by entering the name RSNDI_SHIE_STRUCTURE_UPDATE3 into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSNDI_SHIE
Program Name: SAPLRSNDI_SHIE
Main Program: SAPLRSNDI_SHIE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function RSNDI_SHIE_STRUCTURE_UPDATE3 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 'RSNDI_SHIE_STRUCTURE_UPDATE3'"Update of Hierarchies.
EXPORTING
I_S_HIEHEAD = "Hierarchy Catalog
* I_SUBTREES = ' ' "= 'X' for insert, 'U' for update
* I_FORCE_TO_SAVE = ' ' "= X: Hierarchy is always saved, even with inconsistency
* I_EMPTY_HIER_ALLOWED = ' ' "= X if empty hierarchies are allowed
IMPORTING
E_SUBRC = "Return Value, Return Value After ABAP Statements
E_HIEID = "Internal Hierarchy ID (Unique ID)
TABLES
I_T_HIEDIRT = "Hierarchy Directory Texts
I_T_HIERSTRUC = "Interface Structure of Hierarchy Nodes
* I_T_THIERNODE = "Texts of Non-Postable Hierarchy Nodes
* I_T_NODENAMES = "Node Names and Ranges (Compound Exploded)
* I_T_HIERINTVL = "Interface Structure of Hierarchy Ranges
* I_T_NODEATTR = "Node Attributes
* I_T_LEVEL = "Levels Table for Hierarchies in BW
E_T_MESSAGES = "Application Log: APPL_LOG_WRITE_MESSAGES interface
IMPORTING Parameters details for RSNDI_SHIE_STRUCTURE_UPDATE3
I_S_HIEHEAD - Hierarchy Catalog
Data type: RSNDI_S_HIERUPDATEOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBTREES - = 'X' for insert, 'U' for update
Data type: RSSUBTREEUPDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FORCE_TO_SAVE - = X: Hierarchy is always saved, even with inconsistency
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EMPTY_HIER_ALLOWED - = X if empty hierarchies are allowed
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSNDI_SHIE_STRUCTURE_UPDATE3
E_SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_HIEID - Internal Hierarchy ID (Unique ID)
Data type: RSHIEIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSNDI_SHIE_STRUCTURE_UPDATE3
I_T_HIEDIRT - Hierarchy Directory Texts
Data type: RSHIEDIRTOptional: No
Call by Reference: No ( called with pass by value option)
I_T_HIERSTRUC - Interface Structure of Hierarchy Nodes
Data type: RSNDI_S_HTABOptional: No
Call by Reference: Yes
I_T_THIERNODE - Texts of Non-Postable Hierarchy Nodes
Data type: RSTHIERNODEOptional: Yes
Call by Reference: Yes
I_T_NODENAMES - Node Names and Ranges (Compound Exploded)
Data type: RSNDI_S_NODENMOptional: Yes
Call by Reference: Yes
I_T_HIERINTVL - Interface Structure of Hierarchy Ranges
Data type: RSNDI_S_JTABOptional: Yes
Call by Reference: Yes
I_T_NODEATTR - Node Attributes
Data type: RSSH_S_NODEATTROptional: Yes
Call by Reference: Yes
I_T_LEVEL - Levels Table for Hierarchies in BW
Data type: RSHIELVTOptional: Yes
Call by Reference: Yes
E_T_MESSAGES - Application Log: APPL_LOG_WRITE_MESSAGES interface
Data type: RSNDI_S_MESSAGEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSNDI_SHIE_STRUCTURE_UPDATE3 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_e_subrc | TYPE SY-SUBRC, " | |||
lv_i_s_hiehead | TYPE RSNDI_S_HIERUPDATE, " | |||
lt_i_t_hiedirt | TYPE STANDARD TABLE OF RSHIEDIRT, " | |||
lv_e_hieid | TYPE RSHIEID, " | |||
lv_i_subtrees | TYPE RSSUBTREEUPD, " SPACE | |||
lt_i_t_hierstruc | TYPE STANDARD TABLE OF RSNDI_S_HTAB, " | |||
lt_i_t_thiernode | TYPE STANDARD TABLE OF RSTHIERNODE, " | |||
lv_i_force_to_save | TYPE RS_BOOL, " SPACE | |||
lt_i_t_nodenames | TYPE STANDARD TABLE OF RSNDI_S_NODENM, " | |||
lv_i_empty_hier_allowed | TYPE RS_BOOL, " SPACE | |||
lt_i_t_hierintvl | TYPE STANDARD TABLE OF RSNDI_S_JTAB, " | |||
lt_i_t_nodeattr | TYPE STANDARD TABLE OF RSSH_S_NODEATTR, " | |||
lt_i_t_level | TYPE STANDARD TABLE OF RSHIELVT, " | |||
lt_e_t_messages | TYPE STANDARD TABLE OF RSNDI_S_MESSAGE. " |
  CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_UPDATE3' "Update of Hierarchies |
EXPORTING | ||
I_S_HIEHEAD | = lv_i_s_hiehead | |
I_SUBTREES | = lv_i_subtrees | |
I_FORCE_TO_SAVE | = lv_i_force_to_save | |
I_EMPTY_HIER_ALLOWED | = lv_i_empty_hier_allowed | |
IMPORTING | ||
E_SUBRC | = lv_e_subrc | |
E_HIEID | = lv_e_hieid | |
TABLES | ||
I_T_HIEDIRT | = lt_i_t_hiedirt | |
I_T_HIERSTRUC | = lt_i_t_hierstruc | |
I_T_THIERNODE | = lt_i_t_thiernode | |
I_T_NODENAMES | = lt_i_t_nodenames | |
I_T_HIERINTVL | = lt_i_t_hierintvl | |
I_T_NODEATTR | = lt_i_t_nodeattr | |
I_T_LEVEL | = lt_i_t_level | |
E_T_MESSAGES | = lt_e_t_messages | |
. " RSNDI_SHIE_STRUCTURE_UPDATE3 |
ABAP code using 7.40 inline data declarations to call FM RSNDI_SHIE_STRUCTURE_UPDATE3
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 SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
DATA(ld_i_subtrees) | = ' '. | |||
DATA(ld_i_force_to_save) | = ' '. | |||
DATA(ld_i_empty_hier_allowed) | = ' '. | |||
Search for further information about these or an SAP related objects