Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I need a Badi that is triggered when saving Sales order in both Va01 and Va

Former Member
0 Kudos
124

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.

4 REPLIES 4

Former Member
0 Kudos
76

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

Former Member
0 Kudos
76

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

0 Kudos
76

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.....

0 Kudos
76

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.