cancel
Showing results for 
Search instead for 
Did you mean: 

Create new methods

Former Member
0 Kudos

Hi,

l've created an implemention of a BADI.

l would like to know: How to create a new methods and parameters for that new implementation ?

Robert

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Through SE19 after doing an implementation for a BADI,inside that impl. click on tabbstrip 'Interface'->click on impl. class. Here you can find existing methods or allows to create new.

Thanks,

Eswar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Robert,

Its not possible to change the standard interface method signature of the BADI.

But you can add your own attributes and methods inside the implementing class of the standard interface method of BADI and access these defined components from it.

Just follow the below steps :

Enter into the BADI Implementation using SE19.

Go to Interface Tab.

Note the Implementing class name there.

The standard interface method of BADI is implemented in this class.

So, now go to SE24 and enter this class name in CHANGE mode.

Go to the attributes tab to add your own extra attributes,

Go to the methods tabe to add your own extra methods,

You can use these attributes inside the interface method which is again part of this class.

Also, you can call these methods from the standard interface method of the BADI.

I hope, this solves your problem.

Thanks and Regards,

Arshad

former_member188685
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Robert,

Usually the BAdI implementations do not allow creating new methods. Even if you manage to add, these will not be referred in the standard programs.

Also not allowed is modifying the existing methods' parameters. This is because these methods are called in the standard programs with a standard signature.

The implementations are generally meant only for adding code in the methods.

If you want to add new functionality, do in a separate custom class, and call those class methods in the BAdI implementation code.

If this helps you, please remember to award points and close the post.

Hope this helps,

Bhanu