SAP IWB_UPDATE_USER_DEFAULTS Function Module for Set user-spec. settings for IWB









IWB_UPDATE_USER_DEFAULTS is a standard iwb update user defaults SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set user-spec. settings for IWB processing and below is the pattern details for this FM, 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 update user defaults FM, simply by entering the name IWB_UPDATE_USER_DEFAULTS into the relevant SAP transaction such as SE37 or SE38.

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



Function IWB_UPDATE_USER_DEFAULTS 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_UPDATE_USER_DEFAULTS'"Set user-spec. settings for IWB
EXPORTING
* FOLDER_ACTION = 'INSE' "
* USER = SY-UNAME "
* AREA = 'IWBHELP' "
* SUBAREA = 'IOM' "

CHANGING
* DOCU_LANGUAGE = ' ' "
* TRAN_LANGUAGE = ' ' "
* COUNTRY = ' ' "
* INDUSTRY = ' ' "
* INDUSTRY_RELEASE = ' ' "
* RELEASE = ' ' "
* WORKING_MODE = 'DOCU' "
* FOLDER = ' ' "

TABLES
* FOLDERS = "
.



IMPORTING Parameters details for IWB_UPDATE_USER_DEFAULTS

FOLDER_ACTION -

Data type: SY-UCOMM
Default: 'INSE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER -

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

AREA -

Data type: IW_AREA
Default: 'IWBHELP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBAREA -

Data type: SY-UCOMM
Default: 'IOM'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for IWB_UPDATE_USER_DEFAULTS

DOCU_LANGUAGE -

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

TRAN_LANGUAGE -

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

COUNTRY -

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

INDUSTRY -

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

INDUSTRY_RELEASE -

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

RELEASE -

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

WORKING_MODE -

Data type: IWBENTRY_S-WRK_MODE
Default: 'DOCU'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FOLDER -

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

TABLES Parameters details for IWB_UPDATE_USER_DEFAULTS

FOLDERS -

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

Copy and paste ABAP code example for IWB_UPDATE_USER_DEFAULTS 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_folders  TYPE STANDARD TABLE OF SDOKOBJECT, "   
lv_docu_language  TYPE T002-SPRAS, "   SPACE
lv_folder_action  TYPE SY-UCOMM, "   'INSE'
lv_user  TYPE SY-UNAME, "   SY-UNAME
lv_tran_language  TYPE T002-SPRAS, "   SPACE
lv_area  TYPE IW_AREA, "   'IWBHELP'
lv_country  TYPE T005-LAND1, "   SPACE
lv_subarea  TYPE SY-UCOMM, "   'IOM'
lv_industry  TYPE IWEXTEND-ID, "   SPACE
lv_industry_release  TYPE IWEXTEND-REL, "   SPACE
lv_release  TYPE IWRELEASE-RELEASE, "   SPACE
lv_working_mode  TYPE IWBENTRY_S-WRK_MODE, "   'DOCU'
lv_folder  TYPE SDOKOBJECT. "   SPACE

  CALL FUNCTION 'IWB_UPDATE_USER_DEFAULTS'  "Set user-spec. settings for IWB
    EXPORTING
         FOLDER_ACTION = lv_folder_action
         USER = lv_user
         AREA = lv_area
         SUBAREA = lv_subarea
    CHANGING
         DOCU_LANGUAGE = lv_docu_language
         TRAN_LANGUAGE = lv_tran_language
         COUNTRY = lv_country
         INDUSTRY = lv_industry
         INDUSTRY_RELEASE = lv_industry_release
         RELEASE = lv_release
         WORKING_MODE = lv_working_mode
         FOLDER = lv_folder
    TABLES
         FOLDERS = lt_folders
. " IWB_UPDATE_USER_DEFAULTS




ABAP code using 7.40 inline data declarations to call FM IWB_UPDATE_USER_DEFAULTS

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 SPRAS FROM T002 INTO @DATA(ld_docu_language).
DATA(ld_docu_language) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_folder_action).
DATA(ld_folder_action) = 'INSE'.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_user).
DATA(ld_user) = SY-UNAME.
 
"SELECT single SPRAS FROM T002 INTO @DATA(ld_tran_language).
DATA(ld_tran_language) = ' '.
 
DATA(ld_area) = 'IWBHELP'.
 
"SELECT single LAND1 FROM T005 INTO @DATA(ld_country).
DATA(ld_country) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_subarea).
DATA(ld_subarea) = 'IOM'.
 
"SELECT single ID FROM IWEXTEND INTO @DATA(ld_industry).
DATA(ld_industry) = ' '.
 
"SELECT single REL FROM IWEXTEND INTO @DATA(ld_industry_release).
DATA(ld_industry_release) = ' '.
 
"SELECT single RELEASE FROM IWRELEASE INTO @DATA(ld_release).
DATA(ld_release) = ' '.
 
"SELECT single WRK_MODE FROM IWBENTRY_S INTO @DATA(ld_working_mode).
DATA(ld_working_mode) = 'DOCU'.
 
DATA(ld_folder) = ' '.
 


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!