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 SELECTION SCREEN.

akshayd1998
Participant
0 Likes
729

A SIMPLE DOUBT GUYZZ WHILE PRINTING I AM GETTING OUTPUT AS 1 OR 2 BUT I WANT THE OUTPUT AS ME54N OR SUIM THAT IS THE ONE WHICH I HAVE SELECTED FROM DROPDOWN LIST.

PLEASE HELP.


type-pools: vrm.
data: it_val type vrm_values,
      wA_line like line of it_val.

parameters tcode LIKE AGR_TCODES-TCODE as listbox
           visible length 9 obligatory.

at selection-screen output.

wa_line-key = '1'.
wa_line-TEXT = 'ME54N'.
APPEND WA_LINE TO IT_VAL.

 CLEAR WA_LINE.
wa_line-key = '2'.
wa_line-TEXT = 'SUIM'.
APPEND WA_LINE TO IT_VAL.
  call function 'VRM_SET_VALUES'
       exporting
            id     = 'TCODE'
            values = it_val.

end-of-selection.
  write: / 'SELECTED TCODE IS:',TCODE.
2 REPLIES 2
Read only

former_member598787
Participant
0 Likes
635

refer to this link:

https://www.saphub.com/selection-screen/how-to-create-dropdown-list-in-selection-screen/

For next time, this link can be found by simple google search / search on community

Read only

Sandra_Rossi
Active Contributor
635
wa_line-key = 'ME54N'.
APPEND WA_LINE TO IT_VAL.
wa_line-key = 'SUIM'.
APPEND WA_LINE TO IT_VAL.