SAP RSAP_HIERARCHY_CATALOG_SELECT Function Module for
RSAP_HIERARCHY_CATALOG_SELECT is a standard rsap hierarchy catalog select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rsap hierarchy catalog select FM, simply by entering the name RSAP_HIERARCHY_CATALOG_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAP
Program Name: SAPLRSAP
Main Program: SAPLRSAP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSAP_HIERARCHY_CATALOG_SELECT 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 'RSAP_HIERARCHY_CATALOG_SELECT'".
EXPORTING
I_DATASOURCE = "
IMPORTING
E_S_HIEBAS = "
E_S_HIEFLAG = "
E_ONLY_HEADER = "
TABLES
* I_T_SELECT = "
* I_T_SEGFIELDS = "
* E_T_HIERSEL_TS = "
* E_T_LANGU = "
* E_T_HIETEXT = "
EXCEPTIONS
RSAP_INHERITED_ERROR = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLRSAP_001
EXIT_SAPLRSAP_002
EXIT_SAPLRSAP_003
EXIT_SAPLRSAP_004
IMPORTING Parameters details for RSAP_HIERARCHY_CATALOG_SELECT
I_DATASOURCE -
Data type: ROOSOURCEROptional: No
Call by Reference: Yes
EXPORTING Parameters details for RSAP_HIERARCHY_CATALOG_SELECT
E_S_HIEBAS -
Data type: RSAP_S_HIEBASOptional: No
Call by Reference: Yes
E_S_HIEFLAG -
Data type: RSAP_S_HIEFLAGOptional: No
Call by Reference: Yes
E_ONLY_HEADER -
Data type: SBIWA_FLAGOptional: No
Call by Reference: Yes
TABLES Parameters details for RSAP_HIERARCHY_CATALOG_SELECT
I_T_SELECT -
Data type: RSSELECTOptional: Yes
Call by Reference: Yes
I_T_SEGFIELDS -
Data type: RSSEGFDSELOptional: Yes
Call by Reference: Yes
E_T_HIERSEL_TS -
Data type: ROSHIERSEL_TSOptional: Yes
Call by Reference: Yes
E_T_LANGU -
Data type: SBIWA_T_LANGUOptional: Yes
Call by Reference: Yes
E_T_HIETEXT -
Data type: ROSHIERSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
RSAP_INHERITED_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSAP_HIERARCHY_CATALOG_SELECT 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_s_hiebas | TYPE RSAP_S_HIEBAS, " | |||
| lt_i_t_select | TYPE STANDARD TABLE OF RSSELECT, " | |||
| lv_i_datasource | TYPE ROOSOURCER, " | |||
| lv_rsap_inherited_error | TYPE ROOSOURCER, " | |||
| lv_e_s_hieflag | TYPE RSAP_S_HIEFLAG, " | |||
| lt_i_t_segfields | TYPE STANDARD TABLE OF RSSEGFDSEL, " | |||
| lv_e_only_header | TYPE SBIWA_FLAG, " | |||
| lt_e_t_hiersel_ts | TYPE STANDARD TABLE OF ROSHIERSEL_TS, " | |||
| lt_e_t_langu | TYPE STANDARD TABLE OF SBIWA_T_LANGU, " | |||
| lt_e_t_hietext | TYPE STANDARD TABLE OF ROSHIERS. " |
|   CALL FUNCTION 'RSAP_HIERARCHY_CATALOG_SELECT' " |
| EXPORTING | ||
| I_DATASOURCE | = lv_i_datasource | |
| IMPORTING | ||
| E_S_HIEBAS | = lv_e_s_hiebas | |
| E_S_HIEFLAG | = lv_e_s_hieflag | |
| E_ONLY_HEADER | = lv_e_only_header | |
| TABLES | ||
| I_T_SELECT | = lt_i_t_select | |
| I_T_SEGFIELDS | = lt_i_t_segfields | |
| E_T_HIERSEL_TS | = lt_e_t_hiersel_ts | |
| E_T_LANGU | = lt_e_t_langu | |
| E_T_HIETEXT | = lt_e_t_hietext | |
| EXCEPTIONS | ||
| RSAP_INHERITED_ERROR = 1 | ||
| . " RSAP_HIERARCHY_CATALOG_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM RSAP_HIERARCHY_CATALOG_SELECT
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