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: 

HELP_START for multiple fields

Former Member
0 Kudos

Hi All,

I created a custom search help and need to call it from POV. I can't attach it to data dictionary because I need to call different search help for different condition.

The search help i created has multiple input and multiple output and the input should be taken from value entered by the user on the screen, the output in the other side should populate mulitple fields on the screen. It's similar to sales area search help. When we enter sales org 1000 for example and we trigger search help from division, the search help will only display all combination of dist channel and divisions under sales org 1000, and after we choose one entry, it will populate all those three fields (sales org, dist. channel, and division) eventhough the F4 is pressed from division field.

I found FM HELP_START which seems to be able to display a search help in a single function call. However I found that it can only output to one single field, i.e. the first export field of the defined search help. It does not populate other fields and it does not take into account other fields values.

I have tried using FM DYNP_VALUES_READ beforehand, but it still does not work. I have not used DYNP_VALUES_UPDATE though because it seems it's been called by HELP_START itself.

Is there any other FM I can use to display the search help, preferably in a single function call, that work for multiple fields?

I've tried to search the internet, but have no luck.

Appreciate your help.

Thanks,

Anung

2 REPLIES 2

Former Member
0 Kudos

Hi

Try to use F4IF_FIELD_VALUE_REQUEST

Max

Former Member
0 Kudos

Hi,

Perhaps you can achieve this with DD_SHLP_CALL_FROM_DYNP.

Sample:


  DATA:
    lw_help_infos TYPE help_info,
    lf_selection TYPE flag,
    lw_rsmdy_ret TYPE rsmdy,                                "#EC NEEDED
    lf_select_value TYPE help_info-fldvalue,
    lt_dynpselect TYPE TABLE OF dselc,
    lt_dynpvaluetab TYPE TABLE OF dval.

* Preparing search help
  lw_help_infos-call =  'M'.
  lw_help_infos-fieldname = 'PERNR'.
  lw_help_infos-fieldtype = 'CHAR'.
  lw_help_infos-keyword = 'Personnel no'.
  lw_help_infos-fieldlng =  8.
  lw_help_infos-mcobj  = 'PREM'.
  lw_help_infos-spras = 'E'.

  CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'
    EXPORTING
      help_infos   = lw_help_infos
    IMPORTING
      selection    = lf_selection
      select_value = lf_select_value
      rsmdy_ret    = lw_rsmdy_ret
    TABLES
      dynpselect   = lt_dynpselect
      dynpvaluetab = lt_dynpvaluetab
    EXCEPTIONS
      OTHERS       = 1.

Kr,

m.

added: oups, sorry works for one field only...

Edited by: Manu D'Haeyer on Sep 26, 2011 7:25 PM

Edited by: Manu D'Haeyer on Sep 26, 2011 7:32 PM