PP
Function module
RFC
Used the same way in S/4HANA
CSAP_MAT_BOM_DELETE Delete Material BOM
Deletes a material BOM for a material, plant, usage and alternative. It is used in master data clean-up programs. Pass a change number when the deletion must be traceable, and handle the ERROR exception when the BOM is still used or does not exist.
- Function group
- CSAP
- Remote-enabled (RFC)
- Yes
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| MATERIAL | CSAP_MBOM-MATNR | Material number | Yes |
| PLANT | CSAP_MBOM-WERKS | Plant | — |
| BOM_USAGE | CSAP_MBOM-STLAN | BOM usage | Yes |
| ALTERNATIVE | CSAP_MBOM-STLAL | Alternative BOM | — |
| VALID_FROM | CSAP_MBOM-DATUV | Valid-from date | — |
| CHANGE_NO | CSAP_MBOM-AENNR | Change number | — |
| FL_COMMIT_AND_WAIT | CAPIFLAG-COMM_WAIT | Commit and wait for update | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| FL_WARNING | CAPIFLAG-FLWARNING | Log contains warnings |
Exceptions
- ERROR — Error occurred (see log)
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'CSAP_MAT_BOM_DELETE'
EXPORTING
material = lv_material
bom_usage = lv_bom_usage
IMPORTING
fl_warning = lv_fl_warning
EXCEPTIONS
error = 1
OTHERS = 2.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.