Hi All,
I need the user to be able to select multiple classes of item when prompted using the query manager. Should be the equivalent of “allow multiple values” property for a parameter in Crystal Report. I tried this, but it's not working:
SELECT TOP 10 *
FROM OITM T0
WHERE T0.ItmsGrpCod IN ('[%0]')
Any idea???
TIA
Request clarification before answering.
Hi,
This can only be done easily if you predetermine the number of parameters:
SELECT TOP 10 *
FROM OITM T0
WHERE T0.ItmsGrpCod IN ('[%0]','[%1]','[%2]')You would need to prepare the maximum number of parameters that you think you will ever be using, but you do not need to use them all when you run the query:

Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi n3oalonso,
Try This Query
In Query Generator...,
/*SELECT FROM [dbo].[OITM] T0*/
declare @ItmsGrpCod AS Varchar(50)
/* WHERE */
set @ItmsGrpCod =/* T0.ItmsGrpCod */ '[%0]'
Select Top 10* From OITM T0
Where T0.ItmsGrpCod=@ItmsGrpCod or @ItmsGrpCod=''Thanks and Regards,
Abdul Basith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank for your answer. Very interesting.
In this case what we were trying to do is more like a list of values in the filter condition.
Is there a documentation for this feature in SAP?
Really appreciated.
Best regards,
Luis
| User | Count |
|---|---|
| 13 | |
| 12 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.