cancel
Showing results for 
Search instead for 
Did you mean: 

Several ranges in a query

Former Member
0 Kudos

Is it possible to allow the end user to specify several ranges in a query variable? Standard variable types are : single value, several values and range, so I think it could not be done directly. But maybe this problem is common and a good solution already exists?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

A select option can consist of several single values and intervals. There is the yellow arrow behind the input field where you can enter multiple selections, including and excluding specific values and intervals. Since you can enter an unlimited number of rows you don't need several select options. So try and use this one.

Best regards

Dirk

Former Member
0 Kudos

Hi Andrey,

I assume that you mean you want to set filter values on a characteristic. You want several filters, some or all of which are ranges (between filters).

I can tell you how to do this in BEx Analyzer (queries embedded in Excel workbooks). Users can do this manually using the Set Filter interface and selecting the Value Ranges from the drop down box at the top left. If both ends of the range are in the master data, they can select each end of the range. If the ranges they want are not in the master data, then they simply type in the range with a semicolon ( between the two values.

If you want to do this programmatically, so the user does not have to use the Set Filter interface, it is possible, but problematic. It requires quite a bit of Visual Basic coding and is not recommended. See https://websmp201.sap-ag.de/~sapidb/011000358700011836292001

which includes a warning against implementing just this sort of thing (see page 2).

If you want to do this for a Web report, I'm not an expert in that area. Hopefully someone else who is can respond.

- Pete