SAP Function Modules

SIW_INFO_OBJECT_CLOSE_REQUEST SAP Function module







SIW_INFO_OBJECT_CLOSE_REQUEST 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_CLOSE_REQUEST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SIW_INFO_OBJECT_CLOSE_REQUEST - SIW INFO OBJECT CLOSE REQUEST





CALL FUNCTION 'SIW_INFO_OBJECT_CLOSE_REQUEST' "
  EXPORTING
    loio =                      " sdokobject
    src_phio =                  " sdokobject    SDOK: BOR key for information object
*   dst_phio =                  " sdokobject
*   bln_end_edit = 'X'          " iwparams-flag  Single-Character Flag
*   bln_save_ok = 'X'           " iwparams-flag  Single-Character Flag
  IMPORTING
    error_msg =                 " iwerrormsg
  TABLES
    src_file_access_info =      " sdokfilaci    SDOK: Entries for document contents in internal tables
*   dst_file_access_info =      " sdokfilaci    SDOK: Entries for document contents in internal tables
    .  "  SIW_INFO_OBJECT_CLOSE_REQUEST

ABAP code example for Function Module SIW_INFO_OBJECT_CLOSE_REQUEST





The ABAP code below is a full code listing to execute function module SIW_INFO_OBJECT_CLOSE_REQUEST 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_error_msg  TYPE IWERRORMSG ,
it_src_file_access_info  TYPE STANDARD TABLE OF SDOKFILACI,"TABLES PARAM
wa_src_file_access_info  LIKE LINE OF it_src_file_access_info ,
it_dst_file_access_info  TYPE STANDARD TABLE OF SDOKFILACI,"TABLES PARAM
wa_dst_file_access_info  LIKE LINE OF it_dst_file_access_info .

DATA(ld_loio) = 'Check type of data required'.
DATA(ld_src_phio) = 'Check type of data required'.
DATA(ld_dst_phio) = 'Check type of data required'.

DATA(ld_bln_end_edit) = some text here

DATA(ld_bln_save_ok) = some text here

"populate fields of struture and append to itab
append wa_src_file_access_info to it_src_file_access_info.

"populate fields of struture and append to itab
append wa_dst_file_access_info to it_dst_file_access_info. . CALL FUNCTION 'SIW_INFO_OBJECT_CLOSE_REQUEST' EXPORTING loio = ld_loio src_phio = ld_src_phio * dst_phio = ld_dst_phio * bln_end_edit = ld_bln_end_edit * bln_save_ok = ld_bln_save_ok IMPORTING error_msg = ld_error_msg TABLES src_file_access_info = it_src_file_access_info * dst_file_access_info = it_dst_file_access_info . " SIW_INFO_OBJECT_CLOSE_REQUEST
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_error_msg  TYPE IWERRORMSG ,
ld_loio  TYPE SDOKOBJECT ,
it_src_file_access_info  TYPE STANDARD TABLE OF SDOKFILACI ,
wa_src_file_access_info  LIKE LINE OF it_src_file_access_info,
ld_src_phio  TYPE SDOKOBJECT ,
it_dst_file_access_info  TYPE STANDARD TABLE OF SDOKFILACI ,
wa_dst_file_access_info  LIKE LINE OF it_dst_file_access_info,
ld_dst_phio  TYPE SDOKOBJECT ,
ld_bln_end_edit  TYPE IWPARAMS-FLAG ,
ld_bln_save_ok  TYPE IWPARAMS-FLAG .

ld_loio = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_src_file_access_info to it_src_file_access_info.
ld_src_phio = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dst_file_access_info to it_dst_file_access_info.
ld_dst_phio = 'Check type of data required'.

ld_bln_end_edit = some text here

ld_bln_save_ok = some text here

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_CLOSE_REQUEST or its description.