2008 Oct 23 6:39 PM
hi,
in VA02 when i delete a sales item, i need to check something and if that validates to true, i dont want to allow the user to delete that item.
i was able to trace up to a level where when user clicks on the minus icon in the materials window and confirms by clicking Yes, a BADI called BADI_SD_SALES_ADDON is called.
but SAP fails to get a handle of it's class which is CL_EX_BADI_SD_SALES_ADDON. I am not sure how i implement my code inside this class!! I cannot implement BADI_SD_SALES_ADDON as SAP does not allow me to do so.. what shall i do ?
i think if i make SAP to get the handle of CL_EX_BADI_SD_SALES_ADDON then if i write my code inside this class as an implicit enhancement ?? I am not sure.
any suggestions please ?
thks
hi,
in VA02 when i delete a sales item, i need to check something and if that validates to true, i dont want to allow the user to delete that item.
i was able to trace up to a level where when user clicks on the minus icon in the materials window and confirms by clicking Yes, a BADI called BADI_SD_SALES_ADDON is called.
but SAP fails to get a handle of it's class which is CL_EX_BADI_SD_SALES_ADDON. I am not sure how i implement my code inside this class!! I cannot implement BADI_SD_SALES_ADDON as SAP does not allow me to do so.. what shall i do ?
i think if i make SAP to get the handle of CL_EX_BADI_SD_SALES_ADDON then if i write my code inside this class as an implicit enhancement ?? I am not sure.
any suggestions please ?
thks
2008 Oct 23 6:42 PM
Hi,
The BADI BADI_SD_SALES_ADDON is used for internal SAP purpose..Check the BADI in SE18..The withinsap checkbox is checked..
Try using the userexit USEREXIT_CHECK_VBAP in MV45AFZB.
Thanks
Naren
2008 Oct 23 6:47 PM
Hi Narendran,
I tried using the user exit check vbap, but the code there gets executed only when i add an item, not when i delete the item.
thats why i started looking at badis...
any other user exits or tips ?
thks
2008 Oct 23 6:42 PM
2008 Oct 23 6:49 PM
Thanks Davis, the links u gave are for creating a new BADI of which I am very well aware of . But I need to know for this paricular issue of mine, how do i go ahead with the BADI class CL_EX_BADI_SD_SALES_ADDON. This is a standard BADI class, not custom one.
thks
2008 Oct 23 6:56 PM
2008 Oct 23 6:57 PM