SAP QUALI_TREE_EXPAND Function Module for
QUALI_TREE_EXPAND is a standard quali tree expand 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 quali tree expand FM, simply by entering the name QUALI_TREE_EXPAND into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHPE_WWW_QUALI
Program Name: SAPLRHPE_WWW_QUALI
Main Program:
Appliation area:
Release date: 01-Jan-1970
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QUALI_TREE_EXPAND 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 'QUALI_TREE_EXPAND'".
EXPORTING
IV_DEPTH = "
IV_NODE_KEY = "
TABLES
CT_TREE = "
EXCEPTIONS
KEY_NOT_FOUND = 1 LEVEL_NOT_FOUND = 2
IMPORTING Parameters details for QUALI_TREE_EXPAND
IV_DEPTH -
Data type: BAPIQUALIDIR-DEPTHOptional: No
Call by Reference: No ( called with pass by value option)
IV_NODE_KEY -
Data type: CHAR12Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for QUALI_TREE_EXPAND
CT_TREE -
Data type: RHPE_WWW_TREE_NODEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
KEY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LEVEL_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QUALI_TREE_EXPAND 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_ct_tree | TYPE STANDARD TABLE OF RHPE_WWW_TREE_NODE, " | |||
| lv_iv_depth | TYPE BAPIQUALIDIR-DEPTH, " | |||
| lv_key_not_found | TYPE BAPIQUALIDIR, " | |||
| lv_iv_node_key | TYPE CHAR12, " | |||
| lv_level_not_found | TYPE CHAR12. " |
|   CALL FUNCTION 'QUALI_TREE_EXPAND' " |
| EXPORTING | ||
| IV_DEPTH | = lv_iv_depth | |
| IV_NODE_KEY | = lv_iv_node_key | |
| TABLES | ||
| CT_TREE | = lt_ct_tree | |
| EXCEPTIONS | ||
| KEY_NOT_FOUND = 1 | ||
| LEVEL_NOT_FOUND = 2 | ||
| . " QUALI_TREE_EXPAND | ||
ABAP code using 7.40 inline data declarations to call FM QUALI_TREE_EXPAND
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 DEPTH FROM BAPIQUALIDIR INTO @DATA(ld_iv_depth). | ||||
Search for further information about these or an SAP related objects