SAP SWP_NODE_HIERARCHY_SELECT Function Module for
SWP_NODE_HIERARCHY_SELECT is a standard swp node hierarchy 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 swp node hierarchy select FM, simply by entering the name SWP_NODE_HIERARCHY_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWP1
Program Name: SAPLSWP1
Main Program: SAPLSWP1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWP_NODE_HIERARCHY_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 'SWP_NODE_HIERARCHY_SELECT'".
EXPORTING
IM_FI_ID = "
* IM_FI_RELEASE = SY-SAPRL "
* IM_INCLUDE_COMP_NODES = 'X' "
* IM_INCLUDE_CANC_NODES = 'X' "
IMPORTING
ET_SWPNODE = "
ET_SWPNODEWI = "
ET_JOIN = "
IMPORTING Parameters details for SWP_NODE_HIERARCHY_SELECT
IM_FI_ID -
Data type: SWW_WIIDOptional: No
Call by Reference: Yes
IM_FI_RELEASE -
Data type: SYSAPRLDefault: SY-SAPRL
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_INCLUDE_COMP_NODES -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_INCLUDE_CANC_NODES -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWP_NODE_HIERARCHY_SELECT
ET_SWPNODE -
Data type: SWPNODETOptional: No
Call by Reference: Yes
ET_SWPNODEWI -
Data type: SWP_NODES_TO_WISOptional: No
Call by Reference: Yes
ET_JOIN -
Data type: SWPJOINTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for SWP_NODE_HIERARCHY_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_im_fi_id | TYPE SWW_WIID, " | |||
| lv_et_swpnode | TYPE SWPNODET, " | |||
| lv_et_swpnodewi | TYPE SWP_NODES_TO_WIS, " | |||
| lv_im_fi_release | TYPE SYSAPRL, " SY-SAPRL | |||
| lv_et_join | TYPE SWPJOINT, " | |||
| lv_im_include_comp_nodes | TYPE FLAG, " 'X' | |||
| lv_im_include_canc_nodes | TYPE FLAG. " 'X' |
|   CALL FUNCTION 'SWP_NODE_HIERARCHY_SELECT' " |
| EXPORTING | ||
| IM_FI_ID | = lv_im_fi_id | |
| IM_FI_RELEASE | = lv_im_fi_release | |
| IM_INCLUDE_COMP_NODES | = lv_im_include_comp_nodes | |
| IM_INCLUDE_CANC_NODES | = lv_im_include_canc_nodes | |
| IMPORTING | ||
| ET_SWPNODE | = lv_et_swpnode | |
| ET_SWPNODEWI | = lv_et_swpnodewi | |
| ET_JOIN | = lv_et_join | |
| . " SWP_NODE_HIERARCHY_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM SWP_NODE_HIERARCHY_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.| DATA(ld_im_fi_release) | = SY-SAPRL. | |||
| DATA(ld_im_include_comp_nodes) | = 'X'. | |||
| DATA(ld_im_include_canc_nodes) | = 'X'. | |||
Search for further information about these or an SAP related objects