Professional Documents
Culture Documents
Objectives
When to apply a Field Exit. Create a Field Exit.
Field Exits
Field Exits
SAP R/3
System Help
ABAP Dictionary
Field 1 Field 2
Function module
Entry
Entry
1 2 3 4 5 6 7
Global enhancements
Function module
FIELD_EXIT_DTEL
Import parameter
INPUT
Export parameter
R
OUTPUT
Syntax
Prefix : FIELD_EXIT_ Name : <Data element name>_ Suffix (optional) : 0 to 9, A to Z
Data Entry Check Required Fields Check Field Format Your Function Module Fires Here Foreign Keys
10
Example
We will create a field exit for data element MATNR. We will create a Global Field Exit. In which we will restrict users from entering a Material No ASD123. In the second instance we will create a Local Field Exit so that it triggers only when the material no is 300 and check it using examples 1 & 2. And the filed exit should fire only in the second example.
11
Example 1
Data element Matnr
Program : SAPLMGMM , Screen No. : 0060 Note : You can also use MM02 or MM03 transaction.
12
Example 2
14
Give your Data elements which you want to create a Field Exit
15
16
17
18
It will ask u for a transport request Just create it and say continue
19
20
21
22
23
24
25
It will take you to the se37 screen with default function module name Just say create (this will not appear if the function mod already exists)
26
27
29
30
31
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