‎2007 Sep 04 12:06 AM
like delete items of the list bom the Function CSAP_MAT_BOM_MAINTAIN:
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
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.
when using the previous code, does not eliminate the items.
please a code can facilitate me where it eliminates the items of the list
‎2007 Sep 04 12:18 AM
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
<b>gt_stpo_api03-component = 'Pass componet'.</b>
APPEND gt_stpo_api03.
Try to use comitt work after FM.
Check the FM IDOC_INPUT_BOMMAT ,this fm use CSAP_MAT_BOM_MAINTAIN FM
Thanks
Seshu
‎2007 Sep 04 12:18 AM
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
<b>gt_stpo_api03-component = 'Pass componet'.</b>
APPEND gt_stpo_api03.
Try to use comitt work after FM.
Check the FM IDOC_INPUT_BOMMAT ,this fm use CSAP_MAT_BOM_MAINTAIN FM
Thanks
Seshu
‎2007 Sep 04 12:27 AM