SAP ISU_CONTRSWITCH_CREATE Function Module for Create Contract Change Without Invoicing









ISU_CONTRSWITCH_CREATE is a standard isu contrswitch create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Contract Change Without Invoicing 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 contrswitch create FM, simply by entering the name ISU_CONTRSWITCH_CREATE 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_CONTRSWITCH_CREATE 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_CONTRSWITCH_CREATE'"Create Contract Change Without Invoicing
EXPORTING
X_SSWTCREASON = "Reason for Change of Contract
* X_NODIALOG_MO = "
* X_NODIALOG_MI = "
* X_LAYOUT_MO = "Layout for Move-Out Processing
TX_CONTRACTS = "Contracts
X_CONTR_EXT = "
* X_NEW_ACCOUNT = "Contract Account Number
* X_NEW_ACCOUNTTYPE = "Contract Account Category
* X_ARRIVALDATE = "Reference Date
* X_DEPARTUREDATE = "Actual move-out date
* X_MOVEIN_SAMPLE = "Ref. Move-In Doc.
* X_AUTO_MI = "
* X_AUTO_MO = "
* X_NODIALOG = "Indicator

IMPORTING
Y_RETURNING = "Created Objects (Move-In/Out)

EXCEPTIONS
BILLED = 1 NOT_BILLED = 2 ACTION_CANCELLED = 3 ACTION_INCOMPLETE = 4 ACTION_FAILED = 5 FKLOC_FAILED = 6
.



IMPORTING Parameters details for ISU_CONTRSWITCH_CREATE

X_SSWTCREASON - Reason for Change of Contract

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

X_NODIALOG_MO -

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

X_NODIALOG_MI -

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

X_LAYOUT_MO - Layout for Move-Out Processing

Data type: EMO_TABLAYOUT
Optional: Yes
Call by Reference: Yes

TX_CONTRACTS - Contracts

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

X_CONTR_EXT -

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

X_NEW_ACCOUNT - Contract Account Number

Data type: VKONT_KK
Optional: Yes
Call by Reference: Yes

X_NEW_ACCOUNTTYPE - Contract Account Category

Data type: VKTYP_KK
Optional: Yes
Call by Reference: Yes

X_ARRIVALDATE - Reference Date

Data type: BEZUGSDAT
Optional: Yes
Call by Reference: Yes

X_DEPARTUREDATE - Actual move-out date

Data type: EDEPARTUREDATE
Optional: Yes
Call by Reference: Yes

X_MOVEIN_SAMPLE - Ref. Move-In Doc.

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

X_AUTO_MI -

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

X_AUTO_MO -

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

X_NODIALOG - Indicator

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

EXPORTING Parameters details for ISU_CONTRSWITCH_CREATE

Y_RETURNING - Created Objects (Move-In/Out)

Data type: ISU06_MOVEINOUT_RETURNING
Optional: No
Call by Reference: Yes

EXCEPTIONS details

BILLED -

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

NOT_BILLED -

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

ACTION_CANCELLED - Terminated

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

ACTION_INCOMPLETE -

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

ACTION_FAILED - Error

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

FKLOC_FAILED -

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

Copy and paste ABAP code example for ISU_CONTRSWITCH_CREATE 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_billed  TYPE STRING, "   
lv_y_returning  TYPE ISU06_MOVEINOUT_RETURNING, "   
lv_x_sswtcreason  TYPE SSWTCREASON, "   
lv_x_nodialog_mo  TYPE KENNZX, "   
lv_x_nodialog_mi  TYPE KENNZX, "   
lv_x_layout_mo  TYPE EMO_TABLAYOUT, "   
lv_tx_contracts  TYPE ISU06_T_ANLAGE_VERTRAG, "   
lv_x_contr_ext  TYPE EMI_CONTR_EXT, "   
lv_not_billed  TYPE EMI_CONTR_EXT, "   
lv_x_new_account  TYPE VKONT_KK, "   
lv_action_cancelled  TYPE VKONT_KK, "   
lv_x_new_accounttype  TYPE VKTYP_KK, "   
lv_x_arrivaldate  TYPE BEZUGSDAT, "   
lv_action_incomplete  TYPE BEZUGSDAT, "   
lv_action_failed  TYPE BEZUGSDAT, "   
lv_x_departuredate  TYPE EDEPARTUREDATE, "   
lv_fkloc_failed  TYPE EDEPARTUREDATE, "   
lv_x_movein_sample  TYPE EINZBELEG, "   
lv_x_auto_mi  TYPE ISU06_MOVEIN_AUTO, "   
lv_x_auto_mo  TYPE ISU06_MOVEOUT_AUTO, "   
lv_x_nodialog  TYPE KENNZX. "   

  CALL FUNCTION 'ISU_CONTRSWITCH_CREATE'  "Create Contract Change Without Invoicing
    EXPORTING
         X_SSWTCREASON = lv_x_sswtcreason
         X_NODIALOG_MO = lv_x_nodialog_mo
         X_NODIALOG_MI = lv_x_nodialog_mi
         X_LAYOUT_MO = lv_x_layout_mo
         TX_CONTRACTS = lv_tx_contracts
         X_CONTR_EXT = lv_x_contr_ext
         X_NEW_ACCOUNT = lv_x_new_account
         X_NEW_ACCOUNTTYPE = lv_x_new_accounttype
         X_ARRIVALDATE = lv_x_arrivaldate
         X_DEPARTUREDATE = lv_x_departuredate
         X_MOVEIN_SAMPLE = lv_x_movein_sample
         X_AUTO_MI = lv_x_auto_mi
         X_AUTO_MO = lv_x_auto_mo
         X_NODIALOG = lv_x_nodialog
    IMPORTING
         Y_RETURNING = lv_y_returning
    EXCEPTIONS
        BILLED = 1
        NOT_BILLED = 2
        ACTION_CANCELLED = 3
        ACTION_INCOMPLETE = 4
        ACTION_FAILED = 5
        FKLOC_FAILED = 6
. " ISU_CONTRSWITCH_CREATE




ABAP code using 7.40 inline data declarations to call FM ISU_CONTRSWITCH_CREATE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!