cancel
Showing results for 
Search instead for 
Did you mean: 

Search Help based on single field

Former Member
0 Kudos

We have a requirement where we need to have a single field as input and it should search on two different domains. Ex. I have an Employee ID and his Name now we need to have a single input field as string and the F4 search help should get the list of employee number and employee name on either if we enter a employee id or employee name, this should also be similar to suggest values but should display the list search on both the domains.

Kindly help with your valuable inputs.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Mohit,

Well, for your requirement it required to go with search help exit.

You can achieve your requirement as below


  • Create a search help ZSH_EMP_DATA with search help exit ZFM_EMP_DATA_EXIT
  • Attach the above search help to the single input field's context attribute
  • In search help exit, read the input and do as below
    • If input chars contain non numeric values, then get the results based on employee name
    • If input chars contain only numeric, then get the results based on employee id
  • Populate the search result with EMP ID, FIRST NAME & LAST NAME

Hope this helps you.

Regards,

Rama

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mohit,

You need to modify the search help.

Here are the steps:

1. Find the search help name by clicking on the filed > F1 > Technical. You fill find the search help below field name.

2. Go to SE11, Click on search help tick mark and enter the Search help. Then go to included search helps. Included search helps are basically tabs within the search help. You can create your own tab or modify an existing one.

3. If you click on the search tab, then you have two options to modify it. Selection Method or Search Help Exit. Selection method, you can modify via functionality. Search help exit, you will need ABAP-ers help.

Here are some documents that can be useful.

http://www.scribd.com/doc/94098069/How-to-Enhance-List-of-Sales-Orders-Report-VA05-Selection-Criteri...

http://www.sapdev.co.uk/dictionary/shelp/shelp_basic.htm

I hope it helps.


Regards,

Ervis