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
565

Hi ,

I want to add search help functionality to screen field 2 based on the values i enter for screen field 1.

Please suggest a solution with codes asap.

My Thanks in advance

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
527

Hi,

You just need to assign a search help for the second field which takes the first filed 's data as the import parameter. You need to create a search help with IMPORT parameters corresponding to the first screen field then your search help will take care. Also you need to assign the search help to the structure which you are using to create the screen fields.

For example see the search help: <b>H_SCARR</b>

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

5 REPLIES 5
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
528

Hi,

You just need to assign a search help for the second field which takes the first filed 's data as the import parameter. You need to create a search help with IMPORT parameters corresponding to the first screen field then your search help will take care. Also you need to assign the search help to the structure which you are using to create the screen fields.

For example see the search help: <b>H_SCARR</b>

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

0 Likes
527

Hi Sesh,

Thanks for the reply.

To make it more clear, do I need to make a search help via Se11 or is it enough to add that to Function module F4IF_INT_...

Read only

0 Likes
527

Hi,

If Standrad search help availble in the dataelement level, Attach searchhelp to dataelement level (or) use the field which is having corresponing dataelement.

If it doesn't hold the searchhelp (reusability is less) then call FM ''F4IF_INT_TABLE_VALUE_REQUEST'' and attach search help values in screen logic it self.

If don't find standrad serach help, then create search help in SE11 and attach to the dataelement of field. (As if thininking Reusability of the field)

If helps plz reward points to all possible answers.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
527
chk this from other thread

report ztest .
 
parameters: p_vbeln type vbak-vbeln,
            p_posnr type vbap-posnr.
 
at selection-screen on value-request for p_posnr.
 
 
  data: begin of help_item occurs 0,
          posnr type vbap-posnr,
          matnr type vbap-matnr,
          arktx type vbap-arktx,
        end of help_item.
 
  data: dynfields type table of dynpread with header line.
 
 
  dynfields-fieldname = 'P_VBELN'.
  append dynfields.
 
  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            others               = 11.
 
 
  read table dynfields with key fieldname = 'P_VBELN'.
 
  p_vbeln = dynfields-fieldvalue.
 
 
  call function 'CONVERSION_EXIT_ALPHA_INPUT'
       exporting
            input  = p_vbeln
       importing
            output = p_vbeln.
 
  select posnr matnr arktx into table help_item
                 from vbap
                      where vbeln = p_vbeln.
 
 
 
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'POSNR'
            dynprofield = 'P_POSNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.
Read only

former_member196299
Active Contributor
0 Likes
527

hi ,

Create a scarch help for the screen field 2, in this scarch help you add a search help exit .Write the logic in the seacch help exit so that it should be based on the selections made on the screen field 1. now use this search help exit for your seacrh help for screen field 2.

This process should work .

thanks

Ranjita