2008 Aug 07 1:44 PM
Hi
I need a Badi that is triggered when saving Sales order in both Va01 and Va02
I tried with the following BADI's
BADI : BADI_SD_SALES
Implementation : /BEV1/SR_SALES_ORD_1
Method SAVE_DOCUMENT
Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
It is asking for Access key. Which i do not have.
Should i create a implementation and then create a method and then put my code there?
Anybody plz help.
2008 Aug 07 1:46 PM
Hi
I guess you are trying to change the definition. You have to create an implementation, and activate it.
If it already contains past implementations, you have to de-activate them and activate the new one.
-Pavan
2008 Aug 07 1:49 PM
Hi,
YOu have to create a implementation for the defination in tcode 'se19' .provide the BADI anme when the system asks for the defination name and after you create go to the method and put you code there and activate the implementation that should work for you.
REgards,
Himanshu Verma
2008 Aug 07 2:14 PM
The BADI: BADI-SD_SALES is only for SAP Internal USE , there is no way to Create a implementation .
So I request for a BADI which can be used by we customers......
plz reply.....
2008 Aug 07 8:37 PM
You will probably not find a BADI to suit your needs. However if you look at include program MV45AFZZ you should find two subroutines: USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT. You can put the code you need directly into these subroutines. If these have not been changed yet on your system, you will need an access key to make these changes.
Please read the documentation in the header of the subroutines for furtner information on when they are called.
Best Regards,
Chris H.