‎2007 Jul 31 4:24 PM
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
‎2007 Jul 31 5:27 PM
Use F4IF_INT_TABLE_VALUE_REQUEST in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> instead of 'VRM_SET_VALUES' .
‎2007 Jul 31 4:55 PM
‎2007 Jul 31 5:27 PM
Use F4IF_INT_TABLE_VALUE_REQUEST in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> instead of 'VRM_SET_VALUES' .
‎2007 Jul 31 10:07 PM
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.
‎2007 Aug 07 10:35 AM
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
‎2007 Aug 07 11:44 AM
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