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

Search Help

Former Member
0 Likes
522

Hi,

I have created a search help where the selection method is a custom table. The field i use as parameter from this table are not unique/distinct. say it has values like A

A

B

But i require my search help to display the distinct values only - say

A

B

How can i achieve it ? Any suggestions plz.

Thanks in advance,

Asha

6 REPLIES 6
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
479

Hi,

As far i know, cant able to create a standard serach help with distinct values with reference to the table...

Rather u use the F.M

<b>F4IF_INT_TABLE_VALUE_REQUEST</b>

in ur program and use the select statement to get te distinct values u want and pass it to a internal table.. and then pass that table to this F.M.

This will do...

Cheers,

SImha.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
479

Hi,

One way is to use a HELP VIEW instead of your custom table which has duplicate values. ONe more thing you can do is use a search help exit to filter the values. I dont think there is any way that you can filter values in the search help.

Regards,

Sesh

Read only

Former Member
0 Likes
479

Thank you for your replies .Actually since i require this search help in my ALV - created using CL_GUI_ALV_GRID , it will be more helpful if i can perform the check at the table level rather than at program level . Can anone suggest me how to use the search help exits , if i can accomplish this functionality ?

Thanks,

Asha

Read only

0 Likes
479

Hi,

See the following search help it has a search help exit.

PREM.

Also by creating a helpview based on your table and then using that to create your own search help will also solve your problem. This will not have any program code but everything will be done by your helpview.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

0 Likes
479

Hi,

You can check FM 'F4IF_SHLP_EXIT_EXAMPLE.' for pointers.

This will help you.

Regards

Nishant

Read only

Andri
Participant
0 Likes
479

Hello Asha,

you can use Search Help Exit: C140_DELETE_DUPLICATES.

best regards,

Andri