SAP BOM_REMOVE Function Module for NOTRANSL: Material aus BOM ausbauen
BOM_REMOVE is a standard bom remove SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Material aus BOM ausbauen 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 bom remove FM, simply by entering the name BOM_REMOVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW5
Program Name: SAPLIPW5
Main Program: SAPLIPW5
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BOM_REMOVE 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 'BOM_REMOVE'"NOTRANSL: Material aus BOM ausbauen.
EXPORTING
IV_SIMULATION = "
* IV_NO_CHECK = ' ' "
IV_MATNR = "Material Number
* IV_FUNCID = "FID (Function Identifier)
IV_QUANT = "Quantity in Unit of Entry
IV_QUNIT = "Unit of Entry
IV_HEQUI = "Superordinate Equipment
IV_HPLNT = "
IV_BOMUS = "BOM Usage
IMPORTING
ES_BOM_ITEM = "
CHANGING
* CS_IPW4_COM = "Commun. Structure for Equipment Install/Dismantle Trans.
* CT_LOGHNDL = "Application Log: Log Handle Table
* CS_HEQUI = "Generated Table for View V_EQUI
* CS_GOODSMVT_HEADER = "
* CS_GOODSMVT_ITEM = "
* CS_GOODSMVT_CODE = "MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
EXCEPTIONS
NO_ITEM = 1 QUANT_ERROR = 2 LOG_ERROR = 3 BOM_UPD_ERROR = 4 LOCK_ERROR = 5 CHK_ERROR_DISM = 6
IMPORTING Parameters details for BOM_REMOVE
IV_SIMULATION -
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
IV_NO_CHECK -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_MATNR - Material Number
Data type: MATNROptional: No
Call by Reference: No ( called with pass by value option)
IV_FUNCID - FID (Function Identifier)
Data type: CCM_FUNCIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_QUANT - Quantity in Unit of Entry
Data type: ERFMGOptional: No
Call by Reference: No ( called with pass by value option)
IV_QUNIT - Unit of Entry
Data type: ERFMEOptional: No
Call by Reference: No ( called with pass by value option)
IV_HEQUI - Superordinate Equipment
Data type: HEQUIOptional: No
Call by Reference: No ( called with pass by value option)
IV_HPLNT -
Data type: WERKS_DOptional: No
Call by Reference: No ( called with pass by value option)
IV_BOMUS - BOM Usage
Data type: STLANOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BOM_REMOVE
ES_BOM_ITEM -
Data type: STPOBOptional: No
Call by Reference: Yes
CHANGING Parameters details for BOM_REMOVE
CS_IPW4_COM - Commun. Structure for Equipment Install/Dismantle Trans.
Data type: IPW4_COMOptional: Yes
Call by Reference: Yes
CT_LOGHNDL - Application Log: Log Handle Table
Data type: BAL_T_LOGHOptional: Yes
Call by Reference: Yes
CS_HEQUI - Generated Table for View V_EQUI
Data type: V_EQUIOptional: Yes
Call by Reference: Yes
CS_GOODSMVT_HEADER -
Data type: BAPI2017_GM_HEAD_01Optional: Yes
Call by Reference: Yes
CS_GOODSMVT_ITEM -
Data type: BAPI2017_GM_ITEM_CREATEOptional: Yes
Call by Reference: Yes
CS_GOODSMVT_CODE - MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
Data type: BAPI2017_GM_CODEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ITEM -
Data type:Optional: No
Call by Reference: Yes
QUANT_ERROR -
Data type:Optional: No
Call by Reference: Yes
LOG_ERROR -
Data type:Optional: No
Call by Reference: Yes
BOM_UPD_ERROR -
Data type:Optional: No
Call by Reference: Yes
LOCK_ERROR -
Data type:Optional: No
Call by Reference: Yes
CHK_ERROR_DISM -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BOM_REMOVE 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_no_item | TYPE STRING, " | |||
| lv_cs_ipw4_com | TYPE IPW4_COM, " | |||
| lv_es_bom_item | TYPE STPOB, " | |||
| lv_iv_simulation | TYPE CHAR1, " | |||
| lv_ct_loghndl | TYPE BAL_T_LOGH, " | |||
| lv_iv_no_check | TYPE XFELD, " SPACE | |||
| lv_quant_error | TYPE XFELD, " | |||
| lv_cs_hequi | TYPE V_EQUI, " | |||
| lv_iv_matnr | TYPE MATNR, " | |||
| lv_log_error | TYPE MATNR, " | |||
| lv_iv_funcid | TYPE CCM_FUNCID, " | |||
| lv_bom_upd_error | TYPE CCM_FUNCID, " | |||
| lv_cs_goodsmvt_header | TYPE BAPI2017_GM_HEAD_01, " | |||
| lv_iv_quant | TYPE ERFMG, " | |||
| lv_lock_error | TYPE ERFMG, " | |||
| lv_cs_goodsmvt_item | TYPE BAPI2017_GM_ITEM_CREATE, " | |||
| lv_iv_qunit | TYPE ERFME, " | |||
| lv_chk_error_dism | TYPE ERFME, " | |||
| lv_cs_goodsmvt_code | TYPE BAPI2017_GM_CODE, " | |||
| lv_iv_hequi | TYPE HEQUI, " | |||
| lv_iv_hplnt | TYPE WERKS_D, " | |||
| lv_iv_bomus | TYPE STLAN. " |
|   CALL FUNCTION 'BOM_REMOVE' "NOTRANSL: Material aus BOM ausbauen |
| EXPORTING | ||
| IV_SIMULATION | = lv_iv_simulation | |
| IV_NO_CHECK | = lv_iv_no_check | |
| IV_MATNR | = lv_iv_matnr | |
| IV_FUNCID | = lv_iv_funcid | |
| IV_QUANT | = lv_iv_quant | |
| IV_QUNIT | = lv_iv_qunit | |
| IV_HEQUI | = lv_iv_hequi | |
| IV_HPLNT | = lv_iv_hplnt | |
| IV_BOMUS | = lv_iv_bomus | |
| IMPORTING | ||
| ES_BOM_ITEM | = lv_es_bom_item | |
| CHANGING | ||
| CS_IPW4_COM | = lv_cs_ipw4_com | |
| CT_LOGHNDL | = lv_ct_loghndl | |
| CS_HEQUI | = lv_cs_hequi | |
| CS_GOODSMVT_HEADER | = lv_cs_goodsmvt_header | |
| CS_GOODSMVT_ITEM | = lv_cs_goodsmvt_item | |
| CS_GOODSMVT_CODE | = lv_cs_goodsmvt_code | |
| EXCEPTIONS | ||
| NO_ITEM = 1 | ||
| QUANT_ERROR = 2 | ||
| LOG_ERROR = 3 | ||
| BOM_UPD_ERROR = 4 | ||
| LOCK_ERROR = 5 | ||
| CHK_ERROR_DISM = 6 | ||
| . " BOM_REMOVE | ||
ABAP code using 7.40 inline data declarations to call FM BOM_REMOVE
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.| DATA(ld_iv_no_check) | = ' '. | |||
Search for further information about these or an SAP related objects