Application Development and Automation 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: 
Read only

how to activate ?

Former Member
0 Likes
1,114

I need to check the method IM_CALLED ( in the BADI WORKORDER_GOODSMVT ) is called while good movement save

or before saving the goods movement. How to check or put breakpoint and check whether is it called or not?

I tried to activate and to put break point in the above badi's method . however it is asking me the package (not accepting as local object)...

Please help me how to get hold on this ?

THANKS IN ADVANCE.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
948

Himanchu,

I did not get much chance to work on BADIs....

sankumar ,

THANK YOU SO MUCH SIR.

I did as you suggested. I have three implementations as below :

/SAPMP/CONF_GM

/SAPTRX/PP_WOGOODSMV

ZWORKORDER_GOODSMVT

I tried to code in the first two implementations ..however it is aksing me access key.

When I tried last implementation "ZWORKORDER_GOODSMVT"

I tried to activate the method...however I got the below syntax error..

Class "ZCL_IM_WORKORDER_GOODSMVT" does not contain an interface

"IF_EX_WORKORDER_GOODSMVT".

I basically wanted to put Break sy-uname(my userid)...

Please suggest me ...

Thank you .

6 REPLIES 6
Read only

Former Member
0 Likes
948

Hi,

Please search the forum before posting.

If you want to implement the BADI using transaction se19.

Regards,

Himanshu

Read only

0 Likes
948

goto se18 in menu select Enhancement implementation ->Display

it will show the list of implementations.

select any implementaion and select some method which is relevant to u. double click on the ABAP code and put a breakpoint.

Read only

Former Member
0 Likes
949

Himanchu,

I did not get much chance to work on BADIs....

sankumar ,

THANK YOU SO MUCH SIR.

I did as you suggested. I have three implementations as below :

/SAPMP/CONF_GM

/SAPTRX/PP_WOGOODSMV

ZWORKORDER_GOODSMVT

I tried to code in the first two implementations ..however it is aksing me access key.

When I tried last implementation "ZWORKORDER_GOODSMVT"

I tried to activate the method...however I got the below syntax error..

Class "ZCL_IM_WORKORDER_GOODSMVT" does not contain an interface

"IF_EX_WORKORDER_GOODSMVT".

I basically wanted to put Break sy-uname(my userid)...

Please suggest me ...

Thank you .

Read only

0 Likes
948

Hi,

Ya you have to check if the implemetation is created correctly or not when a BADI is implemeted a class is create which actually implemenmts the BADI and has a interface now in you case the interface if missing from teh implementing class go to se24 and check that class ZCL_IM_WORKORDER_GOODSMVT if in the interface tab you dont have just add interface IF_EX_WORKORDER_GOODSMVT there and then try.

REgards,

Himanshu

Read only

0 Likes
948

The /SAPTRX/... implementation is SAP's standard implementation for the SAP Event Management Application Interface. You should not be coding in there. You need to create your own implementation and code there!

Read only

Former Member
0 Likes
948

Hi SAM,

Badi Implementation will save in local object and that is true.

U can go to se18 ->give the badi name and then say enhancement implementation -

>create

Give a zimplementation name and save in local object that implemantation.

Then go to the method and put a break-point there and check whter it is triggering when required.