SAP IW_C_CONTEXT_SET Function Module for









IW_C_CONTEXT_SET is a standard iw c context set 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 iw c context set FM, simply by entering the name IW_C_CONTEXT_SET into the relevant SAP transaction such as SE37 or SE38.

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



Function IW_C_CONTEXT_SET 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 'IW_C_CONTEXT_SET'"
EXPORTING
* LANGUAGE = "
* FOLDER_ID = "
* REFRESH_CONTEXT = ' ' "
* TRY_OTHER_LANG = ' ' "
* TRY_OTHER_INDUSTRY = ' ' "
* TRY_OTHER_COUNTRY = ' ' "
* IGNORE_INIT_VERS = ' ' "
* ACCEPT_DEL_OBJ = ' ' "
* IWB_STATE = ' ' "
* COUNTRY = "
* INDUSTRY = "
* SOURCE_LANGUAGE = "
* TARGET_LANGUAGE = "
* RELEASE = "
* TASK = ' ' "
* STRUCTURE_CLASS = "Document Class
* STRUCTURE_OBJID = "

TABLES
CONTEXT = "
.



IMPORTING Parameters details for IW_C_CONTEXT_SET

LANGUAGE -

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

FOLDER_ID -

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

REFRESH_CONTEXT -

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

TRY_OTHER_LANG -

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

TRY_OTHER_INDUSTRY -

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

TRY_OTHER_COUNTRY -

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

IGNORE_INIT_VERS -

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

ACCEPT_DEL_OBJ -

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

IWB_STATE -

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

COUNTRY -

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

INDUSTRY -

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

SOURCE_LANGUAGE -

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

TARGET_LANGUAGE -

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

RELEASE -

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

TASK -

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

STRUCTURE_CLASS - Document Class

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

STRUCTURE_OBJID -

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

TABLES Parameters details for IW_C_CONTEXT_SET

CONTEXT -

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

Copy and paste ABAP code example for IW_C_CONTEXT_SET 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_language  TYPE SY-LANGU, "   
lv_folder_id  TYPE SDOKOBJECT-OBJID, "   
lv_refresh_context  TYPE C, "   SPACE
lv_try_other_lang  TYPE IWPARAMS-FLAG, "   SPACE
lv_try_other_industry  TYPE IWPARAMS-FLAG, "   SPACE
lv_try_other_country  TYPE IWPARAMS-FLAG, "   SPACE
lv_ignore_init_vers  TYPE IWPARAMS-FLAG, "   SPACE
lv_accept_del_obj  TYPE IWPARAMS-FLAG, "   SPACE
lv_iwb_state  TYPE SDOKPROPTY-VALUE, "   SPACE
lv_country  TYPE T005-LAND1, "   
lv_industry  TYPE IWEXTEND-ID, "   
lv_source_language  TYPE SY-LANGU, "   
lv_target_language  TYPE SY-LANGU, "   
lv_release  TYPE IWEXTEND-REL, "   
lv_task  TYPE SDOKR3LLST-TASK_NAME, "   SPACE
lv_structure_class  TYPE SDOKOBJECT-CLASS, "   
lv_structure_objid  TYPE SDOKOBJECT-OBJID. "   

  CALL FUNCTION 'IW_C_CONTEXT_SET'  "
    EXPORTING
         LANGUAGE = lv_language
         FOLDER_ID = lv_folder_id
         REFRESH_CONTEXT = lv_refresh_context
         TRY_OTHER_LANG = lv_try_other_lang
         TRY_OTHER_INDUSTRY = lv_try_other_industry
         TRY_OTHER_COUNTRY = lv_try_other_country
         IGNORE_INIT_VERS = lv_ignore_init_vers
         ACCEPT_DEL_OBJ = lv_accept_del_obj
         IWB_STATE = lv_iwb_state
         COUNTRY = lv_country
         INDUSTRY = lv_industry
         SOURCE_LANGUAGE = lv_source_language
         TARGET_LANGUAGE = lv_target_language
         RELEASE = lv_release
         TASK = lv_task
         STRUCTURE_CLASS = lv_structure_class
         STRUCTURE_OBJID = lv_structure_objid
    TABLES
         CONTEXT = lt_context
. " IW_C_CONTEXT_SET




ABAP code using 7.40 inline data declarations to call FM IW_C_CONTEXT_SET

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 LANGU FROM SY INTO @DATA(ld_language).
 
"SELECT single OBJID FROM SDOKOBJECT INTO @DATA(ld_folder_id).
 
DATA(ld_refresh_context) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_try_other_lang).
DATA(ld_try_other_lang) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_try_other_industry).
DATA(ld_try_other_industry) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_try_other_country).
DATA(ld_try_other_country) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_ignore_init_vers).
DATA(ld_ignore_init_vers) = ' '.
 
"SELECT single FLAG FROM IWPARAMS INTO @DATA(ld_accept_del_obj).
DATA(ld_accept_del_obj) = ' '.
 
"SELECT single VALUE FROM SDOKPROPTY INTO @DATA(ld_iwb_state).
DATA(ld_iwb_state) = ' '.
 
"SELECT single LAND1 FROM T005 INTO @DATA(ld_country).
 
"SELECT single ID FROM IWEXTEND INTO @DATA(ld_industry).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_source_language).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_target_language).
 
"SELECT single REL FROM IWEXTEND INTO @DATA(ld_release).
 
"SELECT single TASK_NAME FROM SDOKR3LLST INTO @DATA(ld_task).
DATA(ld_task) = ' '.
 
"SELECT single CLASS FROM SDOKOBJECT INTO @DATA(ld_structure_class).
 
"SELECT single OBJID FROM SDOKOBJECT INTO @DATA(ld_structure_objid).
 


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!