Skip to Content
author's profile photo Former Member
Former Member

Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue

Hello

I need to pass a range of fiscal periods to the following function:

Run("SAPBEX.XLA!SAPBEXSetFilterValue", myFilter, "", myRange)

When 'myfilter' is a single value, I pass a fiscal period, which is a concatenation of fiscal variant(lets say Z9) and the period (lets say 2005001), which is Z92005001. The filter works properly.

However, I am unable to pass a range of fiscal period to 'myfilter. Any help is highly appreaciated.

regards,

Bincy

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2004 at 08:23 PM

    I spent two weeks talking with SAP about this very topic and I had to tell them that it doesn't support multiple values. The function is not coded to accept multiple values.

    There is a workaround....Search the forum for SAPBExSetFilterValue and you will see what others have done. Peter Knoer's response from Sep 13, 2004 9:21 PM provides the code for the workaround.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2004 at 04:49 PM

    Hi Bincy,

    Sorry that I am so late in responding. I hope that the reference Kenneth send was helpful. I'd like to add something to that.

    The reference that Kenneth forwarded addresses setting multiple filter values. In your case, you might want to set a range instead of setting multiple, individual values.

    In this case, the steps are similar, but with one important difference:

    1. use the SAPBEXsetFilterValues function to set the intial filter

    2. search the SAPBEXfilters worksheet to find the filter value that was just set

    3. change the cell in column HG from "EQ" to "BT"

    4. add the other end of the range to cells in columns HI and HK.

    - Pete

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.