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: 

Method not defined

Former Member
0 Kudos

I've written a standard workflow task that is triggered by a standard event for a particular object type ( Accounting Documents specifically but it shouldn't particularly matter). From there, I created a custom BOR Object that is a child type of BKPF and defined a new method containing some custom ABAP code.

The custom ABAP code works great. The trigger fires correctly. But when the trigger attempts to call into the custom ABAP code it fails stating that the method type is not defined for the parent type. This is of course true, but it is defined for the child. The trigger seems to be acting on the parent class, which isn't what I want but I'm uncertain of how to change that. I'm clearly missing something simple here, but I can't think of what. Any point in the correct direction would be greatly appreciated. Thanks in advance.

1 REPLY 1

Former Member
0 Kudos

Aaron,

I was facing similar issue a few days ago.

I still do not know what solved the problem but I did these two things :

1) I realized that I was not using any of the BOR keys in my method, so I changed the type of the method from Instance dependent to Instance independent.

2) I deleted the method and created it again and released it.

One of these corrected the issue.. I am still wondering what I had done wrong.