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

regarding topdown list box

Former Member
0 Likes
503

how to place topdown list box in selection screen

how to place topdown list box in selection screen

2 REPLIES 2
Read only

Former Member
0 Likes
453

Hi,

Please check this sample code.


type-pools: vrm.

data:
IT_LIST TYPE VRM_VALUES," table to store values of listbox
*--Structure declaration
WA_LIST LIKE LINE OF IT_LIST,
*--Variable declaration
V_NAME1 TYPE VRM_ID. " to store Id of Value Set

selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(20) text-001 FOR FIELD v_vbeln1.
parameters: v_vbeln1 type vbap-vbeln AS LISTBOX VISIBLE LENGTH 13.
SELECTION-SCREEN COMMENT 40(20) text-002 FOR FIELD v_vbeln2.
parameters:v_vbeln2 type vbap-vbeln AS LISTBOX VISIBLE LENGTH 13.
selection-screen end of line.

*--populating the values for the list box
WA_LIST-TEXT = '0000000011'.
WA_LIST-KEY = '0000000011'.
APPEND WA_LIST TO IT_LIST.
CLEAR WA_LIST.
WA_LIST-TEXT = '0000000012'.
WA_LIST-KEY = '0000000012'.
APPEND WA_LIST TO IT_LIST.
CLEAR WA_LIST.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = V_NAME1
VALUES = IT_LIST.

Regards,

Ferry Lianto

Read only

RaymondGiuseppi
Active Contributor
0 Likes
453

Look a sample at <a href="http://www.sap-img.com/ab012.htm">List Box in ABAP Report</a>

Regards.