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

values in selection screen

Former Member
0 Likes
697

Iam trying to create the drop down list. I got some programs, creating these lists for both parameter and ranges on the selection screen using 'VRM_SET_VALUES' . What the user wants is when the selection screen is loaded, he wants to select from the list OR ENTER ANY DATA WHICH IS NOT THERE IN THE LIST. To be able enter any data other than what is there in the list is not working for me.

plz help its urgent

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

Use F4IF_INT_TABLE_VALUE_REQUEST in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> instead of 'VRM_SET_VALUES' .

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
658

Listboxes within SAPgui do not support that type of functionality, you can not type in any value into a listbox. I would suggest using F4 help instead, then you can either select from dropdown, or type your own value.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
659

Use F4IF_INT_TABLE_VALUE_REQUEST in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> instead of 'VRM_SET_VALUES' .

Read only

0 Likes
658

A similar question was responded to in:

<a href="https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=3850117">https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=3850117</a>

The proposed solution was that you include a "New..." or "Others..." in the VRM list, and if this is selected you popup a window to get the new value. Hope this helps.

Read only

Former Member
0 Likes
658

Hi,

It is better to use the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> instead of 'VRM_SET_VALUES' .

Hope this also helps you.

Regards,

Rama.Pammi

Read only

Former Member
0 Likes
658

Hi visu goud ,

Here is the pgram for getting the F4 help values and user enteries by pressing the tab in the keyboard ..

REPORT Z_SRI_HELP_VALUE_FOR_TABLES .

PARAMETERS: p_name(10).
DATA: BEGIN OF value_tab OCCURS 0,
               name(10),
             END OF value_tab.
DATA :field_tab LIKE dfies  OCCURS 0 WITH HEADER LINE.
DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE. DATA : x TYPE string.

  AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.

  REFRESH value_tab[].
  REFRESH field_tab[].
  REFRESH return_tab[].
    field_tab-fieldname = 'ERNAM'.
  field_tab-tabname = 'VBAK'.
  APPEND field_tab.
    value_tab-name = 'John'.
  APPEND value_tab.
  value_tab-name = 'Abraham'.
  APPEND value_tab.
  value_tab-name = 'Lingam'.
  APPEND value_tab.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = field_tab-fieldname
    TABLES
      value_tab       = value_tab
      field_tab       = field_tab
      return_tab      = return_tab
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc = 0.
    p_name = return_tab-fieldval.
  ENDIF.

reward points if it is usefull.....

Girish