RGRE_HIERARCHY_INIT_FBR is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RGRE_HIERARCHY_INIT_FBR into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RGRE
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RGRE_HIERARCHY_INIT_FBR' "
* EXPORTING
* i_rsthvkey = " rsthvkey Characteristic
* i_sel = SPACE " Hierarchy
* requester = SPACE "
* sellevel = SPACE "
* selmode = SPACE " Selection Type
* with_texts = SPACE "
* compound = SPACE "
* TABLES
* i_rsthie = " rsthie Hierarchy Table
* i_rstint = " rstint
* i_rsttyp = " rsttyp
* i_rstadd = " rstadd
* i_rsttxt = " rsttxt
* i_chngid = "
* i_edit_settings = "
. " RGRE_HIERARCHY_INIT_FBR
The ABAP code below is a full code listing to execute function module RGRE_HIERARCHY_INIT_FBR including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_i_rsthie | TYPE STANDARD TABLE OF RSTHIE,"TABLES PARAM |
| wa_i_rsthie | LIKE LINE OF it_i_rsthie , |
| it_i_rstint | TYPE STANDARD TABLE OF RSTINT,"TABLES PARAM |
| wa_i_rstint | LIKE LINE OF it_i_rstint , |
| it_i_rsttyp | TYPE STANDARD TABLE OF RSTTYP,"TABLES PARAM |
| wa_i_rsttyp | LIKE LINE OF it_i_rsttyp , |
| it_i_rstadd | TYPE STANDARD TABLE OF RSTADD,"TABLES PARAM |
| wa_i_rstadd | LIKE LINE OF it_i_rstadd , |
| it_i_rsttxt | TYPE STANDARD TABLE OF RSTTXT,"TABLES PARAM |
| wa_i_rsttxt | LIKE LINE OF it_i_rsttxt , |
| it_i_chngid | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_i_chngid | LIKE LINE OF it_i_chngid , |
| it_i_edit_settings | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_i_edit_settings | LIKE LINE OF it_i_edit_settings . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_rsthvkey | TYPE RSTHVKEY , |
| it_i_rsthie | TYPE STANDARD TABLE OF RSTHIE , |
| wa_i_rsthie | LIKE LINE OF it_i_rsthie, |
| ld_i_sel | TYPE STRING , |
| it_i_rstint | TYPE STANDARD TABLE OF RSTINT , |
| wa_i_rstint | LIKE LINE OF it_i_rstint, |
| ld_requester | TYPE STRING , |
| it_i_rsttyp | TYPE STANDARD TABLE OF RSTTYP , |
| wa_i_rsttyp | LIKE LINE OF it_i_rsttyp, |
| ld_sellevel | TYPE STRING , |
| it_i_rstadd | TYPE STANDARD TABLE OF RSTADD , |
| wa_i_rstadd | LIKE LINE OF it_i_rstadd, |
| ld_selmode | TYPE STRING , |
| it_i_rsttxt | TYPE STANDARD TABLE OF RSTTXT , |
| wa_i_rsttxt | LIKE LINE OF it_i_rsttxt, |
| ld_with_texts | TYPE STRING , |
| it_i_chngid | TYPE STANDARD TABLE OF STRING , |
| wa_i_chngid | LIKE LINE OF it_i_chngid, |
| ld_compound | TYPE STRING , |
| it_i_edit_settings | TYPE STANDARD TABLE OF STRING , |
| wa_i_edit_settings | LIKE LINE OF it_i_edit_settings. |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RGRE_HIERARCHY_INIT_FBR or its description.