Beruflich Dokumente
Kultur Dokumente
1
Definition – Field Exits
2
Objectives
3
Field Exits
Field Exits
SAP R/3
System Help
ABAP Dictionary
Field 1
Field 2
Function module
4
Creating Field Exits
4
Create function module
7 Assign program/screen Import parameter
(for local field exits only) INPUT
8
Activate field exit Export parameter R
OUTPUT
5
Types of Filed Exits
6
Global Field Exits
7
Local Field Exits
• Local field exits are valid for one screen only. If you
assign the screen of a specific program to the data
element, then you will branch to a function module only
from this screen after activation.
8
Syntax
• Prefix : FIELD_EXIT_
• Name : <Data element name>_
• Suffix (optional) : 0 to 9, A to Z
9
When does it Trigger
Data Entry
Foreign Keys
10
Example
11
Example 1
Data
element
Matnr
Data
element
Matnr
Program : SAPMM03Z
Screen No. : 0100
13
Creating Global Field Exits
Run the
program
using SE38
14
Creating a Global Field Exit… step 2
Give your
Data
elements
which you
want to
create a
Field Exit
15
Creating a Global Field Exit… 3
16
Creating a Global Field Exit… 4
Write the
code and
generate it
And go back
17
Creating a Global Field Exit… 5
18
Creating a Global Field Exit… 6
It will ask u
for a
transport
request
Just create it
and say
continue
19
Creating a Global Field Exit…. 7
You have
now created
a
GLOBAL
FIELD EXIT
20
Check the Global Field Exit…1
21
Check the Global Field Exit…….2
22
Check the Global Field Exit…….3
Enter Material no
ASD123 press enter
23
Creating a Local Field Exit
Creating a Local Field Exit…….1
Select the
Global Field
Exit you have
created and
then select
Assign prog /
screen
24
Creating a Local Field Exit…….2
25
Creating a Local Field Exit…….3
26
Creating a Local Field Exit…….4
27
Creating a Local Field Exit…….5
28
Check the Local Field Exit…….1
29
Check the Local Field Exit……..2
Enter Material No
=300 and material
type then press
Enter
30
Check the Local Field Exit…….3
31
Check the Local Field Exit…….4
Enter Material
No 300 and
press Enter
If the material is
already created
it show that
material details
or a error
message other
than the error
message we
have given
should be
shown here
32
Thank You
33