SAP KPEP_WL_PS_GET_HIERARCHY_TABL Function Module for Read PS-Specific Hierarchy Table for PEP Worklist
KPEP_WL_PS_GET_HIERARCHY_TABL is a standard kpep wl ps get hierarchy tabl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read PS-Specific Hierarchy Table for PEP Worklist 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 kpep wl ps get hierarchy tabl FM, simply by entering the name KPEP_WL_PS_GET_HIERARCHY_TABL into the relevant SAP transaction such as SE37 or SE38.
Function Group: KPEP_WL_PS
Program Name: SAPLKPEP_WL_PS
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KPEP_WL_PS_GET_HIERARCHY_TABL 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 'KPEP_WL_PS_GET_HIERARCHY_TABL'"Read PS-Specific Hierarchy Table for PEP Worklist.
EXPORTING
I_WORKLISTID = "Worklist ID
* I_BUFFER_TABLES = ' ' "Fill Global Buffer
* I_REFRESH_LATE = ' ' "Delete Global Buffer (...late)
IMPORTING
E_SUPPLEMENT = "Additional Object Information
TABLES
* E_RSTHIE = "Hierarchy Table
EXCEPTIONS
WORKLIST_NOT_FOUND = 1 WRONG_WL_CATEGORY = 2 HIERARCHY_NOT_FOUND = 3 WRONG_INPUT = 4
IMPORTING Parameters details for KPEP_WL_PS_GET_HIERARCHY_TABL
I_WORKLISTID - Worklist ID
Data type: KPEP_WL_WORKLISTIDOptional: No
Call by Reference: Yes
I_BUFFER_TABLES - Fill Global Buffer
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: Yes
I_REFRESH_LATE - Delete Global Buffer (...late)
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for KPEP_WL_PS_GET_HIERARCHY_TABL
E_SUPPLEMENT - Additional Object Information
Data type: KPEP_WL_PS_SUPPLOptional: No
Call by Reference: Yes
TABLES Parameters details for KPEP_WL_PS_GET_HIERARCHY_TABL
E_RSTHIE - Hierarchy Table
Data type: RSTHIEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WORKLIST_NOT_FOUND - Worklist not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_WL_CATEGORY - Worklist Category not 'Project'
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HIERARCHY_NOT_FOUND - Hierarchy not determined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT - Incorrect entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KPEP_WL_PS_GET_HIERARCHY_TABL 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_e_rsthie | TYPE STANDARD TABLE OF RSTHIE, " | |||
| lv_e_supplement | TYPE KPEP_WL_PS_SUPPL, " | |||
| lv_i_worklistid | TYPE KPEP_WL_WORKLISTID, " | |||
| lv_worklist_not_found | TYPE KPEP_WL_WORKLISTID, " | |||
| lv_i_buffer_tables | TYPE BOOLE-BOOLE, " ' ' | |||
| lv_wrong_wl_category | TYPE BOOLE, " | |||
| lv_i_refresh_late | TYPE BOOLE-BOOLE, " ' ' | |||
| lv_hierarchy_not_found | TYPE BOOLE, " | |||
| lv_wrong_input | TYPE BOOLE. " |
|   CALL FUNCTION 'KPEP_WL_PS_GET_HIERARCHY_TABL' "Read PS-Specific Hierarchy Table for PEP Worklist |
| EXPORTING | ||
| I_WORKLISTID | = lv_i_worklistid | |
| I_BUFFER_TABLES | = lv_i_buffer_tables | |
| I_REFRESH_LATE | = lv_i_refresh_late | |
| IMPORTING | ||
| E_SUPPLEMENT | = lv_e_supplement | |
| TABLES | ||
| E_RSTHIE | = lt_e_rsthie | |
| EXCEPTIONS | ||
| WORKLIST_NOT_FOUND = 1 | ||
| WRONG_WL_CATEGORY = 2 | ||
| HIERARCHY_NOT_FOUND = 3 | ||
| WRONG_INPUT = 4 | ||
| . " KPEP_WL_PS_GET_HIERARCHY_TABL | ||
ABAP code using 7.40 inline data declarations to call FM KPEP_WL_PS_GET_HIERARCHY_TABL
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 BOOLE FROM BOOLE INTO @DATA(ld_i_buffer_tables). | ||||
| DATA(ld_i_buffer_tables) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_refresh_late). | ||||
| DATA(ld_i_refresh_late) | = ' '. | |||
Search for further information about these or an SAP related objects