Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

selection screen drop down

Hi,

How can I define the dropdown in selection screen.

I want to give 4 options for file download

1. comma dilimited

2. tab

3. colon

4. space

parameter : p_dilimit (here i want to define as dropdown list on selection screen).

Thanks.

Tags:
replied

Hi,

VRM_SET_VALUES is used to display list of values for drop down field.

Please go thru the following code for better understanding.

REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', PS_PARM.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question