2007 Oct 05 9:54 AM
2007 Oct 05 9:56 AM
Hi Praveen,
It is not possible.
as an alternative, you can have two separate Parameters serving as a range.
Once the user enters the vlaues using the drop down, you can move the values in the parameters into a Range and then use it in the select statements:
Check the sample program: DEMO_DROPDOWN_LIST_BOX as a referance.
regards,
Mukesh Kumar
2007 Oct 05 9:55 AM
Hi Praveen.
We cannot generate Drop down LIST BOX for select-option.
It can be done only for PARAMETER
<b>reward if Helpful.</b>
2007 Oct 05 9:56 AM
2007 Oct 05 9:56 AM
Hi Praveen,
It is not possible.
as an alternative, you can have two separate Parameters serving as a range.
Once the user enters the vlaues using the drop down, you can move the values in the parameters into a Range and then use it in the select statements:
Check the sample program: DEMO_DROPDOWN_LIST_BOX as a referance.
regards,
Mukesh Kumar
2007 Oct 05 9:57 AM
use the function module f41f_int_table_value_request for sel_op-low nad sel_op-high.
2007 Oct 05 9:57 AM
Hi,
It cannot be done for select option ,its possible for parameters only..chek the belowcode..
TYPE-POOLS: vrm.
PARAMETER: pr_spart TYPE spart AS LISTBOX VISIBLE LENGTH 7.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_spart.
INITIALIZATION.
*----Code for Drop down list....
DATA: lit_spart_list TYPE vrm_values, "Table for list of Divisions
lwa_spart_list TYPE vrm_value,
lw_name TYPE vrm_id. "Name of parameter with list-box.
*---Assign selected values to table that would be passed to FM VRM_SET_VALUES
CLEAR : lwa_spart_list,
lw_name.
*---Pass required values for list-box display.
lwa_spart_list-key = 'H'.
lwa_spart_list-text = 'HL'.
APPEND lwa_spart_list TO lit_spart_list.
lwa_spart_list-key = 'S'.
lwa_spart_list-text = 'SL'.
APPEND lwa_spart_list TO lit_spart_list.
lwa_spart_list-key = 'P'.
lwa_spart_list-text = 'PP'.
APPEND lwa_spart_list TO lit_spart_list.
lwa_spart_list-key = 'F'.
lwa_spart_list-text = 'FR'.
APPEND lwa_spart_list TO lit_spart_list.
*Name of parameter to which list is to be assigned
lw_name = 'PR_SPART'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = lw_name
values = lit_spart_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Reward if helpful.
Regards,
Nagaraj
2007 Oct 05 9:57 AM
HI
use list box with parameters and use fm
VRM_SET_VALUES
to fill the list box.
reward if helpful
vivekanand
2007 Oct 05 10:58 AM
Hi,
For the field which do not have searh help name you can use matchcode object like this.
SELECT-OPTIONS: verific FOR wa_lagp-verif matchcode object LAGP-VERIF.
Regards,
Sreeja