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

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

Similar Messages

  • Usage of SAPBEX.XLA!SAPBEXSetFilterValue with hierarchies

    I am trying to set a filter value for my query automatically with vba using the Run("SAPBEX.XLA!SAPBEXSetFilterValue) function. The Filter Value i want to select should be selected as a node from a certain characteristic hierarchy therefore i am runnign the following command:
    run("SAPBEX.xla!SABBEXSetFilterValue", myValue, myHierarchy, "B3")
    Unfortunately this doesnt work. The result is that no filter value is set at all.
    Could anyone help me out with this?

    Hi Suresh,
    Sorry to keep correcting myself.  Now I have been able to recreate the problem.  My first post was correct ... at least in part.  My second post is also correct (I think), as far as I can tell there is no function named "repoNewQuery".
    I did recall seeing this error before.  And it did occur for me because my SAP GUI was not correctly loaded.  So, you might still want to check your installation as described in my first posting, about 3 hours ago.
    If my theory is correct, the title of the BW toolbar you are seeing is "xxxSAPBEXxxx" instead of the usual title of "Business Explorer" (at least the English version; it might have a different title in other languages).
    Here is my theory ... when the BEx Analyzer (sapbex.xla) is loaded, it loads a toolbar named "xxxSAPBEXxxx".  Some sort of Auto_Open macro also runs, which displays the splash screen and fixes the toolbar.  Part of fixing the toolbar is changing its name and re-mapping the OnAction macro for the buttons on the toolbar.
    If something prevents this Auto_Open macro from running (in my case it was incorrect versions of files, in your case because you have disabled Auto_Open macros somehow?), then the toolbar is not renamed and the buttons are not mapped correctly.
    I have no idea why changing a macro setting in Word would affect an Auto_Open macro in Excel.  But, I will be very interested in reading what you find out.
    - Pete

  • Vba-excel crashes ???  SAPBEX.XLA ?

    Hi Experts,
    I am trying to code again in VBA for my workbook.  I have got a piece of code which is for a push button.  Everytime I refresh the query in the workbook, the whole thing crashes.   Although, what I am confused is, everytime I click on SAPBEX.xla in VB editor, it asks me for a password...so I'm not sure to use SAPBEX.xla actually in the code or replace it with something else ? Below is the code I'm using.
    Sub Button1_Click()
        Dim myState As Integer
        Dim myFilterCell As Range: Set myFilterCell = ActiveSheet.Cells(10, 3)
        Run <b>"SAPBEX.XLA!SAPBEXgetDrillState"</b>, myState, myFilterCell
        myState = Run("SAPBEX.XLA!SAPBEXgetDrillState_currentState")
        If myState = 0 Then
            Run "SAPBEX.XLA!SAPBEXsetDrillState", 1, myFilterCell
        Else
            Run "SAPBEX.XLA!SAPBEXsetDrillState", 0, myFilterCell
        End If
    End Sub
    Thanks for all the help in advance.
    Regards,
    BBM

    Never mind.  I figured it out.

  • Passing a range of dates from Visual Composer 7.0 to Bex Analyzer

    Dear Experts,
             I created a button in my Visual Composer model that has the following settings:
    System action:  Hyperlink
    Apply to:  Self
    Hyperlink address:  "...QUERY=BMMSEG_C01_SAS_Q0001&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=MBUDAT&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=08/22/2006;08/28/2006"
            Basically, what I need is to pass a range of dates from Visual Composer to Bex Analyzer on the characteristic "MBUDAT".  However, it only brings back the data with those specific dates, not the range.  
          I don't think this is the correct syntax to pass in a range value:  08/22/2006;08/28/2006  Please advise how should I do it. 
    Thank you in advance,
    Kevin

    Hi J GOEL,
           Thank you for your quick response.  I created a date range variable ZPSTDAT, and then I passed in the oncatenated value to my Bex query (for this example, let says the From date is 08/22/2006, and the To date is 08/28/2006 ).
          Here's what I passed in into the url:
    ...QUERY= BMMSEG_C01_SAS_Q0001
    &#38;BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &#38;BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC= ZPSTDAT
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING= 08/22/2006:08/28/2006
       However, it returns all the records, so it seems like it doesn't even accept the range value that I passed into the Bex.  Do you mind to please show me the url you have that pass in the date range.  I just need to see the date range part, not the entire url.
    Thanks,
    Kevin

  • How to pass a range in OLEMethod?

    I have this code for inserting an image into a DOC:
    COleVariant varFile(szFilename);
    COleVariant varLink((BYTE)0);
    COleVariant varSave((BYTE)1);
    OLEMethod(DISPATCH_METHOD,NULL,pInlineShapes,L"AddPicture",3,
    varSave.Detach(), // Save in document
    varLink.Detach(), // Link to picture or embedd
    varFile.Detach()); // Filename
    But from this C# I see I can specify a range:
    InlineShape AddPicture(
    string FileName,
    ref Object LinkToFile,
    ref Object SaveWithDocument,
    ref Object Range
    How do I pass a Range in the C++ OLEMethod?
    http://www.ransen.com Cad and Graphics software

    Hi Owen,
    Thanks for posting in MSDN forum.
    What is OLEMethod? Is it a function created by yourself? I search and find this article has a OLEMethod, maybe you are using the code introduced in it.
    http://www.codeproject.com/Articles/34998/MS-Office-OLE-Automation-Using-C
    If your OLEMethod is from about article, I think you have no need to pass a Range to the OLEMethod function.
    Please check the implements of CMSWord::InserPicture and OLEMethod function in the article. Before you invoke this:
    OLEMethod(DISPATCH_METHOD,NULL,pInlineShapes,L"AddPicture",3,
    varSave.Detach(),varLink.Detach(),varFile.Detach());
    You get the Selection property that will tell you where your picture will insert into by using these code.
    IDispatch *pSelection;
    VARIANT result;
    VariantInit(&result);
    OLEMethod(DISPATCH_PROPERTYGET, &result, pDocApp, L"Selection", 0);
    pSelection=result.pdispVal;
    So I think you don't need to pass a Range variable to the OLEMethod because you are not using a C# way to add a picture.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sapbex.xla!toolsEdit error with BEx Analyzer

    I get 'sapbex.xla!toolsEdit' error when i try to run BEx Analyzer.
    Anybody has faced this problem.
    Thanks
    Arun

    Arun,
    possible that your SAP GUI was not properly installed and also that macros are enabled in the system...
    Please give your front end SP levels..
    Arun
    Hope it helps...

  • 'sapbex.xla!reponewQuery' can not be found?

    hi all
    When we are logging to Bex its giving pop-ups as "the macro 'sapbex.xla!reponewQuery' can not be found".
    Thanks in advance
    Rajesh

    Hi
    If I got your question properly, the problem is most likely an GUI - BEx Front End installation problem. May be the sapbexc.xla file has been corrupted.
    Go to the folder that contains the BI front end. Look for a file named "sapbexc.xla". Note that there are several files with very similar names. You want the one that ends in "c" for "check" installation.
    Double-click to open that file. Then, click the "Start" button at the top left. This should tell you exactly what is missing, or has an incorrect version.
    Hope it helps and clear
    the macro 'sapbex.xla!reponewquery'  cannot be found

  • To pass blank range

    Hi
    this is about passing blank range in where clause of select statement to hit complete index. is this of use?
    However this might not be applicable on select with for all entries. Blank table in where of a select with for all entries will have significant adverse impact on performance. 
    Please suggest
    Moderator suggestion: please (re)search yourself before asking, this forum is full of advice.
    Edited by: Thomas Zloch on Jul 16, 2010 2:25 PM

    Hi msbilearning,
    If I understand correctly, you have select “Allow blank value (“”)” option when you add a parameter in your report. When you run the report in the report server with blank parameter value you got this error message.
    I can reproduce the same issue in my test environment. In my situation, I have not select parameter value in my report, and blank value is automatic filled in the parameter text box. When I click the “View Report” button, I got the same error message. Actually,
    we have not selected the blank value of the parameter. You can expand the drop down list to check.
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • The macro 'sapbex.xla!reponewquery' cannot be found

    Hello everybody!
    I am getting an error message 'The macro sapbex.xla!repoNewQuery cannot be found'. And it continues with all other icons in the BEx toolbar in excel. What should I do now?
    (I have deleted all the saplogon and installed it again !
    My Excel edition is 2003 and the degree of macro is low!)
    your early help would be appreciated.

    In your system, if Analyzer works fine for one type of user and not working for other users, that means something prevents the Auto_Open macro from running. Because of that the toolbar is not renamed and the buttons are not mapped correctly. We just want to inform you that there is no problem with
    Installtion as well as Analyzer. The problem is with user login. It may be due to the settings in HKEY_CURRENT_USER.
    Exd files cache activeX component information. If the component changes without removing the exd file (which created when the component is first used), then the system will be out of sync.
    Go into a command prompt and type the following DOS commands:
    > CD \Document And Settings
    > DEL /S /A:H /A:-H *.EXD
    Thanks
    Ezhil

  • Passing different range of GL accounts from ALV to a transaction

    I want to call the transaction FBL3n from ALV and also have to pass all the GL account ranges like 600000 to 699999, 700000 to 7199999 at the same time to the transaction from the alv. This is neccasary from me. How can i do that.

    Hello,
    U can do it.
    Instead of using the CALL TRANSACTION use
    SUBMIT RFITEMGL WITH SLECTION-SCREEN and don't use return.
    Before the SUNMIT stmt fill the Range Table.
    Vasanth
    Message was edited by:
            Vasanth M

  • Passing date range parameters in MDX Query

    Following is my mdx query
    SELECT NON EMPTY
        [Measures].[Cache Attendees Count]
    ON COLUMNS,
    NON EMPTY
        ([Cache Attendees].[Visit Id].[Visit Id].ALLMEMBERS *
        [Cache Attendees].[User Id].[User Id].ALLMEMBERS *
        [Cache Attendees].[Screen Name].[Screen Name].ALLMEMBERS *
        [Cache Attendees].[User Type Id].[User Type Id].ALLMEMBERS *
        [Cache Attendees].[User Type Name].[User Type Name].ALLMEMBERS *
        [Cache Attendees].[Group Date Count].[Group Date Count].ALLMEMBERS *
        [Cache Attendees].[Insert Time Stamp].[Insert Time Stamp].ALLMEMBERS )
        DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
        SELECT
                STRTOMEMBER(@FromCacheAttendeesInsertTimeStamp) : STRTOMEMBER(@ToCacheAttendeesInsertTimeStamp)
            ) ON COLUMNS FROM (
            SELECT
                STRTOSET(@CacheAttendeesConferenceId) ) ON COLUMNS FROM [Cube_Attendee])
            WHERE ( IIF( STRTOSET(@CacheAttendeesConferenceId).Count = 1, STRTOSET(@CacheAttendeesConferenceId), [Cache Attendees].[Conference Id].currentmember ) )
    CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    I want to filter my cube with three parameters
    1. @CacheAttendeesConferenceId
    2. @FromCacheAttendeesInsertTimeStamp
    3. @ToCacheAttendeesInsertTimeStamp
    When i pass following parameters
    ConferenceId = 1, StartDate='2010-01-28T00:00:00', EndDate='2010-02-03T00:00:00'
    Then it show records
    But When i pass following parameters
    ConferenceId = 1, StartDate='2010-01-27T00:00:00', EndDate='2010-02-03T00:00:00'
    Then it display message No Data Available
    PLease help me on this issue why not FromDate & ToDate range works properly.

    Step1:- First i create a SSAS datasource. Then i create a cube for my table CacheAttendees.
    It has following columns:-
    [Cache Attendees].[Conference Id]
    [Cache Attendees].[Group Date Count]
    [Cache Attendees].[Insert Time Stamp]
    [Cache Attendees].[Screen Name]
    [Cache Attendees].[User Id]
    [Cache Attendees].[User Type Id]
    [Cache Attendees].[User Type Name]
    [Cache Attendees].[Visit Id]
    Step2:- Then i create a dimension with this cube with all columns.
    Step3:- Then i deploy my SSAS project.
    Step4:- Use SSAS datasource in my SSRS datasource.
    Step5:- Create a report with chart control. Add a parameter ConferenceId. Set default to 1. When i preview my report then it show Cache Attendees].[Conference Id].[1] in header of report instead of that, When i pass the parameter value as 1 then report cannot show & throw an error. I want to pass this parameter at runtime.
    Step6:- Please help me how is it possible to pass parameter at runtime.

  • Passing date range ??

    Post Author: hasan
    CA Forum: Formula
    I am using ASP.net and SQL server...  I have a Selection Formula, that works great when querying my table to generate the report.  I am clueless on how to produce a report based on a date range, that a user specifies in the textboxes.  I've tried the following with no success:
    mySelectFormula = "{ServiceRequest_Table.Dept_Name} = " & """" & Trim(ddlDepartment.SelectedValue) & """ AND {ServiceRequest_Table.Status_Type} = " & """" & Trim(ddlStatusType.SelectedValue) & """ AND {ServiceRequest_Table.UserFullName} = " & """" & Trim(ddlUser.SelectedValue) & """ AND {ServiceRequest_Table.Open_Date} > " & """" & Trim(txtFromDate.Text) & """"
    I get this error:
    A date-time is required here. Details: errorKind Error in File C:\Users\LCSGLO~1\AppData\Local\Temp\ServiceRequest_Temp_Report {37610816-196F-4EB1-8CB1-C80554C057FD}.rpt: Error in formula . '{ServiceRequest_Table.Dept_Name} = "IT Group" AND {ServiceRequest_Table.Status_Type} = "New" AND {ServiceRequest_Table.UserFullName} = "Hasan Mehmet" AND {ServiceRequest_Table.Open_Date} > "9/30/2007"' A date-time is required here. Details: errorKind
    Please any help in regarding this issue would be greatly appreciative.....it has been weeks and it's driving me crazy.
    Thanks!!

    Step1:- First i create a SSAS datasource. Then i create a cube for my table CacheAttendees.
    It has following columns:-
    [Cache Attendees].[Conference Id]
    [Cache Attendees].[Group Date Count]
    [Cache Attendees].[Insert Time Stamp]
    [Cache Attendees].[Screen Name]
    [Cache Attendees].[User Id]
    [Cache Attendees].[User Type Id]
    [Cache Attendees].[User Type Name]
    [Cache Attendees].[Visit Id]
    Step2:- Then i create a dimension with this cube with all columns.
    Step3:- Then i deploy my SSAS project.
    Step4:- Use SSAS datasource in my SSRS datasource.
    Step5:- Create a report with chart control. Add a parameter ConferenceId. Set default to 1. When i preview my report then it show Cache Attendees].[Conference Id].[1] in header of report instead of that, When i pass the parameter value as 1 then report cannot show & throw an error. I want to pass this parameter at runtime.
    Step6:- Please help me how is it possible to pass parameter at runtime.

  • How to pass date range as filter in Go URL

    Hi,
    I am trying to construct a Go Url which has two filters, date range & text. I have constructed the url as below but it keeps throwing an error. The url is not passing the max date and the application is throwing following error:
    Error: State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-00 is out of range. (HY000)
    Go Url: https:companyUrl?Go&Options=rfd&Path=/shared/CompanyID/Reportlink&P0=2&P1=eq&P2=CustomObject4.%22Indexed%20Pick%201%22&P3=Leasing&P4=bet&P5="- CustomObject4 Custom Attributes".ZDate_26&P6=2+Date%20'2014-08-01'+Date%20'2014-12-31'
    Please suggest.
    Thanks,
    Kiran.

    Looks like you are converting the datatype from char to date in URL, I dont think this can be done.
    Your code is like
    &P6=2+Date%20'2014-08-01'+Date%20'2014-12-31'
    It suppose to be &P6=2+2014-08-01+2014-12-31
    I would suggest to do the formatting for this filed using Column properties and try.
    Hope this helps, pls mark if it does ;)

  • How can I pass a range to a form?

    In my program I have three ranges defined, with the syntax:
    RANGES: range1 for abc,
                    range2 for abc,
                    range3 for abc.
    I would like to pass range1 to a form declared in this program.
    How can I do this?
    Thank you!

    I found this solution:
    REPORT YRT_TEST4.
    data: r_range type range of matnr.
    perform test changing r_range.
    *& Form test
    form test changing p_r_range like r_range.
    endform. " test
    REgards,
    Ravi

  • Pass date range parameter  to SQL stored procedure.

    Hi,
    I'd like to pass a date range parameter from Crystal Reports to a sql stored procedure. Does anyone know if this is possible?
    I've had no problem passing standard datetime (single value) paramaters to and from but am struggling with getting a range value parameter to work.
    Environment: Crystal Reports 10/XI and SQL 2000 MSDE version or SQL 2005 Express Edition.
    Any help would be appreciated.

    C5112736 wrote:>
    > And then these 2 formulas 'Formula # 1' and 'Formula # 2' can be used to pass on to the stored procedure.
    Can someone please demonstrate exactly how to use formula results as date parameters to a SQL stored procedure?  Keep in mind, there are two parameters to the stored procedure.
    I have gleaned this much: Use Add Command and insert the procedure with
    EXEC ServerName.dbo.usp_sprocName;1 '{?StringParameter}'
    but if I try to do
    {CALL ServerName.dbo.usp_SprocName({@Formula1},{@Formula2})}
    then it gives the error "No value given for one or more required parameters". 
    Both of the parameters are VARCHAR(50).
    I have finally found this link: [http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx|http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx]
    This Microsoft site defines the format of the ODBC escape sequences, but I still do not know how to convince Crystal to insert it's parameter results or formula results.
    Pulling what's left of my hair out . . .
    ~ Shaun

