‎2008 Mar 12 3:10 PM
Is there any BAPI or RFC to delete only the ITEMS of the BOM.
Please help.Its urgent.
‎2008 Mar 12 3:15 PM
check this fm...........CSAP_MAT_BOM_MAINTAIN
sample code..........
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
gt_stpo_api03-component = 'Pass componet'.
APPEND gt_stpo_api03.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = tbl_mat_centro-matnr
plant = tbl_mat_centro-werks
bom_usage = stlan
valid_from = datuv
fl_bom_create = ' '
fl_new_item = ' '
FL_COMPLETE = ' '
i_stko = gs_stko_api01
IMPORTING
fl_warning = fl_warning
o_stko = o_stko
TABLES
t_stpo = gt_stpo_api03
EXCEPTIONS
error = 1
OTHERS = 2.
‎2008 Mar 12 3:12 PM
Hi,
Here is the link which will solve your problem
http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm
Regards
Sudheer
‎2008 Mar 12 3:15 PM
check this fm...........CSAP_MAT_BOM_MAINTAIN
sample code..........
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
gt_stpo_api03-component = 'Pass componet'.
APPEND gt_stpo_api03.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = tbl_mat_centro-matnr
plant = tbl_mat_centro-werks
bom_usage = stlan
valid_from = datuv
fl_bom_create = ' '
fl_new_item = ' '
FL_COMPLETE = ' '
i_stko = gs_stko_api01
IMPORTING
fl_warning = fl_warning
o_stko = o_stko
TABLES
t_stpo = gt_stpo_api03
EXCEPTIONS
error = 1
OTHERS = 2.
‎2008 Mar 12 3:18 PM
Check...
[http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm]
‎2008 Mar 12 3:21 PM