SAP CSAP_MAT_BOM_DELETE Function Module for NOTRANSL: API Stücklisten: Materialstückliste löschen









CSAP_MAT_BOM_DELETE is a standard csap mat bom delete 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: API Stücklisten: Materialstückliste löschen 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 csap mat bom delete FM, simply by entering the name CSAP_MAT_BOM_DELETE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSAP
Program Name: SAPLCSAP
Main Program: SAPLCSAP
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CSAP_MAT_BOM_DELETE 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 'CSAP_MAT_BOM_DELETE'"NOTRANSL: API Stücklisten: Materialstückliste löschen
EXPORTING
MATERIAL = "Material
* PLANT = "Plant
BOM_USAGE = "BOM usage
* ALTERNATIVE = "Alternative BOM
* VALID_FROM = "Valid-from date
* CHANGE_NO = "Change number
* REVISION_LEVEL = "Revision level
* FL_NO_CHANGE_DOC = ' ' "Do not write change documents
* FL_COMMIT_AND_WAIT = ' ' "

IMPORTING
FL_WARNING = "Log contains warning messages

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CSAP_MAT_BOM_DELETE

MATERIAL - Material

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

PLANT - Plant

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

BOM_USAGE - BOM usage

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

ALTERNATIVE - Alternative BOM

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

VALID_FROM - Valid-from date

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

CHANGE_NO - Change number

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

REVISION_LEVEL - Revision level

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

FL_NO_CHANGE_DOC - Do not write change documents

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

FL_COMMIT_AND_WAIT -

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

EXPORTING Parameters details for CSAP_MAT_BOM_DELETE

FL_WARNING - Log contains warning messages

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

EXCEPTIONS details

ERROR - Terminate processing

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

Copy and paste ABAP code example for CSAP_MAT_BOM_DELETE 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_error  TYPE STRING, "   
lv_material  TYPE CSAP_MBOM-MATNR, "   
lv_fl_warning  TYPE CAPIFLAG-FLWARNING, "   
lv_plant  TYPE CSAP_MBOM-WERKS, "   
lv_bom_usage  TYPE CSAP_MBOM-STLAN, "   
lv_alternative  TYPE CSAP_MBOM-STLAL, "   
lv_valid_from  TYPE CSAP_MBOM-DATUV, "   
lv_change_no  TYPE CSAP_MBOM-AENNR, "   
lv_revision_level  TYPE CSAP_MBOM-REVLV, "   
lv_fl_no_change_doc  TYPE CAPIFLAG-NO_CHG_DOC, "   SPACE
lv_fl_commit_and_wait  TYPE CAPIFLAG-COMM_WAIT. "   SPACE

  CALL FUNCTION 'CSAP_MAT_BOM_DELETE'  "NOTRANSL: API Stücklisten: Materialstückliste löschen
    EXPORTING
         MATERIAL = lv_material
         PLANT = lv_plant
         BOM_USAGE = lv_bom_usage
         ALTERNATIVE = lv_alternative
         VALID_FROM = lv_valid_from
         CHANGE_NO = lv_change_no
         REVISION_LEVEL = lv_revision_level
         FL_NO_CHANGE_DOC = lv_fl_no_change_doc
         FL_COMMIT_AND_WAIT = lv_fl_commit_and_wait
    IMPORTING
         FL_WARNING = lv_fl_warning
    EXCEPTIONS
        ERROR = 1
. " CSAP_MAT_BOM_DELETE




ABAP code using 7.40 inline data declarations to call FM CSAP_MAT_BOM_DELETE

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 MATNR FROM CSAP_MBOM INTO @DATA(ld_material).
 
"SELECT single FLWARNING FROM CAPIFLAG INTO @DATA(ld_fl_warning).
 
"SELECT single WERKS FROM CSAP_MBOM INTO @DATA(ld_plant).
 
"SELECT single STLAN FROM CSAP_MBOM INTO @DATA(ld_bom_usage).
 
"SELECT single STLAL FROM CSAP_MBOM INTO @DATA(ld_alternative).
 
"SELECT single DATUV FROM CSAP_MBOM INTO @DATA(ld_valid_from).
 
"SELECT single AENNR FROM CSAP_MBOM INTO @DATA(ld_change_no).
 
"SELECT single REVLV FROM CSAP_MBOM INTO @DATA(ld_revision_level).
 
"SELECT single NO_CHG_DOC FROM CAPIFLAG INTO @DATA(ld_fl_no_change_doc).
DATA(ld_fl_no_change_doc) = ' '.
 
"SELECT single COMM_WAIT FROM CAPIFLAG INTO @DATA(ld_fl_commit_and_wait).
DATA(ld_fl_commit_and_wait) = ' '.
 


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!