SAP RM_RC_REBUILD_HIERARCHY Function Module for RM: Aufbau der Hierarchie des Risikoträgers









RM_RC_REBUILD_HIERARCHY is a standard rm rc rebuild 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: Aufbau der Hierarchie des Risikoträgers 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 rebuild hierarchy FM, simply by entering the name RM_RC_REBUILD_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_REBUILD_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_REBUILD_HIERARCHY'"RM: Aufbau der Hierarchie des Risikoträgers
EXPORTING
* TYPE = 'X' "Steuerflag ('X' für xSFGDT, ' ' für SFGDT)
I_ACT_DATE = "

IMPORTING
E_IT_SFGDT = "Tabelle der Risikoträger
E_IT_XSFGDT = "Tabelle der erweiteretn Risikoträger

TABLES
* I_IT_KO = "Kopfinformation Risikoträger von DB
* I_IT_KOET = "Kopfinformation Elementartyp von DB
* I_IT_ABEST = "ABEST von DB
* I_IT_OPTI = "OPTI von DB
* I_IT_BEWEG = "BEWEG von DB
* I_IT_COMBEWEG = "RM: DB Table BEWEG Extended Category of Primary Transaction
* I_IT_FML = "
* I_IT_HIER = "Hierarchiverschlüsselungstabelle von DB
* ERROR_ITAB = "Fehlertabelle (pro Risikoträger)

EXCEPTIONS
NO_INPUT = 1 WRONG_TYPE_INPUT = 2
.



IMPORTING Parameters details for RM_RC_REBUILD_HIERARCHY

TYPE - Steuerflag ('X' für xSFGDT, ' ' für SFGDT)

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACT_DATE -

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

EXPORTING Parameters details for RM_RC_REBUILD_HIERARCHY

E_IT_SFGDT - Tabelle der Risikoträger

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

E_IT_XSFGDT - Tabelle der erweiteretn Risikoträger

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

TABLES Parameters details for RM_RC_REBUILD_HIERARCHY

I_IT_KO - Kopfinformation Risikoträger von DB

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

I_IT_KOET - Kopfinformation Elementartyp von DB

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

I_IT_ABEST - ABEST von DB

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

I_IT_OPTI - OPTI von DB

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

I_IT_BEWEG - BEWEG von DB

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

I_IT_COMBEWEG - RM: DB Table BEWEG Extended Category of Primary Transaction

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

I_IT_FML -

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

I_IT_HIER - Hierarchiverschlüsselungstabelle von DB

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

ERROR_ITAB - Fehlertabelle (pro Risikoträger)

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

EXCEPTIONS details

NO_INPUT - keine Input-Daten

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_REBUILD_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_i_it_ko  TYPE STANDARD TABLE OF JBRDBKO, "   
lv_no_input  TYPE JBRDBKO, "   
lv_e_it_sfgdt  TYPE TVS_SFGDT_TAB, "   
lt_i_it_koet  TYPE STANDARD TABLE OF JBRDBKOET, "   
lv_i_act_date  TYPE D, "   
lv_e_it_xsfgdt  TYPE RMS_SFGDT_TAB, "   
lv_wrong_type_input  TYPE RMS_SFGDT_TAB, "   
lt_i_it_abest  TYPE STANDARD TABLE OF JBRDBABEST, "   
lt_i_it_opti  TYPE STANDARD TABLE OF JBRDBOPTI, "   
lt_i_it_beweg  TYPE STANDARD TABLE OF JBRDBBEWEG, "   
lt_i_it_combeweg  TYPE STANDARD TABLE OF JBRDBCOMBEWEG, "   
lt_i_it_fml  TYPE STANDARD TABLE OF JBRDBFML, "   
lt_i_it_hier  TYPE STANDARD TABLE OF JBRDBHIER, "   
lt_error_itab  TYPE STANDARD TABLE OF BAPIERR. "   

  CALL FUNCTION 'RM_RC_REBUILD_HIERARCHY'  "RM: Aufbau der Hierarchie des Risikoträgers
    EXPORTING
         TYPE = lv_type
         I_ACT_DATE = lv_i_act_date
    IMPORTING
         E_IT_SFGDT = lv_e_it_sfgdt
         E_IT_XSFGDT = lv_e_it_xsfgdt
    TABLES
         I_IT_KO = lt_i_it_ko
         I_IT_KOET = lt_i_it_koet
         I_IT_ABEST = lt_i_it_abest
         I_IT_OPTI = lt_i_it_opti
         I_IT_BEWEG = lt_i_it_beweg
         I_IT_COMBEWEG = lt_i_it_combeweg
         I_IT_FML = lt_i_it_fml
         I_IT_HIER = lt_i_it_hier
         ERROR_ITAB = lt_error_itab
    EXCEPTIONS
        NO_INPUT = 1
        WRONG_TYPE_INPUT = 2
. " RM_RC_REBUILD_HIERARCHY




ABAP code using 7.40 inline data declarations to call FM RM_RC_REBUILD_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



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!