0% found this document useful (0 votes)
91 views3 pages

Badi 2

This document discusses Kernel-BAdI enhancements in SAP, including: - What a BAdI is and its advantages over source code plugins - New features of Kernel BAdIs like improved filter support and inheritance - Special optimizations for BAdIs depending on number of active implementations - How to create a switch and business function to activate and deactivate BAdI implementations at runtime

Uploaded by

khanmd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views3 pages

Badi 2

This document discusses Kernel-BAdI enhancements in SAP, including: - What a BAdI is and its advantages over source code plugins - New features of Kernel BAdIs like improved filter support and inheritance - Special optimizations for BAdIs depending on number of active implementations - How to create a switch and business function to activate and deactivate BAdI implementations at runtime

Uploaded by

khanmd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

I.

Kernel-BAdI enhancement
A BAdI
is an anticipated point of extension these points act like sockets and exist
in the original source code.
is a predefined anchor for an Object PlugIn.
has a well-defined interface in contrast to source code plugIns and is
therefore more stable to changes in the original source code.

Kernel BAdIs - New Features

Are integrated directly in the ABAP Language/Runtime


Improved filter support allows non-character filter types (packed, numeric,
string) and complex filter conditions.
Enable reusable implementation instances.
Allow for inheritance of implementations.
Can be switched by the Switch Framework. You have additional control
over which BAdI implementations are processed at runtime.
The new BAdIs are faster than the classic ones.

Special optimizations for BAdIs with

No active implementations:
o GET BADI is ignored while compiling
o CALL BADI just takes the time for a simple if-statement.
One active implementation
o Direct call of that implementation
Only implementations, that are switched on are considered.
Active Flag
o Only active implementations are considered
Enhance delivered systems at partner and customer site in the context of the
enhancement framework with own functions

Create at least one switch and one Business Function.


Assign the switch to your packages containing Enhancement Implementations. Use
transaction sfw5 to activate and deactivate the Enhancement Implementations.
CREATING A SWITCH AND SWITCHING IT ON/OFF
1. Create a Switch through SFW1. Press on Append Row. Enter the Name
of the Switch, description etc.
2. Double click on the newly entered switch name.

3. Enter the Name of the Package under the Packgs tab. Activate the
Switch. A background job SFW_ACTIVATE_SWITCH is scheduled in the
background to activate it.

Switch ZOTOCN_SWITCH created with the package YOTOCN_DEV assigned to it.


4. Create a business function through SFW2 and enter the name of the
Switch under the Switches tab. Activate it. A background job
SFW_ACTIVATE_BFUNC is scheduled in the background to activate it.

Business Function ZOTOCN_BUSFN created and the switch ZOTOCN_SWITCH


assigned to it. Note the reversible flag ticked.
5. Once the Switch and the business function are activated, the business
function can be sitched on/off using SFW5. After switching on the
business function and then activating it, the switchable objects under the

package(linked to the switch) are activated. Similarly they can also be


deactivated by switching off the business function.
Please note, it takes 30-120 minutes to switch on/off the business
function. There is background job, which gets scheduled.

Business Function Switched on

Do not deactivate a reversible Business Function in


a production system to keep data integrity.

You might also like