01-16-2006 7:25 PM
Hi !
I need to add F4 help for selects options field,
and i need to filter the search table by a criteria for a certain results.
Please tell me how to do this ?
thanks
moshe
01-16-2006 7:33 PM
HEre is a sample.
report zrich_0001 .
tables: t001.
data: begin of it001 occurs 0,
bukrs type t001-bukrs,
butxt type t001-butxt,
ort01 type t001-ort01,
land1 type t001-land1,
end of it001.
select-options s_bukrs for t001-bukrs.
initialization.
<b>
* Since you are select data from the db for your value
* help, you can get rid of records and use fields
* according to your requirement.
select bukrs butxt ort01 land1 into table it001 from t001.
sort it001 ascending by bukrs.
delete adjacent duplicates from it001 comparing bukrs.</b>
at selection-screen on value-request for s_bukrs-low.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BUKRS'
dynprofield = 'S_BUKRS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = it001.
start-of-selection.
Regards,
Rich Heilman
01-16-2006 7:43 PM
Hi Moshe,
You can also attach standard match codes for the select options field & filter the values.
01-16-2006 8:45 PM
Hi ,
Please review the link this created by one of our friend on search help:
Lanka