SAP Function Modules

SIW_INFO_OBJECT_CREATE SAP Function module







SIW_INFO_OBJECT_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SIW_INFO_OBJECT_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SI17
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SIW_INFO_OBJECT_CREATE - SIW INFO OBJECT CREATE





CALL FUNCTION 'SIW_INFO_OBJECT_CREATE' "
* EXPORTING
*   area =                      " iwbarea-area  Area
*   folder =                    " sdokobject    Folder
*   class =                     " iwclass-class  LOIO Class
*   create_mode = SPACE         " iw_cr_mode    Mode when creating an object
  IMPORTING
    info_object =               " sdokobject    Logical info object
    error_msg =                 " iwerrormsg
    action =                    " sy-ucomm
* TABLES
*   context =                   " sdokpropty
*   initial_properties =        " sdokpropty
*   bad_properties =            " iwerrprops
*   properties =                " sdokpropty
*   props_to_hide =             " sdokproptn    SDOK: Name of object attributes
*   props_display_only =        " sdokproptn    SDOK: Name of object attributes
    .  "  SIW_INFO_OBJECT_CREATE

ABAP code example for Function Module SIW_INFO_OBJECT_CREATE





The ABAP code below is a full code listing to execute function module SIW_INFO_OBJECT_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_info_object  TYPE SDOKOBJECT ,
ld_error_msg  TYPE IWERRORMSG ,
ld_action  TYPE SY-UCOMM ,
it_context  TYPE STANDARD TABLE OF SDOKPROPTY,"TABLES PARAM
wa_context  LIKE LINE OF it_context ,
it_initial_properties  TYPE STANDARD TABLE OF SDOKPROPTY,"TABLES PARAM
wa_initial_properties  LIKE LINE OF it_initial_properties ,
it_bad_properties  TYPE STANDARD TABLE OF IWERRPROPS,"TABLES PARAM
wa_bad_properties  LIKE LINE OF it_bad_properties ,
it_properties  TYPE STANDARD TABLE OF SDOKPROPTY,"TABLES PARAM
wa_properties  LIKE LINE OF it_properties ,
it_props_to_hide  TYPE STANDARD TABLE OF SDOKPROPTN,"TABLES PARAM
wa_props_to_hide  LIKE LINE OF it_props_to_hide ,
it_props_display_only  TYPE STANDARD TABLE OF SDOKPROPTN,"TABLES PARAM
wa_props_display_only  LIKE LINE OF it_props_display_only .


DATA(ld_area) = some text here
DATA(ld_folder) = 'Check type of data required'.

DATA(ld_class) = some text here
DATA(ld_create_mode) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_context to it_context.

"populate fields of struture and append to itab
append wa_initial_properties to it_initial_properties.

"populate fields of struture and append to itab
append wa_bad_properties to it_bad_properties.

"populate fields of struture and append to itab
append wa_properties to it_properties.

"populate fields of struture and append to itab
append wa_props_to_hide to it_props_to_hide.

"populate fields of struture and append to itab
append wa_props_display_only to it_props_display_only. . CALL FUNCTION 'SIW_INFO_OBJECT_CREATE' * EXPORTING * area = ld_area * folder = ld_folder * class = ld_class * create_mode = ld_create_mode IMPORTING info_object = ld_info_object error_msg = ld_error_msg action = ld_action * TABLES * context = it_context * initial_properties = it_initial_properties * bad_properties = it_bad_properties * properties = it_properties * props_to_hide = it_props_to_hide * props_display_only = it_props_display_only . " SIW_INFO_OBJECT_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_info_object  TYPE SDOKOBJECT ,
ld_area  TYPE IWBAREA-AREA ,
it_context  TYPE STANDARD TABLE OF SDOKPROPTY ,
wa_context  LIKE LINE OF it_context,
ld_error_msg  TYPE IWERRORMSG ,
ld_folder  TYPE SDOKOBJECT ,
it_initial_properties  TYPE STANDARD TABLE OF SDOKPROPTY ,
wa_initial_properties  LIKE LINE OF it_initial_properties,
ld_action  TYPE SY-UCOMM ,
ld_class  TYPE IWCLASS-CLASS ,
it_bad_properties  TYPE STANDARD TABLE OF IWERRPROPS ,
wa_bad_properties  LIKE LINE OF it_bad_properties,
ld_create_mode  TYPE IW_CR_MODE ,
it_properties  TYPE STANDARD TABLE OF SDOKPROPTY ,
wa_properties  LIKE LINE OF it_properties,
it_props_to_hide  TYPE STANDARD TABLE OF SDOKPROPTN ,
wa_props_to_hide  LIKE LINE OF it_props_to_hide,
it_props_display_only  TYPE STANDARD TABLE OF SDOKPROPTN ,
wa_props_display_only  LIKE LINE OF it_props_display_only.


ld_area = some text here

"populate fields of struture and append to itab
append wa_context to it_context.
ld_folder = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_initial_properties to it_initial_properties.

ld_class = some text here

"populate fields of struture and append to itab
append wa_bad_properties to it_bad_properties.
ld_create_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_properties to it_properties.

"populate fields of struture and append to itab
append wa_props_to_hide to it_props_to_hide.

"populate fields of struture and append to itab
append wa_props_display_only to it_props_display_only.

SAP Documentation for FM SIW_INFO_OBJECT_CREATE


This function module creates an info object with the Knowledge WarehouseSAPgui front-end (online editing) in ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SIW_INFO_OBJECT_CREATE or its description.