Application Development 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: 

Is it possible to provide select options with dropdown capability?

Former Member
0 Kudos

I have select-options.

Can i provide Dropdown capability to this below s_lfabc ( range ) on the selection screen.

SELECT-OPTIONS : s_lfabc FOR lfm1-lfabc.

IF Yes , could you please suggest me how to do it ?

4 REPLIES 4

Former Member
0 Kudos

Hi

I think you can only use in a parameter, not in a select-options.

<a href="http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm">Here</a> you can find an help how to build it.

Max

Message was edited by:

max bianchi

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can provide F4 help, but not present as a listbox. I assume that you want a listbox? If so, this can only be done with PARAMETERS statement.

Regards,

Rich Heilman

ferry_lianto
Active Contributor
0 Kudos

Hi Sam,

You need to use parameter instead of select options. Please check this demo programs.

DEMO_DROPDOWN_LIST_BOX

DEMO_DYNPRO_DROPDOWN_LISTBOX

RSDEMO_DROPDOWN_LISTBOX

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Sam,

For Drop down Listbox option, refer sample code below:

data: i_value TYPE vrm_values,

wa_value LIKE LINE OF i_value.

PARAMETERS : p_field TYPE dd03l-fieldname AS LISTBOX

VISIBLE LENGTH 80 OBLIGATORY.

INITIALIZATION.

*-- Populate List Box

*-- TEMKSV - Legacy Value

wa_value-key = 'TEMKSV'.

wa_value-text = 'Legacy Key'.

APPEND wa_value TO i_value.

CLEAR: wa_value.

*-- Installation

wa_value-key = 'INSTLN'.

wa_value-text = 'Installation'.

APPEND wa_value TO i_value.

CLEAR: wa_value.

  • Setting the selection

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P_FIELD'

values = i_value.

Hope this helps.

Manish