SAP EPM_BW_EMP_ORG_HIER_EXTRACT Function Module for
EPM_BW_EMP_ORG_HIER_EXTRACT is a standard epm bw emp org hier extract 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 epm bw emp org hier extract FM, simply by entering the name EPM_BW_EMP_ORG_HIER_EXTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EPM_BW_EXTRACTION
Program Name: SAPLEPM_BW_EXTRACTION
Main Program: SAPLEPM_BW_EXTRACTION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EPM_BW_EMP_ORG_HIER_EXTRACT 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 'EPM_BW_EMP_ORG_HIER_EXTRACT'".
EXPORTING
I_S_HIEBAS = "
I_S_HIEFLAG = "
I_S_HIERSEL = "
* I_RLOGSYS = "
IMPORTING
E_S_HEADER = "
TABLES
I_T_LANGU = "
E_T_HIETEXT = "
E_T_HIENODE = "
* E_T_FOLDERT = "
EXCEPTIONS
INVALID_CHABASNM_HCLASS = 1 INVALID_HIERARCHY_FLAG = 2 INVALID_HIERARCHY_SELECT = 3 LANGU_NOT_SUPPORTED = 4 HIERARCHY_TAB_NOT_FOUND = 5 APPLICATION_ERROR = 6
IMPORTING Parameters details for EPM_BW_EMP_ORG_HIER_EXTRACT
I_S_HIEBAS -
Data type: RSAP_S_HIEBASOptional: No
Call by Reference: No ( called with pass by value option)
I_S_HIEFLAG -
Data type: RSAP_S_HIEFLAGOptional: No
Call by Reference: No ( called with pass by value option)
I_S_HIERSEL -
Data type: RSAP_S_HIER_LISTOptional: No
Call by Reference: No ( called with pass by value option)
I_RLOGSYS -
Data type: RSAP_S_REQUEST-RCVPRNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EPM_BW_EMP_ORG_HIER_EXTRACT
E_S_HEADER -
Data type: EPM_BW_S_ORG_EMP_HIER_HEADOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EPM_BW_EMP_ORG_HIER_EXTRACT
I_T_LANGU -
Data type: SBIWA_T_LANGUOptional: No
Call by Reference: Yes
E_T_HIETEXT -
Data type: RSAP_T_HIETEXTOptional: No
Call by Reference: Yes
E_T_HIENODE -
Data type: EPM_BW_S_ORG_EMP_HIEROptional: No
Call by Reference: Yes
E_T_FOLDERT -
Data type: RSAP_T_FOLDERTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INVALID_CHABASNM_HCLASS -
Data type:Optional: No
Call by Reference: Yes
INVALID_HIERARCHY_FLAG -
Data type:Optional: No
Call by Reference: Yes
INVALID_HIERARCHY_SELECT -
Data type:Optional: No
Call by Reference: Yes
LANGU_NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: Yes
HIERARCHY_TAB_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
APPLICATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EPM_BW_EMP_ORG_HIER_EXTRACT 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: | ||||
| lt_i_t_langu | TYPE STANDARD TABLE OF SBIWA_T_LANGU, " | |||
| lv_e_s_header | TYPE EPM_BW_S_ORG_EMP_HIER_HEAD, " | |||
| lv_i_s_hiebas | TYPE RSAP_S_HIEBAS, " | |||
| lv_invalid_chabasnm_hclass | TYPE RSAP_S_HIEBAS, " | |||
| lt_e_t_hietext | TYPE STANDARD TABLE OF RSAP_T_HIETEXT, " | |||
| lv_i_s_hieflag | TYPE RSAP_S_HIEFLAG, " | |||
| lv_invalid_hierarchy_flag | TYPE RSAP_S_HIEFLAG, " | |||
| lt_e_t_hienode | TYPE STANDARD TABLE OF EPM_BW_S_ORG_EMP_HIER, " | |||
| lv_i_s_hiersel | TYPE RSAP_S_HIER_LIST, " | |||
| lv_invalid_hierarchy_select | TYPE RSAP_S_HIER_LIST, " | |||
| lv_i_rlogsys | TYPE RSAP_S_REQUEST-RCVPRN, " | |||
| lt_e_t_foldert | TYPE STANDARD TABLE OF RSAP_T_FOLDERT, " | |||
| lv_langu_not_supported | TYPE RSAP_T_FOLDERT, " | |||
| lv_hierarchy_tab_not_found | TYPE RSAP_T_FOLDERT, " | |||
| lv_application_error | TYPE RSAP_T_FOLDERT. " |
|   CALL FUNCTION 'EPM_BW_EMP_ORG_HIER_EXTRACT' " |
| EXPORTING | ||
| I_S_HIEBAS | = lv_i_s_hiebas | |
| I_S_HIEFLAG | = lv_i_s_hieflag | |
| I_S_HIERSEL | = lv_i_s_hiersel | |
| I_RLOGSYS | = lv_i_rlogsys | |
| IMPORTING | ||
| E_S_HEADER | = lv_e_s_header | |
| TABLES | ||
| I_T_LANGU | = lt_i_t_langu | |
| E_T_HIETEXT | = lt_e_t_hietext | |
| E_T_HIENODE | = lt_e_t_hienode | |
| E_T_FOLDERT | = lt_e_t_foldert | |
| EXCEPTIONS | ||
| INVALID_CHABASNM_HCLASS = 1 | ||
| INVALID_HIERARCHY_FLAG = 2 | ||
| INVALID_HIERARCHY_SELECT = 3 | ||
| LANGU_NOT_SUPPORTED = 4 | ||
| HIERARCHY_TAB_NOT_FOUND = 5 | ||
| APPLICATION_ERROR = 6 | ||
| . " EPM_BW_EMP_ORG_HIER_EXTRACT | ||
ABAP code using 7.40 inline data declarations to call FM EPM_BW_EMP_ORG_HIER_EXTRACT
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 RCVPRN FROM RSAP_S_REQUEST INTO @DATA(ld_i_rlogsys). | ||||
Search for further information about these or an SAP related objects