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

list display

Former Member
0 Likes
506

hi friends,

i have one doubt please help me

how to display the drop down list in the selection-screen & by using the list id how we can display the data for that id.

naresh

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
479

Hi,

Check this link [Dropdown boxes|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm]

It will give you right information.

Regards

Marcin

Read only

Former Member
0 Likes
479

Hi Naresh,

Check the following snippet for list disp in selection field,

TYPE-POOLS: vrm.

DATA: w_param TYPE vrm_id,
      it_values TYPE vrm_values,
      wa_value LIKE LINE OF it_values.

p_rec_ty as listbox visible length 5.

AT SELECTION-SCREEN OUTPUT.
  w_param = 'P_REC_TY'.
  wa_value-key = '1'.
  wa_value-text = 'AAAAA'.
  APPEND wa_value TO it_values.
  wa_value-key = '2'.
  wa_value-text = 'BBBBB'.
  APPEND wa_value TO it_values.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id     = w_param
            values = it_values.

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
479

thanks friends