SAP IWB_STRUCTURE_CNTL Function Module for









IWB_STRUCTURE_CNTL is a standard iwb structure cntl 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 iwb structure cntl FM, simply by entering the name IWB_STRUCTURE_CNTL into the relevant SAP transaction such as SE37 or SE38.

Function Group: SI12
Program Name: SAPLSI12
Main Program: SAPLSI12
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function IWB_STRUCTURE_CNTL 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 'IWB_STRUCTURE_CNTL'"
EXPORTING
STRUCTURE_OBJECT = "
* DOUBLE_CLICK_EVENT_FCT = "
* EXPAND_NO_CHILDREN_EVENT_FCT = "
* INITIAL_DISPLAYED_LEVELS = 2 "
* RESOLVE_INCLUDES = "
* LINK_TYPE_POS = 0 "
* NODE_SELECTION_MODE = 0 "
* SHOW_TOPIC_PROPERTIES = 'X' "
* SHOW_STRUCTURE_PROPERTIES = 'X' "
* SHOW_FOLDER_PROPERTIES = 'X' "
* FORCE_FOLDER_EXPANDER = ' ' "
PROGRAM = "
* NO_SPEC_TOPIC_ICON = ' ' "
* NO_SPEC_STRUCT_ICON = ' ' "
* NO_SPEC_FOLDER_ICON = ' ' "
DYNPRO_NO = "Table control demo
* DOCK_AT = "
* LEFT = 1 "
* TOP = 1 "
* WIDTH = 400 "
* HEIGHT = 200 "
* ALIGNMENT = "

IMPORTING
ERROR_MSG = "Error message

TABLES
CONTEXT = "
* DISPLAYED_PROPERTIES = "
* CONTENTS = "
* INFO_OBJECT_PROPERTIES = "
* ATTRIBUTE_INFO = "
.



IMPORTING Parameters details for IWB_STRUCTURE_CNTL

STRUCTURE_OBJECT -

Data type: SDOKOBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

DOUBLE_CLICK_EVENT_FCT -

Data type: TFDIR-FUNCNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPAND_NO_CHILDREN_EVENT_FCT -

Data type: TFDIR-FUNCNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

INITIAL_DISPLAYED_LEVELS -

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

RESOLVE_INCLUDES -

Data type: IWPARAMS-FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

LINK_TYPE_POS -

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

NODE_SELECTION_MODE -

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

SHOW_TOPIC_PROPERTIES -

Data type: IWPARAMS-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHOW_STRUCTURE_PROPERTIES -

Data type: IWPARAMS-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHOW_FOLDER_PROPERTIES -

Data type: IWPARAMS-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORCE_FOLDER_EXPANDER -

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

PROGRAM -

Data type: SY-REPID
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SPEC_TOPIC_ICON -

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

NO_SPEC_STRUCT_ICON -

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

NO_SPEC_FOLDER_ICON -

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

DYNPRO_NO - Table control demo

Data type: SY-DYNNR
Optional: No
Call by Reference: No ( called with pass by value option)

DOCK_AT -

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

LEFT -

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

TOP -

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

WIDTH -

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

HEIGHT -

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

ALIGNMENT -

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

EXPORTING Parameters details for IWB_STRUCTURE_CNTL

ERROR_MSG - Error message

Data type: IWERRORMSG
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for IWB_STRUCTURE_CNTL

CONTEXT -

Data type: SDOKPROPTY
Optional: No
Call by Reference: No ( called with pass by value option)

DISPLAYED_PROPERTIES -

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

CONTENTS -

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

INFO_OBJECT_PROPERTIES -

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

ATTRIBUTE_INFO -

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

