SAP ISU_MI_OPEN_WMODE_CONTRACTS Function Module for INTERNAL: Determine WMode of Contracts for Move-In Document
ISU_MI_OPEN_WMODE_CONTRACTS is a standard isu mi open wmode contracts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Determine WMode of Contracts for Move-In Document 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 isu mi open wmode contracts FM, simply by entering the name ISU_MI_OPEN_WMODE_CONTRACTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: EC50_CONTR
Program Name: SAPLEC50_CONTR
Main Program: SAPLEC50_CONTR
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_MI_OPEN_WMODE_CONTRACTS 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 'ISU_MI_OPEN_WMODE_CONTRACTS'"INTERNAL: Determine WMode of Contracts for Move-In Document.
EXPORTING
X_WMODE = "
XT_REMOVALS = "
CHANGING
XY_VKONT = "
Y_OBJ = "
TABLES
T_VERTRAG = "
T_DB_EEINV = "
EXCEPTIONS
INPUT_ERROR = 1 NOT_FOUND = 2 FOREIGN_LOCK = 3 SYSTEM_ERROR = 4 CONTRACT_MISMATCH = 5 MASTER_DATA_INCONSISTENT = 6 NOT_AUTHORIZED = 7
IMPORTING Parameters details for ISU_MI_OPEN_WMODE_CONTRACTS
X_WMODE -
Data type: REGEN-WMODEOptional: No
Call by Reference: No ( called with pass by value option)
XT_REMOVALS -
Data type: ISU06_MO_T_REMOVALSOptional: No
Call by Reference: Yes
CHANGING Parameters details for ISU_MI_OPEN_WMODE_CONTRACTS
XY_VKONT -
Data type: FKKVK-VKONTOptional: No
Call by Reference: Yes
Y_OBJ -
Data type: ISU06_MOVEINOptional: No
Call by Reference: Yes
TABLES Parameters details for ISU_MI_OPEN_WMODE_CONTRACTS
T_VERTRAG -
Data type: ISU06_MI_T_VERTRAGOptional: No
Call by Reference: No ( called with pass by value option)
T_DB_EEINV -
Data type: ISU06_T_EEINVOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INPUT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONTRACT_MISMATCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MASTER_DATA_INCONSISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_MI_OPEN_WMODE_CONTRACTS 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: | ||||
| lv_x_wmode | TYPE REGEN-WMODE, " | |||
| lv_xy_vkont | TYPE FKKVK-VKONT, " | |||
| lt_t_vertrag | TYPE STANDARD TABLE OF ISU06_MI_T_VERTRAG, " | |||
| lv_input_error | TYPE ISU06_MI_T_VERTRAG, " | |||
| lv_y_obj | TYPE ISU06_MOVEIN, " | |||
| lv_not_found | TYPE ISU06_MOVEIN, " | |||
| lt_t_db_eeinv | TYPE STANDARD TABLE OF ISU06_T_EEINV, " | |||
| lv_xt_removals | TYPE ISU06_MO_T_REMOVALS, " | |||
| lv_foreign_lock | TYPE ISU06_MO_T_REMOVALS, " | |||
| lv_system_error | TYPE ISU06_MO_T_REMOVALS, " | |||
| lv_contract_mismatch | TYPE ISU06_MO_T_REMOVALS, " | |||
| lv_master_data_inconsistent | TYPE ISU06_MO_T_REMOVALS, " | |||
| lv_not_authorized | TYPE ISU06_MO_T_REMOVALS. " |
|   CALL FUNCTION 'ISU_MI_OPEN_WMODE_CONTRACTS' "INTERNAL: Determine WMode of Contracts for Move-In Document |
| EXPORTING | ||
| X_WMODE | = lv_x_wmode | |
| XT_REMOVALS | = lv_xt_removals | |
| CHANGING | ||
| XY_VKONT | = lv_xy_vkont | |
| Y_OBJ | = lv_y_obj | |
| TABLES | ||
| T_VERTRAG | = lt_t_vertrag | |
| T_DB_EEINV | = lt_t_db_eeinv | |
| EXCEPTIONS | ||
| INPUT_ERROR = 1 | ||
| NOT_FOUND = 2 | ||
| FOREIGN_LOCK = 3 | ||
| SYSTEM_ERROR = 4 | ||
| CONTRACT_MISMATCH = 5 | ||
| MASTER_DATA_INCONSISTENT = 6 | ||
| NOT_AUTHORIZED = 7 | ||
| . " ISU_MI_OPEN_WMODE_CONTRACTS | ||
ABAP code using 7.40 inline data declarations to call FM ISU_MI_OPEN_WMODE_CONTRACTS
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 WMODE FROM REGEN INTO @DATA(ld_x_wmode). | ||||
| "SELECT single VKONT FROM FKKVK INTO @DATA(ld_xy_vkont). | ||||
Search for further information about these or an SAP related objects