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

BOM Items Delete

Former Member
0 Likes
1,047

Is there any BAPI or RFC to delete only the ITEMS of the BOM.

Please help.Its urgent.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
708

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.

4 REPLIES 4
Read only

Former Member
0 Likes
708

Hi,

Here is the link which will solve your problem

http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm

Regards

Sudheer

Read only

Former Member
0 Likes
709

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.

Read only

Former Member
0 Likes
708

Check...

[http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm]

Read only

gabriel_braun
Explorer
0 Likes
708

Hello Supriya

I suggest CSAP_MAT_BOM_MAINTAIN

Good luck