SAP RM_RC_REMOVE_HIERARCHY Function Module for RM: Auflösung der Hierarchie des Risikoträgers (flachklopfen)
RM_RC_REMOVE_HIERARCHY is a standard rm rc remove hierarchy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RM: Auflösung der Hierarchie des Risikoträgers (flachklopfen) 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 rm rc remove hierarchy FM, simply by entering the name RM_RC_REMOVE_HIERARCHY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMY3
Program Name: SAPLRMY3
Main Program: SAPLRMY3
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_RC_REMOVE_HIERARCHY 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 'RM_RC_REMOVE_HIERARCHY'"RM: Auflösung der Hierarchie des Risikoträgers (flachklopfen).
EXPORTING
* TYPE = 'X' "Steuerflag ('X' für xSFGDT, ' ' für SFGDT)
* I_IT_SFGDT = "Tabelle der Risikoträger
* I_IT_XSFGDT = "Tabelle der erweiteretn Risikoträger
TABLES
* E_IT_KO = "Kopfinformation Risikoträger für DB
* E_IT_KOET = "Kopfinformation Elementartyp für DB
* E_IT_ABEST = "ABEST für DB
* E_IT_OPTI = "OPTI für DB
* E_IT_BEWEG = "BEWEG für DB
* E_IT_COMBEWEG = "RM: DB Table BEWEG Extended Category of Primary Transaction
* E_IT_FML = "
* E_IT_HIER = "Hierarchiverschlüsselungstabelle für DB
* ERROR_ITAB = "Fehlertabelle (pro Risikoträger)
EXCEPTIONS
NO_INPUT = 1 WRONG_TYPE_INPUT = 2
IMPORTING Parameters details for RM_RC_REMOVE_HIERARCHY
TYPE - Steuerflag ('X' für xSFGDT, ' ' für SFGDT)
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_IT_SFGDT - Tabelle der Risikoträger
Data type: TVS_SFGDT_TABOptional: Yes
Call by Reference: Yes
I_IT_XSFGDT - Tabelle der erweiteretn Risikoträger
Data type: RMS_SFGDT_TABOptional: Yes
Call by Reference: Yes
TABLES Parameters details for RM_RC_REMOVE_HIERARCHY
E_IT_KO - Kopfinformation Risikoträger für DB
Data type: JBRDBKOOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_KOET - Kopfinformation Elementartyp für DB
Data type: JBRDBKOETOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_ABEST - ABEST für DB
Data type: JBRDBABESTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_OPTI - OPTI für DB
Data type: JBRDBOPTIOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_BEWEG - BEWEG für DB
Data type: JBRDBBEWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_COMBEWEG - RM: DB Table BEWEG Extended Category of Primary Transaction
Data type: JBRDBCOMBEWEGOptional: Yes
Call by Reference: Yes
E_IT_FML -
Data type: JBRDBFMLOptional: Yes
Call by Reference: No ( called with pass by value option)
E_IT_HIER - Hierarchiverschlüsselungstabelle für DB
Data type: JBRDBHIEROptional: Yes
Call by Reference: No ( called with pass by value option)
ERROR_ITAB - Fehlertabelle (pro Risikoträger)
Data type: BAPIERROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_INPUT - keine Eingabedaten gefunden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_TYPE_INPUT - Type paßt nicht zum Input
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_RC_REMOVE_HIERARCHY 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_type | TYPE C, " 'X' | |||
| lt_e_it_ko | TYPE STANDARD TABLE OF JBRDBKO, " | |||
| lv_no_input | TYPE JBRDBKO, " | |||
| lt_e_it_koet | TYPE STANDARD TABLE OF JBRDBKOET, " | |||
| lv_i_it_sfgdt | TYPE TVS_SFGDT_TAB, " | |||
| lv_wrong_type_input | TYPE TVS_SFGDT_TAB, " | |||
| lt_e_it_abest | TYPE STANDARD TABLE OF JBRDBABEST, " | |||
| lv_i_it_xsfgdt | TYPE RMS_SFGDT_TAB, " | |||
| lt_e_it_opti | TYPE STANDARD TABLE OF JBRDBOPTI, " | |||
| lt_e_it_beweg | TYPE STANDARD TABLE OF JBRDBBEWEG, " | |||
| lt_e_it_combeweg | TYPE STANDARD TABLE OF JBRDBCOMBEWEG, " | |||
| lt_e_it_fml | TYPE STANDARD TABLE OF JBRDBFML, " | |||
| lt_e_it_hier | TYPE STANDARD TABLE OF JBRDBHIER, " | |||
| lt_error_itab | TYPE STANDARD TABLE OF BAPIERR. " |
|   CALL FUNCTION 'RM_RC_REMOVE_HIERARCHY' "RM: Auflösung der Hierarchie des Risikoträgers (flachklopfen) |
| EXPORTING | ||
| TYPE | = lv_type | |
| I_IT_SFGDT | = lv_i_it_sfgdt | |
| I_IT_XSFGDT | = lv_i_it_xsfgdt | |
| TABLES | ||
| E_IT_KO | = lt_e_it_ko | |
| E_IT_KOET | = lt_e_it_koet | |
| E_IT_ABEST | = lt_e_it_abest | |
| E_IT_OPTI | = lt_e_it_opti | |
| E_IT_BEWEG | = lt_e_it_beweg | |
| E_IT_COMBEWEG | = lt_e_it_combeweg | |
| E_IT_FML | = lt_e_it_fml | |
| E_IT_HIER | = lt_e_it_hier | |
| ERROR_ITAB | = lt_error_itab | |
| EXCEPTIONS | ||
| NO_INPUT = 1 | ||
| WRONG_TYPE_INPUT = 2 | ||
| . " RM_RC_REMOVE_HIERARCHY | ||
ABAP code using 7.40 inline data declarations to call FM RM_RC_REMOVE_HIERARCHY
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_type) | = 'X'. | |||
Search for further information about these or an SAP related objects