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
544

I need to create a search help in a report.

I have a parameter in a selection screen of type char.This field needs to charge the search help with certains values of a table (not all ).

You know a way of doing that ?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
474

Maybe you can create a view over the table and do the search help over the view.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
475

Maybe you can create a view over the table and do the search help over the view.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
474

Use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'.

U have to populate the VALUE_TAB with the values that should be shown in the f4.

Read only

Former Member
0 Likes
474

Hi,

There are many ways of creating a search help for a field on a report. indeed one of the method was specified by rich heilman. the other ways are:

1) if the parameter has a search help then you can modify the values which appear my creating an search help exit and then modify the output values. specify the search help in the parameter declaration as:

p_matnr like mara-matnr mactchcode object 'search help'.

2) if you want to populate the database values as the F4 values for the parameter then use the following function module 'F4IF_INT_TABLE_VALUE_REQUEST' where you can get the table values for the specified tablename and field.

3) if you want to populate some explicit values apart from the table values then populate them on a internal table and later pass it to the Function module 'F4_IF_FIELD_VALUE_REQUEST'.

Read only

MariaJooRocha
Contributor
0 Likes
474

Hi,

You can use the FM:

data: it_fields type standard table of help_value,

wa_fields type help_value.

data: it_values type standard table of t_value,

wa_value(30).

call function 'HELP_VALUES_GET_WITH_TABLE'

importing

select_value = p_form "your parameter

tables

fields = it_fields

valuetab = it_values.

  • populate the it_fields with the fields you want

Example:

wa_fields-tabname = 'TSP01'.

wa_fields-fieldname = 'RQ2NAME'.

wa_fields-selectflag = 'X'.

append wa_fields to it_fields.

wa_fields-tabname = 'USR01'.

wa_fields-fieldname = 'BNAME'.

wa_fields-selectflag = ' '.

append wa_fields to it_fields.

  • populate the it_values with the data you want

select rqident rqowner

into (tsp01-rqident, tsp01-rqowner)

from tsp01.

wa_values-rqident = tsp01-rqident.

wa_values-rqowner = tsp01-rqowner.

append wa_values to it_values.

endselect.

Regards,

Maria João Rocha