Skip to Content
0
Former Member
Aug 07, 2011 at 03:34 PM

search help on screen elements

25 Views

Hi I have a screen where I need to include a seach help on the screen element. The element itself is just a generic char 8 field with no dictionary reference. I have tried using the VRM_SET_ VALUES in the PBO but as soon as I press enter it looses the value selected. So I have now tried the using the process on value_request but despite finding and populating 138 values in the search help pop up, the actual pop up screen shows a blank list, with the text at the bottom saying 138 values.

Any ideas what I am doing wrong?

  • Set list values

call function 'VRM_SET_VALUES'

exporting

id = lv_vrm_id

values = it_values

exceptions

id_illegal_name = 1

others = 2.

if sy-subrc <> 0.

  • MESSAGE I000 WITH 'Failed to populate username list values'.

endif.

process on value-request.

field my_field module fill_my_field.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'MY_FIELD

dynprofield = 'MY_FIELD'

value_org = ' '

dynpprog = progname

dynpnr = dynnum

tables

value_tab = it_values "it contains 2 fields that will be shown in the list box

exceptions

parameter_error = 1

no_values_found = 2

others = 3.