SAP S_CUS_IMG_SELECT_NODES Function Module for









S_CUS_IMG_SELECT_NODES is a standard s cus img select nodes 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 s cus img select nodes FM, simply by entering the name S_CUS_IMG_SELECT_NODES into the relevant SAP transaction such as SE37 or SE38.

Function Group: S_IMG_TOOL_3
Program Name: SAPLS_IMG_TOOL_3
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function S_CUS_IMG_SELECT_NODES 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 'S_CUS_IMG_SELECT_NODES'"
EXPORTING
* PROJECT_ID = ' ' "Project Name
* MARK_NODE_WITH_SUBNODES = ' ' "Single-Character Flag
* RETURN_ALL_SUBNODES_OF_MARKED = ' ' "Single-Character Flag

TABLES
* SELECTED_NODES = "Hierarchy Maintenance Tool Node Passing Interface
* SELECTED_REFERENCES = "List of References to Structure Items
* SELECTED_TEXTS = "General Structure Repository Node Text

EXCEPTIONS
PROJECT_IMG_DOES_NOT_EXIST = 1
.



IMPORTING Parameters details for S_CUS_IMG_SELECT_NODES

PROJECT_ID - Project Name

Data type: PROJECT_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MARK_NODE_WITH_SUBNODES - Single-Character Flag

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN_ALL_SUBNODES_OF_MARKED - Single-Character Flag

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for S_CUS_IMG_SELECT_NODES

SELECTED_NODES - Hierarchy Maintenance Tool Node Passing Interface

Data type: HIER_IFACE
Optional: Yes
Call by Reference: Yes

SELECTED_REFERENCES - List of References to Structure Items

Data type: HIER_REF
Optional: Yes
Call by Reference: Yes

SELECTED_TEXTS - General Structure Repository Node Text

Data type: HIER_TEXTS
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

PROJECT_IMG_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for S_CUS_IMG_SELECT_NODES 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_project_id  TYPE PROJECT_ID, "   SPACE
lt_selected_nodes  TYPE STANDARD TABLE OF HIER_IFACE, "   
lv_project_img_does_not_exist  TYPE HIER_IFACE, "   
lt_selected_references  TYPE STANDARD TABLE OF HIER_REF, "   
lv_mark_node_with_subnodes  TYPE HIER_TYPES-CHAR1, "   SPACE
lt_selected_texts  TYPE STANDARD TABLE OF HIER_TEXTS, "   
lv_return_all_subnodes_of_marked  TYPE HIER_TYPES-CHAR1. "   SPACE

  CALL FUNCTION 'S_CUS_IMG_SELECT_NODES'  "
    EXPORTING
         PROJECT_ID = lv_project_id
         MARK_NODE_WITH_SUBNODES = lv_mark_node_with_subnodes
         RETURN_ALL_SUBNODES_OF_MARKED = lv_return_all_subnodes_of_marked
    TABLES
         SELECTED_NODES = lt_selected_nodes
         SELECTED_REFERENCES = lt_selected_references
         SELECTED_TEXTS = lt_selected_texts
    EXCEPTIONS
        PROJECT_IMG_DOES_NOT_EXIST = 1
. " S_CUS_IMG_SELECT_NODES




ABAP code using 7.40 inline data declarations to call FM S_CUS_IMG_SELECT_NODES

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_project_id) = ' '.
 
 
 
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_mark_node_with_subnodes).
DATA(ld_mark_node_with_subnodes) = ' '.
 
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_return_all_subnodes_of_marked).
DATA(ld_return_all_subnodes_of_marked) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!