Copy and paste ABAP code example for IWB_STRUCTURE_CNTL 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_context  TYPE STANDARD TABLE OF SDOKPROPTY, "   
lv_error_msg  TYPE IWERRORMSG, "   
lv_structure_object  TYPE SDOKOBJECT, "   
lv_double_click_event_fct  TYPE TFDIR-FUNCNAME, "   
lv_expand_no_children_event_fct  TYPE TFDIR-FUNCNAME, "   
lv_initial_displayed_levels  TYPE I, "   2
lv_resolve_includes  TYPE IWPARAMS-FLAG, "   
lv_link_type_pos  TYPE I, "   0
lv_node_selection_mode  TYPE I, "   0
lv_show_topic_properties  TYPE IWPARAMS-FLAG, "   'X'
lv_show_structure_properties  TYPE IWPARAMS-FLAG, "   'X'
lv_show_folder_properties  TYPE IWPARAMS-FLAG, "   'X'
lv_force_folder_expander  TYPE IWPARAMS-FLAG, "   SPACE
lv_program  TYPE SY-REPID, "   
lt_displayed_properties  TYPE STANDARD TABLE OF SDOKPROPTN, "   
lv_no_spec_topic_icon  TYPE IWPARAMS-FLAG, "   SPACE
lv_no_spec_struct_icon  TYPE IWPARAMS-FLAG, "   SPACE
lv_no_spec_folder_icon  TYPE IWPARAMS-FLAG, "   SPACE
lt_contents  TYPE STANDARD TABLE OF SDOKHIER, "   
lv_dynpro_no  TYPE SY-DYNNR, "   
lv_dock_at  TYPE I, "   
lt_info_object_properties  TYPE STANDARD TABLE OF SDOKPROPTL, "   
lv_left  TYPE I, "   1
lt_attribute_info  TYPE STANDARD TABLE OF SDOKATTRIB, "   
lv_top  TYPE I, "   1
lv_width  TYPE I, "   400
lv_height  TYPE I, "   200
lv_alignment  TYPE I. "   

  CALL FUNCTION 'IWB_STRUCTURE_CNTL'  "
    EXPORTING
         STRUCTURE_OBJECT = lv_structure_object
         DOUBLE_CLICK_EVENT_FCT = lv_double_click_event_fct
         EXPAND_NO_CHILDREN_EVENT_FCT = lv_expand_no_children_event_fct
         INITIAL_DISPLAYED_LEVELS = lv_initial_displayed_levels
         RESOLVE_INCLUDES = lv_resolve_includes
         LINK_TYPE_POS = lv_link_type_pos
         NODE_SELECTION_MODE = lv_node_selection_mode
         SHOW_TOPIC_PROPERTIES = lv_show_topic_properties
         SHOW_STRUCTURE_PROPERTIES = lv_show_structure_properties
         SHOW_FOLDER_PROPERTIES = lv_show_folder_properties
         FORCE_FOLDER_EXPANDER = lv_force_folder_expander
         PROGRAM = lv_program
         NO_SPEC_TOPIC_ICON = lv_no_spec_topic_icon
         NO_SPEC_STRUCT_ICON = lv_no_spec_struct_icon
         NO_SPEC_FOLDER_ICON = lv_no_spec_folder_icon
         DYNPRO_NO = lv_dynpro_no
         DOCK_AT = lv_dock_at
         LEFT = lv_left
         TOP = lv_top
         WIDTH = lv_width
         HEIGHT = lv_height
         ALIGNMENT = lv_alignment
    IMPORTING
         ERROR_MSG = lv_error_msg
    TABLES
         CONTEXT = lt_context
         DISPLAYED_PROPERTIES = lt_displayed_properties
         CONTENTS = lt_contents
         INFO_OBJECT_PROPERTIES = lt_info_object_properties
         ATTRIBUTE_INFO = lt_attribute_info
. " IWB_STRUCTURE_CNTL




ABAP code using 7.40 inline data declarations to call FM IWB_STRUCTURE_CNTL

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 FUNCNAME FROM TFDIR INTO @DATA(ld_double_click_event_fct).
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_expand_no_children_event_fct).
 
DATA(ld_initial_displayed_levels) = 2.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_resolve_includes).
 
 
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_show_topic_properties).
DATA(ld_show_topic_properties) = 'X'.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_show_structure_properties).
DATA(ld_show_structure_properties) = 'X'.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_show_folder_properties).
DATA(ld_show_folder_properties) = 'X'.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_force_folder_expander).
DATA(ld_force_folder_expander) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_program).
 
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_no_spec_topic_icon).
DATA(ld_no_spec_topic_icon) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_no_spec_struct_icon).
DATA(ld_no_spec_struct_icon) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_no_spec_folder_icon).
DATA(ld_no_spec_folder_icon) = ' '.
 
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_dynpro_no).
 
 
 
DATA(ld_left) = 1.
 
 
DATA(ld_top) = 1.
 
DATA(ld_width) = 400.
 
DATA(ld_height) = 200.
 
 


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!