You are on page 1of 10

Function Module Exits

1
Definition

Function exits allow the customer to implement additional logic in a


transaction. The SAP application developer determines the points in
a transaction at which function exits are called, and which data is to
be transferred. He creates the appropriate function modules with
short text, interface and documentation. The functionality provided for
a function exit is described in the accompanying SAP documentation.

2
Objectives

• Knowing when to apply Function exits.


• Using an enhancement consisting of Function exit along with
a Program Exit.

3
Program Enhancements

4
Function Exits-Define

Calling and Creating Function Modules

PROGRAM < program_name>.


.
.
.
CALL CUSTOMER-FUNCTION '001'.
.
.
.

FUNCTION-POOL SAPLX<name>.
.
.
.
FUNCTION exit_< program_name >_ 001.
.
.
.
ENDFUNCTION.
R

5
Function Exits-Implement

Assigning SAP Enhancements to Customer Projects

Project Management
System Help

Project
Change
components Project Management
System Help

Function module exit


exit_<prog>_001
Edit
components Function Builder
System Help

FUNCTION exit_<prog>_001.
...
INCLUDE zxaaau01
.
ENDFUNCTION.
Choose
object ABAP Editor
System Help

*INCLUDE zxaaau01.

6
Function Exits-Structure

7
Function Exits-Source Code

8
Function Exits-Summary

9
Thank You

10

You might also like