2007 Mar 25 2:38 PM
how to place topdown list box in selection screen
2007 Mar 25 2:46 PM
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
2007 Mar 25 3:12 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |