Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CSAP_MAT_BOM_MAINTAIN not working for WBS BOM

0 Kudos
435

Hi All ,
I have written the below code for CSAP_MAT_BOM_MAINTAIN , where the deletion is not working and throwing ERROR exception. Please help. It is happening for WBS BOM.
wa_stpo-item_no = lwa_data-posnr.

wa_stpo-item_categ = lwa_data-postp.
wa_stpo-component = lwa_data-idnrk.
wa_stpo-fldelete = 'X'.
APPEND wa_stpo TO gt_stpo.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = lwa_data-matnr
plant = lwa_data-werks
bom_usage = lwa_data-stlan
* ALTERNATIVE =
valid_from = '06.09.2022'
change_no = lwa_data-aennr
* REVISION_LEVEL =
i_stko = wa_stko
* FL_NO_CHANGE_DOC = ' '
* FL_COMMIT_AND_WAIT = 'X'
* FL_CAD = ' '
* FL_BOM_CREATE = ' '
* FL_NEW_ITEM = ' '
* FL_COMPLETE = ' '
* FL_DEFAULT_VALUES = 'X'
* FL_IDENTIFY_BY_GUID = ' '
* FL_RECURSIVE = ' '
* IMPORTING
* FL_WARNING =
* O_STKO =
TABLES
t_stpo = gt_stpo[]
* T_DEP_DATA =
* T_DEP_DESCR =
* T_DEP_ORDER =
* T_DEP_SOURCE =
* T_DEP_DOC =
* T_DOC_LINK =
* T_DMU_TMX =
* T_LTX_LINE =
* T_STPU =
* T_FSH_BOMD =
* T_SGT_BOMC =
EXCEPTIONS
ERROR = 1
OTHERS = 2
.
IF sy-subrc <> 0.
* Implement suitable error handling here

ENDIF.

1 REPLY 1

sorenriber
Explorer
0 Kudos
282

Hi' Sayan,

What was Your solution for this issue ?

I have similar issue for M -> Material BOM

Getting error returned, even though it is an information message....

<MESSAGE>Item (13) 00000007 00000014 Change/Maintain BOM error ignored (deletion indicator)</MESSAGE>


BR Soren