‎2006 Feb 20 10:59 PM
I created a field exit. Put code in function module. To check if it works or not, I put a message in the function module to display message when field is populated or left blank. The message does not display. My field exit does not work. Any help is appreciated .
Jen
‎2006 Feb 20 11:11 PM
Have you put a break point in the FM to see if it's actually going into the code?
Rob
‎2006 Feb 20 11:11 PM
Have you put a break point in the FM to see if it's actually going into the code?
Rob
‎2006 Feb 20 11:26 PM
‎2006 Feb 20 11:33 PM
Field exits are very tricky.
Have you activated the exit and assigned it to the screen you are trying to use?
Are you sure the field name is correct? I think you have to use the data element name rather than the field name.
To simulate debugging you can create a z table and insert records to it and then browse it elsewhere. The structure can be something like date/time/userid/counter as key fields and then any other data you are interested in.
‎2006 Feb 20 11:44 PM
Yes the data element name is correct and so is the screen name. Both the function module and the field exit are activated. To ensure it is working, instead of writng the data to a table , I wrote a code to display a message. Nothing happens when I go to the transaction and hit enter or click save. (This field is a check box)
‎2006 Feb 20 11:36 PM
I remember the in field exit, you have to add up Fm with Field and then activate it .After that youll be able to see the effect . i did it 4 years before for production order(CO02) field ( empst). Field exit are not recommended. Any way I dont remember the exact steps , what I had performed.
Check it out :
http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm
http://www.sapgenie.com/abap/fieldexits.htm
Pl award points if it helps you
Thanks
Message was edited by: Saquib Khan
‎2006 Feb 20 11:46 PM
This article mentions "set profile parameter abap/fieldexit to YES" . How do I do this ?
‎2006 Feb 20 11:47 PM
T-code : RZ10 or RZ11
You can set up in RZ 11 :abap/fieldexit ..
But its Basis responsibility ,be sure before setting any parameters.
Thanks
Message was edited by: Saquib Khan
‎2006 Feb 20 11:55 PM
a limitation of field exits is that they have to refer to dictionary elements - if the field is an internal data variable rather than a table or structure field you cannot use them.
‎2006 Feb 24 12:18 AM
Neil, Saquib, Rob,
I could not make this field exit work. However I found a user exit that will do what I need to do. Thanks for your help very much. I have awarded points to all of you.
Jen