‎2007 Apr 26 8:32 PM
Hello all,
I am looking at some field exit work. In transaction ME51N there is a field 'Requisitioner'. Right now, standard SAP, is this field is a plain text field with no search help (F4). User can enter whatever they want in this text field. But the requirement is to provide a search help functionality to this field. We would store a set of requisitioners in a custom table and when we do search help on this field, a list with custom table contents should appear for selection.
This has to do something with field exits. But I never worked on a field exit. Could you suggest me how to do this.
Thanks
‎2007 Apr 26 9:24 PM
Hi,
Refer to this links
http://www.sapgenie.com/abap/fieldexits.htm
http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm
http://www.sappoint.com/abap/userexit.pdf
http://www.sap-img.com/abap/what-is-user-exits.htm
http://sap.niraj.tripod.com/id21.html
http://www.sapgenie.com/abap/fieldexits.htm
Regards,
Bhaskar
‎2007 Apr 26 9:31 PM
Hi,
I believe the field exits might not work in this scenario..
You have to modify the standard sap code to give a F4 help..
OR
You probably have to modify the data element for the corresponding screen field and attach a custom search help..
Thanks,
Naren
‎2007 Apr 26 9:54 PM
Hi Narendran,
<b>You probably have to modify the data element for the corresponding screen field and attach a custom search help..</b>
How can we do this? Could you please give an example.
Thanks
‎2007 Apr 26 10:03 PM
Hi,
If you know the data element..
Get the access key for that data element..
Go to SE11
Give the data element..
Press change..
You have to give an access key...
In the search help section..Give your new searchhelp created using the custom table..
Thanks,
Naren
‎2007 Apr 26 10:10 PM
If we do like this - search help for this field would not be specific to one screen correct? I which ever screens we have this field we get a search help right?
Also for this way - I need to create a Z search help right? Please eloborate this proceedure as I never did this kind of thing before.
Thanks
‎2007 Apr 26 10:12 PM
Hi,
Yes..It will not be specific to one screen..
ALso for creating search help..check this link..
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
Thanks,
Naren
‎2007 Apr 26 10:25 PM
Hi Naren,
May be I need to go with 'Elementary search help' in my case as I need to provide the custom table name some where which I do not see in the Collective search help option. Do you have the help information for elementary search help?
I am looking to provide search help for a data element AFNAM (requisitioner). Could you please provide me the steps for creating the search help.
‎2007 Apr 26 10:38 PM
Hi,
GO to SE11.
Choose the radio button..search help..
Give the search help name..
Press create..
Choose the Elementary search help..
GIve a short description..
IN the selection method give the table name..
In the search help parameter - Give the field name of the table.
Check the EXP check box in the corresponding row..
GIve LPOS - 1
Give SPOS - 1
Activate the search help..
Thanks,
Naren
‎2007 Apr 26 10:53 PM
Naren,
One final question - with in the field exit is it not possible to provide the search help I mean doing something like
at selection-screen on value request <screen-field>.
‎2007 Apr 26 11:04 PM
Hi,
Field exits are used for validating the field values...
The field exit is a function module where you can validate..
You cannot have any event blocks like PROCESS ON VALUE-REQUEST...
The field exits will get triggered when press enter or any event...
It will not be triggered specifically for F4..
Thanks,
Naren