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: 
Read only

Delete Items - Function CSAP_MAT_BOM_MAINTAIN

Former Member
0 Likes
3,476

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,719

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,720

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

Read only

0 Likes
1,719

THANKS