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: 

Duplicate values in search help

Former Member
0 Kudos

Hi,

I have to create a search for filed which does not have a check table/value table. when i create search for this field, i am getting duplicate values. Is there anay way to avoid duplicate values when you press F4.

Thanks

Rajavardhana Reddy

3 REPLIES 3

Former Member
0 Kudos

Hi...

Use the command DELETE ADJACENT DUPLICATES FROM <ITAB> COMPARING <FIELD1> <FIELD2>....

<ITAB> - Internal table that is used to hold the search values for the field.

If your field is in the selection screen then add this command in

AT SELECTION-SCREEN on VALUE-REQUEST for <FIELD>

If the field is in the User defined Screen

Then add this code in

PROCESS on VALUE REQUEST Event.

Regards,

Vara

0 Kudos

Hi,

Thanks for your reply. I need to assign the search help for the data element, in this case i cant use the methods which you have mentioned. Is there any other way of doing this.

0 Kudos

HI,

YOu can create a Search Help Exit and process your data as per your requirement.

Clikc the below link to know more on Search Help Exit.

<b>http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm</b>

Regards,

Vara