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: 

F4 help - search Help

Former Member
0 Kudos

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

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

Hi Moshe,

You can also attach standard match codes for the select options field & filter the values.

Former Member
0 Kudos

Hi ,

Please review the link this created by one of our friend on search help:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-edc...

Lanka