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

MULTIPLE SELECTION IN SELECTION SCREEN

Former Member
0 Likes
12,243

Hi Experts.

I need in my selection screen (I do it with code not with Paint Painter) put anything that permit multiple selection...,

We have a class which have a characteristics multi value..., and I need to get in my selection screen put with code SELECTION SCREEN or PARAMETERS... or another thing to get a multi value selection.... I mean, when user introduce a value ..., automatically appear another square to permit introduce another value.

thks.

1 ACCEPTED SOLUTION
Read only

Former Member
4,646

PARAMETERS only allows one value, to be able to get multiple values just use

SELECT-OPTIONS

e.g.


DATA: lv_matnr TYPE matnr.

SELECT-OPTIONS s_matnr FOR lv_matnr

This will give you the possibility to put in a material number or range with inclusions, exclusions etc., just click on the green arrow on the right hand side of the field once you execute your report.

Michael

5 REPLIES 5
Read only

Former Member
4,647

PARAMETERS only allows one value, to be able to get multiple values just use

SELECT-OPTIONS

e.g.


DATA: lv_matnr TYPE matnr.

SELECT-OPTIONS s_matnr FOR lv_matnr

This will give you the possibility to put in a material number or range with inclusions, exclusions etc., just click on the green arrow on the right hand side of the field once you execute your report.

Michael

Read only

Former Member
0 Likes
4,646

HI check this..

select-options:s_pernr for pa0002-pernr .

the select options can have multiple selections and it can hold 1624 multiple values..for the requirement you said u need to write in your own way..with the function module..

REPORT ZPOPDATE.

DATA: V_CODE LIKE SY-SUBRC.

PARAMETER: V_MONTH LIKE ISELLIST-MONTH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_MONTH.

CALL FUNCTION 'POPUP_TO_SELECT_MONTH'

EXPORTING

ACTUAL_MONTH = '200205'

LANGUAGE = SY-LANGU

START_COLUMN = 8

START_ROW = 5

IMPORTING

SELECTED_MONTH = V_MONTH

RETURN_CODE = V_CODE

EXCEPTIONS

FACTORY_CALENDAR_NOT_FOUND = 1

HOLIDAY_CALENDAR_NOT_FOUND = 2

MONTH_NOT_FOUND = 3

OTHERS = 4.

regards,

venkat.

Read only

Former Member
4,646

Hi, Pedro.

Just use SELECT-OPTIONS instead of PARAMETERS.

SELECT-OPTIONS has two fields - LOW and HIGH. There, you'll come up with a value range, from LOW to HIGH.

Like this:


TABLES: mara.

SELECT-OPTIONS: s_matnr FOR mara-matnr.

Regards,

Brian Gonsales

Read only

peter_ruiz2
Active Contributor
0 Likes
4,646

hi pedro,

use SELECT-OPTIONS.

here is an example.


tables: bkpf.

select-options s_belnr for bkpf-belnr.

regards,

Peter

Read only

Former Member
0 Likes
4,646

Thks all for your comments.