Question:
Dear guys!
I'm looking for an exit which enables the automatically deletion of an item line during the bill of material usage in VA01.
The sytem explores the bill of material correctly but then there should be the deletion of one specific compont (depending from the customer category).
Normally it should be a problem in mv45afzz/mv45afzb but I realized several problems (e.g. error message VBEP schedule lines are existing in a work ares and so on)!
Deletion during event of saving is also acceptable, of more comfortale is a function which directly suppresses the display of component which is later relevant for the removal.
Who has an idea ?
Thanks in advance !
Answer:
If you can implement Badis , there is a method ITEM_DELETE in the implementation WB2_SOPROCESS_ITEM.
You can use this .
Regards,
Mahesh
Answer:
How do you try deletion in the SAVE (MV45AFZZ) User exit?
Do you delete the entire row for that Item from XVBAP?
Instead try just setting the update indicator value (field UPDKZ) to 'D' (deletion) for that item (POSNR) in XVBAP and YVBAP tables. The system should then automatically take care of removal of Sch. lines and all.
br.