‎2005 Jul 05 1:59 PM
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 ?
‎2005 Jul 05 2:13 PM
‎2005 Jul 05 2:13 PM
‎2005 Jul 05 2:30 PM
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.
‎2005 Jul 05 3:06 PM
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'.
‎2005 Jul 12 5:52 PM
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