Documentos de Académico
Documentos de Profesional
Documentos de Cultura
and BADI's
Enhancements, Exits and BADI's
1 Introduction
2 Syntax Description
3 Demonstration
4 Exercises
5 HelpMe
Enhancements, Exits and BADI's
1 Introduction
2 Syntax Description
3 Demonstration
4 Exercises
5 HelpMe
Introduction
EXIT s are nothing but the R/3 Enhancements which allows you to
add your own functionality to SAP’s standard business applications
without having to modify the original applications.
• Purpose
• Use
• Challenges
Introduction
Purpose
Challenges
3
1
4
Enhancements, Exits and BADI's
1 PrepareMe
2 Syntax description
3 Demonstration
4 Exercises
5 HelpMe
ABAP DICTIONARY
Table Enhancements: There are two ways that you can add additional fields to
tables without modifying your system.
• Append Structures:
o Append structures allow you to enhance tables by adding fields to them that are
not part of the standard. With append structures, customers can add their own
fields to any table or structure they want.
o Append structures are created for use with a specific table. However, a table
can have multiple append structures assigned to it.
• Customizing Includes:
o If customers know in advance that one of the tables or structures delivered to
them by SAP needs to have customer-specific fields added to it, an SAP
application developer can include these fields in the table using a Customizing
include statement.
o The same Customizing include can be used in multiple tables or structures.
This provides for consistency in these tables and structures whenever the itself
include is altered.
ABAP DICTIONARY
Field Exits:
Field exits take you from a screen field with a data element reference
to a function module. Field exits can be either global or local.
Text Enhancements:
2 Syntax Description
3 Demonstration
4 Exercises
5 HelpMe
User Exits
Demonstration
Function Module Exits
Demonstration
Menu Exits
Demonstration
Screen Exits
Demonstration
SE18: BAdI
Definition
SE19: BAdI
Implementation
Steps:
1. Search for the BAdI corresponding to the transaction
2. Create a custom Implementation for the BAdI by adding code in the
appropriate method
3. Test that the method with custom code is invoked on executing the
transaction.
BAdI Implementation
Message is displayed
(Division not entered)
BAdIs…in the new Enhancement
Framework (ECC 6.0)
• How the new BAdIs differ from the Classic BAdI?
• Good news is that…basic thing about the BAdI remains the
same!
• Differ in the manner in which new BAdI is embedded in the
container-structure of the Enhancement Framework
• Better performance & Lower Memory consumption
• Evaluates as much information as possible during compile time
• 40-600 times faster than Classic BAdIs
• Internal handle-class integrated in the SAP Kernel
• Provides ‘switchable’ implementation(s) through use of Switch
Framework
• Special optimizations with ‘GET BADI’ & ‘CALL BADI’ (new
ABAP commands)
• Implementation Inheritance
Usage of old (classic) BAdIs versus
New BAdIs…
Specify
Implementation name
and its short text
• You can enhance the parameter interface of a function module with new,
optional formal parameters.
• You cannot include an exceptions.
Function Module Enhancement
Before Activation
After Activation
Class/Interface Enhancement
Class/Interface Enhancement
2 Syntax Description
3 Demonstration
4 Exercises
5 HelpMe
Exercises
1 Introduction
2 Syntax Description
3 Demonstration
4 Exercises
5 HelpMe
HelpMe
These function modules are always belong to function groups whose names begin
with X (X function groups).
• Include program LXaaaTOP also contains the FUNCTION-POOL statement, which may not be changed.
Therefore, you must always include the message class in parentheses when outputting messages.
• SAP application programmers can supply customers with default subroutines in include LXaaaF00.
• Subroutines, modules, and interactive events (AT…) are created as include programs and included
enhancements using include program ZXaaaZZZ.