‎2008 Feb 26 10:35 AM
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
‎2008 Feb 26 10:47 AM
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.
‎2008 Feb 26 10:37 AM
Hi,
It is not possible add multiple values to parameters. It should use select-options.
regards.
‎2008 Feb 26 10:41 AM
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
‎2008 Feb 26 10:43 AM
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.
‎2008 Feb 26 10:44 AM
Hi,
You can use below code:
tables : bsis.
select-options : so_bukrs for bsis-bukrs no intervals.
Thanks,
Sriram Ponna.
‎2008 Feb 26 10:45 AM
sorry little modification, use no intervals .that will hide the to field.
please reward if useful.
‎2008 Feb 26 10:47 AM
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.