Maybe you are looking for

  • Different frame rate in movie mode? iPhone 4

    I noticed that my iPhone shoots video clips with different frame rate from time to time. I suppose it slows frame rate on dark shots. For now all of my daylight shots are 30 fps, while night or dark ones are 25 and 24. This makes it hard to edit clip

  • Consistency check error 38011: Logical tables from multiple subject areas..

    I received multiple 38011 errors when performing a consistency check after merging repositories: For example: Logical tables from multiple subject areas associated, OHRP and Enterprise Warehouse (OHRP and Enterprise Warehouse refer to different busin

  • RAC on 2 nodes (one open ,one mounted)

    Hi All, i am trying installing RAC on vmware -> Oracle 11g Release 1 RAC On Linux Using VMware Server 2 using http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMwareServer2.php i have limited memory 1GB each whenever i p

  • AME cannot read from source location

    I've read up and down the forums about people having trouble with Adobe Media Encoder and no one has posted a clear answer. I am working on an iMac running OSX version 10.6.2.  My processor is a 2.8 GHz Core 2 Duo and I have 4 GB DDR2 SDRAM. My probl

  • Spinning ball in mail/ with i photo

    Was in Apple Mail and went to attach a photo from i photo. When I went to attach> at the application drop down > i photo> the spinning ball just kept spinning and I could not open it. Have the 20 inch 2.0 GHZ imac aluminum. Also just installed the im