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 helps

Former Member
0 Likes
539

Hi all

Can anybody please assist me how to implement search helps..iam a bit confused when trying them..

Thanks and Regards

vijaya

1 ACCEPTED SOLUTION

Hi all

Can anybody please assist me how to implement search helps..iam a bit confused when trying them..

Thanks and Regards

vijaya

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
517

Sure, do you want to implement from the ABAP dictionary or directly from your program?

Regards,

Rich Heilman

Read only

0 Likes
517

Hi Rich

i want to do in both ways..

Thanks and regards

vijji

Read only

0 Likes
517

Ok, here is a sample program which implements the search help directly in the program.



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.

  select bukrs butxt ort01 land1 into table it001 from t001.

  sort it001 ascending by bukrs.
  delete adjacent duplicates from it001 comparing bukrs.

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