SAP ISU_IDE_SUPPLIER_SWITCH Function Module for Master Data Change for Change of Supplier VV2









ISU_IDE_SUPPLIER_SWITCH is a standard isu ide supplier switch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Master Data Change for Change of Supplier VV2 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 ide supplier switch FM, simply by entering the name ISU_IDE_SUPPLIER_SWITCH into the relevant SAP transaction such as SE37 or SE38.

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



Function ISU_IDE_SUPPLIER_SWITCH 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_IDE_SUPPLIER_SWITCH'"Master Data Change for Change of Supplier VV2
EXPORTING
X_INT_POD = "Internal Key for Point of Delivery
* X_SIMULATE = "Simulation Run
* X_SWITCHREASON = "Reason for Change of Contract
X_MOVEINDATE = "Move-in Date for Switch
* X_DISTRIBUTOR = "Service Providers
X_NEW_SUPPLIER = "Service Providers
* X_CONTRACT_ACCOUNT = "Contract Account Number
* X_CONTRACT_ACCOUNT_CLASS = "Account class
* X_BUSINESS_PARTNER = "Business Partner Number
* X_NEW_CONTRACT_INFO = "IS-U Contract
* X_SWITCHNUM = "Switch Document Number

IMPORTING
YT_SERVICE_ENDDATE = "Table Type for IDE Service Structure
YT_SERVICE_STARTDATE = "Table Type for IDE Service Structure
YT_ACTIONS = "Table Type for IDE Scenario Switch Action List

EXCEPTIONS
NOT_CONSISTENT = 1 GENERAL_FAULT = 2
.



IMPORTING Parameters details for ISU_IDE_SUPPLIER_SWITCH

X_INT_POD - Internal Key for Point of Delivery

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

X_SIMULATE - Simulation Run

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

X_SWITCHREASON - Reason for Change of Contract

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

X_MOVEINDATE - Move-in Date for Switch

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

X_DISTRIBUTOR - Service Providers

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

X_NEW_SUPPLIER - Service Providers

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

X_CONTRACT_ACCOUNT - Contract Account Number

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

X_CONTRACT_ACCOUNT_CLASS - Account class

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

X_BUSINESS_PARTNER - Business Partner Number

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

X_NEW_CONTRACT_INFO - IS-U Contract

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

X_SWITCHNUM - Switch Document Number

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

EXPORTING Parameters details for ISU_IDE_SUPPLIER_SWITCH

YT_SERVICE_ENDDATE - Table Type for IDE Service Structure

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

YT_SERVICE_STARTDATE - Table Type for IDE Service Structure

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

YT_ACTIONS - Table Type for IDE Scenario Switch Action List

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

EXCEPTIONS details

NOT_CONSISTENT - Inconsistent

Data type:
Optional: No
Call by Reference: Yes

GENERAL_FAULT - General Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISU_IDE_SUPPLIER_SWITCH 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_int_pod  TYPE INT_UI, "   
lv_not_consistent  TYPE INT_UI, "   
lv_yt_service_enddate  TYPE IIDESERVICE, "   
lv_x_simulate  TYPE KENNZX, "   
lv_x_switchreason  TYPE SSWTCREASON, "   
lv_x_moveindate  TYPE EIDEMOVEINDATE, "   
lv_general_fault  TYPE EIDEMOVEINDATE, "   
lv_yt_service_startdate  TYPE IIDESERVICE, "   
lv_yt_actions  TYPE IIDESWITCHACTION, "   
lv_x_distributor  TYPE SERVICE_PROV, "   
lv_x_new_supplier  TYPE SERVICE_PROV, "   
lv_x_contract_account  TYPE VKONT_KK, "   
lv_x_contract_account_class  TYPE KTOKLASSE, "   
lv_x_business_partner  TYPE BU_PARTNER, "   
lv_x_new_contract_info  TYPE EVER, "   
lv_x_switchnum  TYPE EIDESWTNUM. "   

  CALL FUNCTION 'ISU_IDE_SUPPLIER_SWITCH'  "Master Data Change for Change of Supplier VV2
    EXPORTING
         X_INT_POD = lv_x_int_pod
         X_SIMULATE = lv_x_simulate
         X_SWITCHREASON = lv_x_switchreason
         X_MOVEINDATE = lv_x_moveindate
         X_DISTRIBUTOR = lv_x_distributor
         X_NEW_SUPPLIER = lv_x_new_supplier
         X_CONTRACT_ACCOUNT = lv_x_contract_account
         X_CONTRACT_ACCOUNT_CLASS = lv_x_contract_account_class
         X_BUSINESS_PARTNER = lv_x_business_partner
         X_NEW_CONTRACT_INFO = lv_x_new_contract_info
         X_SWITCHNUM = lv_x_switchnum
    IMPORTING
         YT_SERVICE_ENDDATE = lv_yt_service_enddate
         YT_SERVICE_STARTDATE = lv_yt_service_startdate
         YT_ACTIONS = lv_yt_actions
    EXCEPTIONS
        NOT_CONSISTENT = 1
        GENERAL_FAULT = 2
. " ISU_IDE_SUPPLIER_SWITCH




ABAP code using 7.40 inline data declarations to call FM ISU_IDE_SUPPLIER_SWITCH

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!