SAP BAPI_IE4N_DISMANTLE Function Module for Equipment Dismantling with Goods Movement, Notification, and CCM









BAPI_IE4N_DISMANTLE is a standard bapi ie4n dismantle SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Equipment Dismantling with Goods Movement, Notification, and CCM 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 bapi ie4n dismantle FM, simply by entering the name BAPI_IE4N_DISMANTLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: IPW5_BAPI
Program Name: SAPLIPW5_BAPI
Main Program: SAPLIPW5_BAPI
Appliation area:
Release date: 10-Jan-2007
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_IE4N_DISMANTLE 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 'BAPI_IE4N_DISMANTLE'"Equipment Dismantling with Goods Movement, Notification, and CCM
EXPORTING
* I_EQUIPMENT = "Equipment Number
* I_NO_MATERIAL_MOVEMENT = "CCM: Material Movement (`X': No Mvmt, ' ': with Mvmt)
* I_MATERIAL_EVG = "BAPI Structure for Transfer of External Material No, Ver.,
* I_MATERIAL = "Material Number
* I_SERIALNUMBER = "Serial Number
I_DISM_DATE = "Dismantling Date
I_DISM_TIME = "Time at which the InstallLoc of the equipment was changed
* I_FORCED_DISMANTLE = ' ' "Forced Dismantling
* IS_DATA_GOODS_MOVEMENT = "BAPI for IE4N: Goods Movement Data
* IS_DATA_NOTIFICATION = "Notification Data for Equipment Installation/Dismantling with Goods Movement
* I_SIMULATION = "Checkbox

TABLES
* IT_LONGTEXT = "Notification Long Text
* EXTENSION_IN = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
RETURN = "Return Parameter(s)
.



IMPORTING Parameters details for BAPI_IE4N_DISMANTLE

I_EQUIPMENT - Equipment Number

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

I_NO_MATERIAL_MOVEMENT - CCM: Material Movement (`X': No Mvmt, ' ': with Mvmt)

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

I_MATERIAL_EVG - BAPI Structure for Transfer of External Material No, Ver.,

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

I_MATERIAL - Material Number

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

I_SERIALNUMBER - Serial Number

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

I_DISM_DATE - Dismantling Date

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

I_DISM_TIME - Time at which the InstallLoc of the equipment was changed

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

I_FORCED_DISMANTLE - Forced Dismantling

Data type: BAPIFLAG-BAPIFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DATA_GOODS_MOVEMENT - BAPI for IE4N: Goods Movement Data

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

IS_DATA_NOTIFICATION - Notification Data for Equipment Installation/Dismantling with Goods Movement

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

I_SIMULATION - Checkbox

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

TABLES Parameters details for BAPI_IE4N_DISMANTLE

IT_LONGTEXT - Notification Long Text

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

EXTENSION_IN - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

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

RETURN - Return Parameter(s)

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

Copy and paste ABAP code example for BAPI_IE4N_DISMANTLE 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:
lt_it_longtext  TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI, "   
lv_i_equipment  TYPE BAPI_ITOB_PARMS-EQUIPMENT, "   
lv_i_no_material_movement  TYPE BAPIFLAG-BAPIFLAG, "   
lv_i_material_evg  TYPE BAPIMGVMATNR, "   
lv_i_material  TYPE BAPI_ITOB_EQ_ONLY-MATERIAL, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_i_serialnumber  TYPE BAPI_ITOB_EQ_ONLY-SERIALNO, "   
lv_i_dism_date  TYPE BAPI_ITOB_EQ_INSTALL_EXT-INST_DATE, "   
lv_i_dism_time  TYPE BAPI_ITOB_EQ_INSTALL_EXT-INST_TIME, "   
lv_i_forced_dismantle  TYPE BAPIFLAG-BAPIFLAG, "   SPACE
lv_is_data_goods_movement  TYPE BAPI_IE4N_GOODS_MOVEMENT, "   
lv_is_data_notification  TYPE BAPI_IE4N_NOTIFICATION, "   
lv_i_simulation  TYPE BAPIFLAG-BAPIFLAG. "   

  CALL FUNCTION 'BAPI_IE4N_DISMANTLE'  "Equipment Dismantling with Goods Movement, Notification, and CCM
    EXPORTING
         I_EQUIPMENT = lv_i_equipment
         I_NO_MATERIAL_MOVEMENT = lv_i_no_material_movement
         I_MATERIAL_EVG = lv_i_material_evg
         I_MATERIAL = lv_i_material
         I_SERIALNUMBER = lv_i_serialnumber
         I_DISM_DATE = lv_i_dism_date
         I_DISM_TIME = lv_i_dism_time
         I_FORCED_DISMANTLE = lv_i_forced_dismantle
         IS_DATA_GOODS_MOVEMENT = lv_is_data_goods_movement
         IS_DATA_NOTIFICATION = lv_is_data_notification
         I_SIMULATION = lv_i_simulation
    TABLES
         IT_LONGTEXT = lt_it_longtext
         EXTENSION_IN = lt_extension_in
         RETURN = lt_return
. " BAPI_IE4N_DISMANTLE




ABAP code using 7.40 inline data declarations to call FM BAPI_IE4N_DISMANTLE

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 EQUIPMENT FROM BAPI_ITOB_PARMS INTO @DATA(ld_i_equipment).
 
"SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_i_no_material_movement).
 
 
"SELECT single MATERIAL FROM BAPI_ITOB_EQ_ONLY INTO @DATA(ld_i_material).
 
 
 
"SELECT single SERIALNO FROM BAPI_ITOB_EQ_ONLY INTO @DATA(ld_i_serialnumber).
 
"SELECT single INST_DATE FROM BAPI_ITOB_EQ_INSTALL_EXT INTO @DATA(ld_i_dism_date).
 
"SELECT single INST_TIME FROM BAPI_ITOB_EQ_INSTALL_EXT INTO @DATA(ld_i_dism_time).
 
"SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_i_forced_dismantle).
DATA(ld_i_forced_dismantle) = ' '.
 
 
 
"SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_i_simulation).
 


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!