SAP ISU_SERVICE_SWITCH_EXECUTE Function Module for









ISU_SERVICE_SWITCH_EXECUTE is a standard isu service switch execute 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 isu service switch execute FM, simply by entering the name ISU_SERVICE_SWITCH_EXECUTE into the relevant SAP transaction such as SE37 or SE38.

Function Group: EIDE_SERVICE_SWITCH
Program Name: SAPLEIDE_SERVICE_SWITCH
Main Program: SAPLEIDE_SERVICE_SWITCH
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISU_SERVICE_SWITCH_EXECUTE 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_SERVICE_SWITCH_EXECUTE'"
EXPORTING
X_POD_INT = "
X_DIVISION = "
X_END_DATE = "
X_CONTRACT_ACCOUNT = "
X_BUSINESS_PARTNER = "
X_NEW_CONTRACT_INFO = "
* X_SWITCHDOCINFO = "
* X_SWITCHREASON = "

TABLES
* IT_SWITCH_ACTION = "

EXCEPTIONS
EXECUTION_ERROR = 1
.



IMPORTING Parameters details for ISU_SERVICE_SWITCH_EXECUTE

X_POD_INT -

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

X_DIVISION -

Data type: EANL-SPARTE
Optional: No
Call by Reference: Yes

X_END_DATE -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

X_CONTRACT_ACCOUNT -

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

X_BUSINESS_PARTNER -

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

X_NEW_CONTRACT_INFO -

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

X_SWITCHDOCINFO -

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

X_SWITCHREASON -

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

TABLES Parameters details for ISU_SERVICE_SWITCH_EXECUTE

IT_SWITCH_ACTION -

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

EXCEPTIONS details

EXECUTION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISU_SERVICE_SWITCH_EXECUTE 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_pod_int  TYPE INT_UI, "   
lv_execution_error  TYPE INT_UI, "   
lt_it_switch_action  TYPE STANDARD TABLE OF IIDESWITCHACTION, "   
lv_x_division  TYPE EANL-SPARTE, "   
lv_x_end_date  TYPE SY-DATUM, "   
lv_x_contract_account  TYPE VKONT_KK, "   
lv_x_business_partner  TYPE BU_PARTNER, "   
lv_x_new_contract_info  TYPE EVER, "   
lv_x_switchdocinfo  TYPE EIDESWTDOCINFO, "   
lv_x_switchreason  TYPE SSWTCREASON. "   

  CALL FUNCTION 'ISU_SERVICE_SWITCH_EXECUTE'  "
    EXPORTING
         X_POD_INT = lv_x_pod_int
         X_DIVISION = lv_x_division
         X_END_DATE = lv_x_end_date
         X_CONTRACT_ACCOUNT = lv_x_contract_account
         X_BUSINESS_PARTNER = lv_x_business_partner
         X_NEW_CONTRACT_INFO = lv_x_new_contract_info
         X_SWITCHDOCINFO = lv_x_switchdocinfo
         X_SWITCHREASON = lv_x_switchreason
    TABLES
         IT_SWITCH_ACTION = lt_it_switch_action
    EXCEPTIONS
        EXECUTION_ERROR = 1
. " ISU_SERVICE_SWITCH_EXECUTE




ABAP code using 7.40 inline data declarations to call FM ISU_SERVICE_SWITCH_EXECUTE

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 SPARTE FROM EANL INTO @DATA(ld_x_division).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_x_end_date).
 
 
 
 
 
 


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!