Application Development 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: 

Search Help

Former Member
0 Kudos

Hi Friends,

I have created a search help and attached the same to a ztable for a particular field. When I use this field in the selection screen and click on the list of values button, the values are displayed in duplicates ie., the values of the entire table is getting displayed.

Kindly guide me as to how display unique values in the list of values.

TIA.

Regards,

Mark K

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

if the field is not a key field to which you hav attached, i Think, The problem will be there.

we generaly attach search Help to Key fields. if you do not want the duplicate values, you better declair the field as key field.

Regards,

Anirban

6 REPLIES 6

Former Member
0 Kudos

Hi,

if the field is not a key field to which you hav attached, i Think, The problem will be there.

we generaly attach search Help to Key fields. if you do not want the duplicate values, you better declair the field as key field.

Regards,

Anirban

Former Member
0 Kudos

Hi

Use delete duplicate entries.

Former Member
0 Kudos

Hi Mark,

Create the search help with only Key Fields. They are uniqiue.

If you go with non-primary keys, you may get more than one possible values for a fields.

Regards,

Chandra Sekhar

Former Member
0 Kudos

Hi MARK K,

I think the database table in your search help is not a master table. just check it once if i am correct in the table also it contains duplicate values that is the reason you are getting like that.

Regards,

Mahi.

former_member181995
Active Contributor
0 Kudos

Mark,

If you are asking about a custom search help, then you can create a search help exit function module (which has the same interface as function module F4IF_SHLP_EXIT_EXAMPLE) and within it put the following code.

CASE callcontrol-step.

WHEN 'DISP'.

SORT record_tab.

DELETE ADJACENT DUPLICATES FROM record_tab.

ENDCASE.

Then attach the exit function module to the search help - Goto Definition Tab of the search help from SE11 and maintain FM in Search Help exit field.

Hope this helps.

Amit.

Former Member
0 Kudos

if u r working with ztable then u can create ur own z serch help in se11 for that field.

Jitendra