How do we create the Field exits?

Answer Posted / kanika

To create a field Exit pls follow the steps
1)For field exits in R/3 4.6C, execute transaction CMOD.
Then type PRFB in the command field.
2)on the top menu...click on Field exit-> create ->enter
the name of data element
3)enter the data element required for screen field to be
mandatory and Execute
4)another screen comes with a function module name
FIELD_EXIT_name of data element
5)Click create and save it to corresponding function group
6)you will get a function module with
import parameter as : INPUT
export parameter as : OUTPUT
7) in the source code write the code :
if input is initial.
message 'SALES FIELD MADATORY' type 'E'.
endif.
8)again to activate execute transaction CMOD. Then type
PRFB in the command field. on the top menu...click on Field
exit->Activate
now wherever data element is used the mandatory check will
come but you need it only for your program ,so in the same
screen click on Assign prog./screen tab and write the name
of the program and screen number where you want the
particular check

I believe field exit are not possible if structure field is
on the screen...please do the above and check..you can also
run the report RSMODPRF to create a field exit

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Synchronous and asynchronous methods in bdc ?

610


Which FM do you use to find out who is reporting to whom

5173


Where the payroll results are stored

1808


What are the advantages of different types of bdc's?

530


What are aggregated objects

563






Type casting and error handling

928


What is the function of a data element?

625


What are the aggregate objects in the dictionary? : abap data dictionary

743


What are the steps in creating screen ?

1461


Explain the systems fields used for interactive lists and lists?

530


how to use the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.

1720


What is the role of ‘refresh’ in internal table?

592


What are plan versions used for? : sap abap hr

570


How to eliminate duplicate entries in internal tables? : abap data dictionary

780


how to use table control?if suppose i have 6 records and i want more 4 records in sequence.How to handle this scenario?

1576