SAP ISU_CONTRACT_INSERT Function Module for INTERNAL: Create Move-In Document
ISU_CONTRACT_INSERT is a standard isu contract insert 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: Create 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 contract insert FM, simply by entering the name ISU_CONTRACT_INSERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EC66
Program Name: SAPLEC66
Main Program: SAPLEC66
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_CONTRACT_INSERT 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_CONTRACT_INSERT'"INTERNAL: Create Move-In Document.
EXPORTING
* X_VKONT = "Contract Account
* X_AUTO_MO = "
* X_CONTRACTDATA = "MDG: Transfer Structure for CRM Contract Items to IS-U
* X_NO_MESSAGE = 'X' "
* X_CONTR_EXT = "External Data for Move-Out
* X_NO_BPCA_CHANGE = "Indicator
* X_VKTYP = "Contract Account Category
* X_KUNDE = "Customer
* X_BEZUGSDAT = "Collection Date
* X_AUSZDAT = "Move-Out Date
* X_DEPARTUREDATE = "Actual move-out date
* X_UPD_ONLINE = 'X' "Indicator: Update Online
* X_NO_DIALOG = 'X' "
* X_AUTO = "
IMPORTING
Y_NEW_EEIN = "
Y_NEW_PARTNER = "
Y_NEW_ACC = "
Y_NEW_CONTACT = "
YT_BBPKEY_CREATED = "Table Type for EBBPKEY
TABLES
* TY_NEW_EVER = "
EXCEPTIONS
FOREIGN_LOCK = 1 NOT_AUTHORIZED = 2 INPUT_ERROR = 3 BILLED = 4 GENERAL_FAULT = 5
IMPORTING Parameters details for ISU_CONTRACT_INSERT
X_VKONT - Contract Account
Data type: EEIN-VKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_AUTO_MO -
Data type: ISU06_MOVEOUT_AUTOOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CONTRACTDATA - MDG: Transfer Structure for CRM Contract Items to IS-U
Data type: EPD_EVERHOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_MESSAGE -
Data type: REGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CONTR_EXT - External Data for Move-Out
Data type: EMI_CONTR_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_BPCA_CHANGE - Indicator
Data type: KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VKTYP - Contract Account Category
Data type: TFK002A-VKTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
X_KUNDE - Customer
Data type: EEIN-KUNDEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_BEZUGSDAT - Collection Date
Data type: EINZDATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_AUSZDAT - Move-Out Date
Data type: AUSZDATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DEPARTUREDATE - Actual move-out date
Data type: EDEPARTUREDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_UPD_ONLINE - Indicator: Update Online
Data type: REGEN-UPD_ONLINEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DIALOG -
Data type: REGEN-NO_DIALOGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_AUTO -
Data type: ISU06_MOVEIN_AUTOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_CONTRACT_INSERT
Y_NEW_EEIN -
Data type: EEINOptional: No
Call by Reference: No ( called with pass by value option)
Y_NEW_PARTNER -
Data type: ISU01_PARTNER_DATAOptional: No
Call by Reference: No ( called with pass by value option)
Y_NEW_ACC -
Data type: FKK20_ACCOUNTOptional: No
Call by Reference: No ( called with pass by value option)
Y_NEW_CONTACT -
Data type: BCONT-BPCONTACTOptional: No
Call by Reference: No ( called with pass by value option)
YT_BBPKEY_CREATED - Table Type for EBBPKEY
Data type: ETBBPKEYOptional: No
Call by Reference: Yes
TABLES Parameters details for ISU_CONTRACT_INSERT
TY_NEW_EVER -
Data type: EVEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Object is Currently Locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED - You are not authorized to create
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_ERROR - Input error
Data type:Optional: No
Call by Reference: Yes
BILLED - Billed
Data type:Optional: No
Call by Reference: Yes
GENERAL_FAULT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_CONTRACT_INSERT 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_vkont | TYPE EEIN-VKONT, " | |||
| lv_y_new_eein | TYPE EEIN, " | |||
| lt_ty_new_ever | TYPE STANDARD TABLE OF EVER, " | |||
| lv_foreign_lock | TYPE EVER, " | |||
| lv_x_auto_mo | TYPE ISU06_MOVEOUT_AUTO, " | |||
| lv_x_contractdata | TYPE EPD_EVERH, " | |||
| lv_x_no_message | TYPE REGEN-KENNZX, " 'X' | |||
| lv_x_contr_ext | TYPE EMI_CONTR_EXT, " | |||
| lv_x_no_bpca_change | TYPE KENNZX, " | |||
| lv_x_vktyp | TYPE TFK002A-VKTYP, " | |||
| lv_y_new_partner | TYPE ISU01_PARTNER_DATA, " | |||
| lv_not_authorized | TYPE ISU01_PARTNER_DATA, " | |||
| lv_x_kunde | TYPE EEIN-KUNDE, " | |||
| lv_y_new_acc | TYPE FKK20_ACCOUNT, " | |||
| lv_input_error | TYPE FKK20_ACCOUNT, " | |||
| lv_billed | TYPE FKK20_ACCOUNT, " | |||
| lv_x_bezugsdat | TYPE EINZDAT, " | |||
| lv_y_new_contact | TYPE BCONT-BPCONTACT, " | |||
| lv_x_auszdat | TYPE AUSZDAT, " | |||
| lv_general_fault | TYPE AUSZDAT, " | |||
| lv_yt_bbpkey_created | TYPE ETBBPKEY, " | |||
| lv_x_departuredate | TYPE EDEPARTUREDATE, " | |||
| lv_x_upd_online | TYPE REGEN-UPD_ONLINE, " 'X' | |||
| lv_x_no_dialog | TYPE REGEN-NO_DIALOG, " 'X' | |||
| lv_x_auto | TYPE ISU06_MOVEIN_AUTO. " |
|   CALL FUNCTION 'ISU_CONTRACT_INSERT' "INTERNAL: Create Move-In Document |
| EXPORTING | ||
| X_VKONT | = lv_x_vkont | |
| X_AUTO_MO | = lv_x_auto_mo | |
| X_CONTRACTDATA | = lv_x_contractdata | |
| X_NO_MESSAGE | = lv_x_no_message | |
| X_CONTR_EXT | = lv_x_contr_ext | |
| X_NO_BPCA_CHANGE | = lv_x_no_bpca_change | |
| X_VKTYP | = lv_x_vktyp | |
| X_KUNDE | = lv_x_kunde | |
| X_BEZUGSDAT | = lv_x_bezugsdat | |
| X_AUSZDAT | = lv_x_auszdat | |
| X_DEPARTUREDATE | = lv_x_departuredate | |
| X_UPD_ONLINE | = lv_x_upd_online | |
| X_NO_DIALOG | = lv_x_no_dialog | |
| X_AUTO | = lv_x_auto | |
| IMPORTING | ||
| Y_NEW_EEIN | = lv_y_new_eein | |
| Y_NEW_PARTNER | = lv_y_new_partner | |
| Y_NEW_ACC | = lv_y_new_acc | |
| Y_NEW_CONTACT | = lv_y_new_contact | |
| YT_BBPKEY_CREATED | = lv_yt_bbpkey_created | |
| TABLES | ||
| TY_NEW_EVER | = lt_ty_new_ever | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| NOT_AUTHORIZED = 2 | ||
| INPUT_ERROR = 3 | ||
| BILLED = 4 | ||
| GENERAL_FAULT = 5 | ||
| . " ISU_CONTRACT_INSERT | ||
ABAP code using 7.40 inline data declarations to call FM ISU_CONTRACT_INSERT
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 VKONT FROM EEIN INTO @DATA(ld_x_vkont). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_no_message). | ||||
| DATA(ld_x_no_message) | = 'X'. | |||
| "SELECT single VKTYP FROM TFK002A INTO @DATA(ld_x_vktyp). | ||||
| "SELECT single KUNDE FROM EEIN INTO @DATA(ld_x_kunde). | ||||
| "SELECT single BPCONTACT FROM BCONT INTO @DATA(ld_y_new_contact). | ||||
| "SELECT single UPD_ONLINE FROM REGEN INTO @DATA(ld_x_upd_online). | ||||
| DATA(ld_x_upd_online) | = 'X'. | |||
| "SELECT single NO_DIALOG FROM REGEN INTO @DATA(ld_x_no_dialog). | ||||
| DATA(ld_x_no_dialog) | = 'X'. | |||
Search for further information about these or an SAP related objects