cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Prbolem to delete item position with CSAP_MAT_BOM_MAINTAIN

Former Member
0 Likes
994

Hi guys, someone could you hlep me to find error?

i try to delete item position material in a BOM. Every position and after recreate.

For recreate is not a problem, but for delete dosen't work.

this a call to FM

I want to delete alternative 50, tmpdata is da valid date from record to delete

Thanks

CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = im_matnr
plant = p_werks
bom_usage = '1'
alternative = '50'
valid_from = tmpdata
i_stko = ld_i_stko
fl_commit_and_wait = 'X'
fl_bom_create = ''
fl_new_item = ''
fl_complete = ''
IMPORTING
fl_warning = ld_fl_warning
o_stko = ld_bom_no
TABLES
t_stpo = it_t_stpo2
EXCEPTIONS
error = 1
OTHERS = 2.

Accepted Solutions (0)

Answers (3)

Answers (3)

Flavio
Active Contributor

Hi roberto.colombo,

according to the documentation attached to the mentioned FM, it seems it is able to just set the deletion flag on the component to delete;

a valid alternative could be to work with the proposals in the OSS note

488765 - Do-it-yourself EWB programming (link)

I've found this proposal very interesting and effective.

For the specific need, and as suggested in the OSS note itself, simply try with adding a break-point in the FM

CP_CC_S_DELETE_BY_ITM

then try to delete the component in a BoM using CEWB; at deletion, it will stop at the FM, so you can see how it works.

Just let me know if you need any further detail

Thanks,

Flavio

arturion
Member
0 Likes

Hi Alessio,

what about sharing your solution to us? You opened a thread here to get help and it would be really nice if you let others participate. It is one of the paradigmns of a forum like this!

Thanks and regards,

Claus

Former Member
0 Likes

Hi Flavio

i solved with another method.

Thanks

Ask a Question