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

ParameterTypeDescriptionRequired
MATERIALCSAP_MBOM-MATNRMaterial numberYes
PLANTCSAP_MBOM-WERKSPlant—
BOM_USAGECSAP_MBOM-STLANBOM usageYes
ALTERNATIVECSAP_MBOM-STLALAlternative BOM—
VALID_FROMCSAP_MBOM-DATUVValid-from date—
CHANGE_NOCSAP_MBOM-AENNRChange number—
FL_COMMIT_AND_WAITCAPIFLAG-COMM_WAITCommit and wait for update—

Exporting parameters

ParameterTypeDescription
FL_WARNINGCAPIFLAG-FLWARNINGLog 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.

Request a custom report