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

creating a search help

Former Member
0 Likes
635

hi,

i am creating a search help based on a column's table.

This column contain 71000 rows with 3 values, when i check the search help i get 71000 rows with hthe 3 values. What can I do in order to create a search heko based on this column that will contain only these 3 values??

thanks

Ami

4 REPLIES 4
Read only

Former Member
0 Likes
616
Read only

Former Member
0 Likes
616

Hi,

As i understood the question, the search help is showing repeated values.

use a select query to get all the data into an internal table, delete duplicates in itab and call the FM for F4 help passing itab.

regards,

teja.

Read only

Former Member
0 Likes
616

Hi

Move those values to an internal table and select distinct values from that internal table. Pass the itab to the function module F4IF_INT_TABLE_VALUE_REQUEST

Try this one...

select distinct field from ztab into table itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FIELD'

dynpprog = 'ztest'

dynpnr = '1000'

dynprofield = 'P_PAR'

value_org = 'S'

window_title = 'XYZ'

TABLES

field_tab = t_fldtab

value_tab = itab

return_tab = return

dynpfld_mapping = t_dynmap.

READ TABLE return INDEX 1.

p_par = return-fieldval.

Regards

Read only

Former Member
0 Likes
616

hi,

In order to create COLUMN based Search Help you have to write a SELCET statement and selecting the values for that particular column only. Put that data inot an internal table and then pass that data into the search help Function Module.

Hope this will Help.

Regards

Sumit Agarwal