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: 

Defining Multiple BADI Interfaces

Former Member
0 Kudos

Hi All,

Is it possible to define more than one interface for a BADI? I know there is one interface that comes with the BADI definition, but I would like to add one more interface.

I went to the Implementing Class and added the new interface there, and it compiled just fine. However, the methods that come from that new interface do not get triggered, and do not appear in the BADI method list.

So, do you know if there is a way to specify an extra interface for a BADI?

Thanks!

Roman D.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Single Use Business Add-Ins

– Do NOT select the Multiple use checkbox

from the Administration tab when defining

a Single Use BAdI

– BAdI has a single Implementation

– Similar to procedures

– Return values can be expected

– Can use importing, changing and

returning parameters

– N/A

– A single implementation will be triggered

by the application program

Multiple Use Business Add-Ins

– Select the Multiple use checkbox from

the Administration tab when creating the

BAdI definition

– BAdI has multiple implementations

– Similar to event calls

– Cannot expect return values

– Can use importing and changing

parameters

– For multiple implementations there is no

sequence control because at the time of

BAdI definition it does not know which

implementation will be active

– All active implementations will be

triggered by the application program

using the BAdI

regards

Manoj

Message was edited by: Manoj Gupta

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

Hi Roman,

it is not possible to have two interfaces for BADI's, DOn't try some thing which is not possible.

Regards

vijay

Former Member
0 Kudos

Hi,

Single Use Business Add-Ins

– Do NOT select the Multiple use checkbox

from the Administration tab when defining

a Single Use BAdI

– BAdI has a single Implementation

– Similar to procedures

– Return values can be expected

– Can use importing, changing and

returning parameters

– N/A

– A single implementation will be triggered

by the application program

Multiple Use Business Add-Ins

– Select the Multiple use checkbox from

the Administration tab when creating the

BAdI definition

– BAdI has multiple implementations

– Similar to event calls

– Cannot expect return values

– Can use importing and changing

parameters

– For multiple implementations there is no

sequence control because at the time of

BAdI definition it does not know which

implementation will be active

– All active implementations will be

triggered by the application program

using the BAdI

regards

Manoj

Message was edited by: Manoj Gupta

Former Member
0 Kudos

Roman,

Yes it is possible to have multiple interfaces for a BADI, however SAP will have to provide that. We cannot create our own interface, we can only have multiple implementations of the give interfaces by SAP.

I think one of PO / Work Order BADI's has multiple interfaces.

Regards,

Ravi

note : Please mark the helpful answers