04-13-2006 4:18 PM
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.
04-13-2006 4:31 PM
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
04-13-2006 4:26 PM
Hi Roman,
it is not possible to have two interfaces for BADI's, DOn't try some thing which is not possible.
Regards
vijay
04-13-2006 4:31 PM
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
04-13-2006 4:50 PM
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