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

Drop down list in select option

Former Member
0 Likes
2,594

how to get drop down (list like ) in Select-option

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,670

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

how to get drop down (list like ) in Select-option

7 REPLIES 7
Read only

varma_narayana
Active Contributor
0 Likes
1,670

Hi Praveen.

We cannot generate Drop down LIST BOX for select-option.

It can be done only for PARAMETER

<b>reward if Helpful.</b>

Read only

0 Likes
1,670

what is code

Read only

Former Member
0 Likes
1,671

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

Read only

Former Member
0 Likes
1,670

use the function module f41f_int_table_value_request for sel_op-low nad sel_op-high.

Read only

former_member404244
Active Contributor
0 Likes
1,670

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

Read only

Former Member
0 Likes
1,670

HI

use list box with parameters and use fm

VRM_SET_VALUES

to fill the list box.

reward if helpful

vivekanand

Read only

Former Member
0 Likes
1,670

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