Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Field exit

Former Member
0 Likes
1,151

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,072

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

Read only

0 Likes
1,072

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

Read only

Former Member
0 Likes
1,072

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

Read only

0 Likes
1,072

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

Read only

Former Member
0 Likes
1,072

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

Read only

0 Likes
1,072

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.

Read only

Former Member
0 Likes
1,072

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

Read only

0 Likes
1,072

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>.

Read only

Former Member
0 Likes
1,072

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