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

parameter with multiple values

Former Member
0 Likes
17,632

Hello experts,

On selection screen i am using parameter.

I am not using select-option. I am using parameter.

Now my requirement is, for parameter i want to enter the multiple values....as we do in select-option.

lets say i want to execute report for data like 10, 20,30.

is it possible to add multiple values in parameter????

thanks in advance.

Saurabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
6,974

Hai,

The best way is to use select-options instead of parameters, but as ur requirement is to use parameters u can do one thing...

Split the values (using a loop ) entered in the parameter field by specifying a separator , let say comma(,).

U need to append the values into a internal table that has the structure of select-options

ie. DATA: BEGIN OF rtab OCCURS {10|n},

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low LIKE dobj,

high LIKE dobj,

END OF rtab.

U need to append the values to the rtab-low ..

Now u'll be having the values in rtab that can be used in the query (using 'IN').......

check it out.

Neeraj.

6 REPLIES 6
Read only

Former Member
0 Likes
6,974

Hi,

It is not possible add multiple values to parameters. It should use select-options.

regards.

Read only

Former Member
0 Likes
6,974

Saurabh,

Like in Select option you can not give range values in PARAMETERS.

But you can add LISTBOX(dropdown box) and values to that.You can select the required values in List box

Read only

Former Member
0 Likes
6,974

Hi Saurabh,

the alternative to this is use selct option. but u can hide the FROM field of select option with no extension.

then it will looklike parameter and in LOW value you can enter multiple values.

Read only

Former Member
6,974

Hi,

You can use below code:


tables : bsis.

select-options : so_bukrs for bsis-bukrs no  intervals.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
6,974

sorry little modification, use no intervals .that will hide the to field.

please reward if useful.

Read only

Former Member
0 Likes
6,975

Hai,

The best way is to use select-options instead of parameters, but as ur requirement is to use parameters u can do one thing...

Split the values (using a loop ) entered in the parameter field by specifying a separator , let say comma(,).

U need to append the values into a internal table that has the structure of select-options

ie. DATA: BEGIN OF rtab OCCURS {10|n},

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low LIKE dobj,

high LIKE dobj,

END OF rtab.

U need to append the values to the rtab-low ..

Now u'll be having the values in rtab that can be used in the query (using 'IN').......

check it out.

Neeraj.