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
What is the difference between a dialog program and a report?
Can we specify the next screen number with a variable?
What are spa/gpa parameters (sap memory)?
How is conversion of data types done between abap/4 & external level?
What are the different types of abap reports in sap?
What is a data dictionary? : sap abap data dictionary
What are the different methods of passing data?
What is the difference between data elements and domains? : abap data dictionary
What will be your approach towards optimizing legacy code? Will you suggest change in technology? Does OO ABAP bring any performance benefits? How will you deal with queries in a loop? How will you optimize nested loops?
What is an evaluation path? : sap abap hr
HOW TO TRANSFER VENDOR MASTER DATA FROM LEGACY SYSTEM TO SAP SYSTEM THRU LSMW (IN LSMW, USING DIRECT INPUT PROGRAM:RFBIKR00)
when do you need to create an internal table with header line ? and with out a header line?
How are the date abd time field values stored in sap?
can anyone please tell me, in orient paper mill project which fields exits for creating report.
Hello All, Requesting to all user of this site. Please post your Questions in Proper sub Category of chosen category. Some users post the questions in common category whether sub category for that is available ..like some users still post the SAP Script & ALE Related questions in common ABAP Category. Due to this it becomes very difficult to find the topic wise Questions. Please cooperate with the site & to other users. Thanks & Regards Tamseel