on ‎2020 Nov 19 2:37 PM
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.
Request clarification before answering.
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_ITMthen 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Flavio
i solved with another method.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.