Query  (bex) variants

Hi,
I've crated a variant for query bex, now I want to execute this query with this variant default setting.
Moreover, if it's possibile, setting this variant default only for the user xxxx.
Thanks a lot,
Alessandro

It is possible to do it through URLs where the query is called with a variant.
To do it in BEx, it has to be through workbook or through custom VBA where the query is called with a variant. Haven't tried teh latter but should be possible. Have definately done the former.
Another thing to explore is using authorizations but if it is for one user, then that won't work too well. Create another query instead, if it critical.
Cheers
Aneesh

Similar Messages

  • BEx query with variant from ABAP

    Hello,
    I'm looking for possibility to start BEx query with variant (variant is created with tx RSRT) from ABAP. There are some funktion modules, which start queries (launch excel), for example RSAH_LAUNCH_EXCEL or RSSEM_QUERY_LAUNCH, but they are ending with short dump, when there are variables in the query. Is there any standard FM, which starts the query with variant or accepts parameters?
    regards,
    Krzysztof

    Hi,
    the short dump was my fault, I've passed query name instead of genuniid to the RSAH_LAUNCH_EXCEL.
    What I'm trying to do is to I'll start BEx query with parameters (I don't want to get selection-screen from the query, I need to fill it from ABAP).
    Here is my example, which is not working.
    DATA:
      lv_query(30) TYPE c,
      lv_genuniid  TYPE rsrrepdir-genuniid,
      ls_var       TYPE rrx_var,
      lt_var       TYPE TABLE OF rrx_var.
    lv_query = 'YB_MAKLER_DETAIL'.
    CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
      EXPORTING
        input  = lv_query
      IMPORTING
        output = lv_genuniid.
    IF lv_genuniid = ''.
      WRITE: / 'There is no Query', lv_query.
    ELSE.
      ls_var-vnam = 'YS_MKLE'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '0000005100'.
      APPEND ls_var TO lt_var.
      ls_var-vnam = 'YS_VTGJ'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '1999'.
      APPEND ls_var TO lt_var.
      CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
        EXPORTING
          i_genuniid                       = lv_genuniid
          I_OBJVERS                        = 'A'
          i_hide_sapgui                    = 'X'
        TABLES
          I_T_VAR                          = lt_var.
    ENDIF.
    If parameter 'i_hide_sapgui' is empty, I'm getting empty selection-screen,
    If parameter 'i_hide_sapgui' equals 'X' I'm getting selection-screen filled with values, which were used last time manualy, not with values from the internal table 'lt_var'.
    Do you have any idea how to pass parameters to the query with this function module?
    Regards,
    Krzysztof

  • Refresh BEx-Query with variant

    Dear all,
    i have a question about refreshing Queries with variants.
    To refresh a BEx-Query (BW3.5) in a Workbook with VBA is no problem.
    For example:
    Run "SAPBEX.XLA!SAPBEXrefresh", False, myRange
    But is there a possibilty to refresh a BEx-Query with a variant (also with VBA)?
    My target is to create a VBA-Tool:
    1 which user can select a single Query and the available variant.
    2 Then push a VBA-Button
    3 After the selection no Variable-Screen will pop-up
       and the refreshing is completed.
    Thanks all

    Hi Ashok,
    refreshing Queries automatically on Workbook open is standard...
    What i need is to refresh a Query with variant (saved variable-values for a query e.g. the name of the variant is "ZMYVARIABLES").
    The user should not select an existing variant (ZMYVARIABLES)
    manually with Shift+F5 (Get Variant) on the Query-Variable POPUP-Screen.
    What i need is a codefragment which implement that all.
    Pseudo code:
    Sub RefreshQuery(QueryID As String, Variantname As String)
    End Sub
    Thanks,
    Erol

  • Authorization fu00FCr BEx Variants

    Hello,
    does anyone have an idea if the Variants für BEx Querys can be authorized?
    A user creats a BEx Variant ans every user who is autorized for this Query / WB can see this variant and use it.
    Can this be authorized that everybody can only see his own variants?
    We have BI 7.0, but we still use BEx 3.5 for Reporting.
    Thanks a lot.
    Regards,
    Joe

    Hello Joe,
    There is Authorization variable where you can restrict the user based on the characteristics value and characteristics level, but its not possible to hide the variable according to users.
    For example, if you want to hide the sales region from Emp A, then you can set the user profile to see only the sales region he is authorized to, provided the Sales Region is Authorization enabled.
    You can set the Authorization using Tcode RSSM (BI3.5)
    You can also Personalize the variable values according to the users.
    Thanks
    Chandran

  • Query Bex Problem

    Hi,
    I have a problem when I open a query Bex With 7.0 BW.
    There is a Analyzer Message Popup with this error:
    ! Creation of Item TEXTELEMENT_23 Failed
    ! Creation of Item TEXTELEMENT_2 Failed
    ! Creation of Item TEXTELEMENT_4 Failed
    ! Creation of Item TEXTELEMENT_5 Failed
    ! Creation of Item TEXTELEMENT_6 Failed
    ! Creation of Item TEXTELEMENT_7 Failed
    ! Creation of Item NAVPANEL13 Failed
    ! Creation of Item TEXTELEMENT_30 Failed
    After installation check there aren't problems.
    Excel Version is      11.0  8169 (001)
    Windows Version is     Windows XP Service Pack 2 (2600)
    SAP GUI 6.40 13 or higher
    Version on PC     7.00 Patch 1502
    This problem refers only to one PC CLient.
    On others PC there are no problem.
    Can you help me?
    Thanks.
    Davide

    Hi
    We have seen these issues when doing certain things when disconnected from BW, eg. renaming of excel tabs where the query is inserted etc. then you are likely to see this issue. 
    "The "new" 7.0 Analyzer works with a complete different paradigm
    than the "old" 3.X one - now an Excel sheet is seen as a "container"
    containing items (similar as in the WAD) whereas the old analyzer
    works more cell-oriented. Therefore a much stronger dependency now
    exists between the items and the sheet, and that's why you can't
    rename sheets when the Analyzer is not running.
    So in the end this means that we haven't "removed functionality"
    but due to a different implementation some things behave different
    or can't be used as in the older version."
    Hope this is of use.

  • Generate BEx Variant with ABAP

    I would like to create lot of BEx Variant automaticlly on a Workbook. But now, I just found the Variant stored in table VARID(ID) , VARIT (Text) , VARI ( ? ) and TRDIR .
    But the data which stored in these tables are not I want.
    How could I do this ?
    Thank you.

    Liang,
    What is the version of BW/BI (3.x or 2004s) you are using?
    In BW 3.x these are stores in VARI & VARID
    In BI 2004s these are in RSRVARIANT & RSRVARIANTDIR
    You can look athe function modules RS_VARIANT_CREATE, RS_VARIANT_DELETE and RS_VARIANT_EXISTS.
    But if you are using 2004s , forget it these functions are not useful anymore.because when you create variants in 2004s they gets stored in RSRVARIANT & RSRVARIANTDIR, but the function modules are looking at VARI & VARID tables.
    Hope this helps.
    Alex (Arthur Samson)

  • WAD: Execute query with variant

    Hi,
    I would like to create a web report so that for a web item to select a query with variant. Is it possible using WAD?
    Or is there any parameter that could be used in the URL so that I can create directly the URL for this web report, without using WAD anymore?
    Could you please give me some sugestions regarding this problem?
    Thank you,
    Iuliana

    HI Iuliana,
    Take a look at this post:
    Re: Variant for a Web Report
    Hope this helps...

  • Concurrent Users for Query BEx

    Hi BW Experts,
    my concerns are related to the simultaneous access to a query BEx.
    On a total amount of 3000 users I have 300 concurrent users, launching the same query in the same time.
    Two are my issues:
    1 - how can I test the simultaneous launch of the query without involving 300 persons?
    2 - I think the performance of such a test will be not acceptable: what are the levers/parameters BW system gives me to increase these kind of performance?
    Thank you in advance for your help!
    Kind regards.
    Matteo

    To have 300 users start the same query at the exact same time is certainly unusual. Don't have any good suggestions on the "Hoe to test" question. This is a difficult question to answer with a short answer.  You have many performance options/considerations:
    Are the users running the exact same query with all the same input parameters? Pre-calculated web templates might be of value, this would cache precalculated web pages,  or consider scheduling the query and then distributing the results via e-mail using Information Broadcaster.
    If the result set is not unusually large, you may be able to schedule a run of the query and store the results in the OLAP cache, that way the Database does not need to be accessed - the users will get their results from the OLAP Cache (Server memory) which is very fast.
    This doesn't even begin to consider the hardware and landscape in place, e.g. are there multiple App servers?
    Depending on the approach, your bottleneck could be the DB server, it could be the App Server(s), or specific components of the App server.  A lot depends also on how much you mean that the users run it at the same time - all 300 at exactly the same time, within a 15 minute time period, an hour?
    A web query is probably a better approach than the BEx Analyzer (Excel)in this situation as it gnerates  considerably less network traffic.

  • Call of a query bex from a module function BW

    Hi,
    I have to perform call of a query BEX from a BW module function
    Is there a way to perform this call ?
    Thanks

    its possible, but what are you going to do with the result
    options: 1. use FM RRW3_WEBRFC
    this will return results in HTML format
    option: 2 use my custom FM which will return results in xml format
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    option 3: use FM RRW3_GET_QUERY_VIEW_DATA
    you have to handle the return data to get it in two dimensional format
    Regards
    Raja

  • Can I use control query and Variant?

    Can I use control query and Variant?
    I tried both but it’s not working, what’s my requirement is in a web template having material, distribution as drop box and I have to create for all countries(Like USA, Canada,China…)so what I did , I created a control query as material& distribution and I created variants for countries. After precalculating it’s not working.
    Any help ll be appreciated
    Thanks

    Yes you can use Control Query AND Variant in your Setting. Maybe you did not setup you Web template correctly?

  • RSBBS Query BEx to URL issue

    Hi,
    I'm creating a RRI from a Query BEx to a URL.
    It's almost working fine, the problem is that when transferring values, in the URL appears the infoobject technical code, and it shouldn't.
    Here an example:
    URL receiver:
    http://...M_MODE=DISPLAY&SAPSRM_BOID=0050568301751EE4B4F425D2C3AFB8E7
    Being 0050568301751EE4B4F425D2C3AFB8E7 the value I want to transfer. The InfoObject is 0BBP_SCGUID.
    But when I jump from Query BEx to URL, it appears as follows:
    M_MODE=DISPLAY&SAPSRM_BOID=0BBP_SCGUID=0050568301751EE4B4F425D2C3AFB8E7
    As 0BBP_SCGUID= appears in the URL, this is not recognized any more.  Do you know how to do to remove the infoobject technical name from the URL?
    Thanks a lot

    Hi,
    Already solved
    I thought it was going to take longer, but no.
    But I did is, in URL, I removed the part "&SAPSRM_BOID="
    Then, in RRI assignements, in infoobject name I named it as SAPSRM_BOID as 0BBP_SCGUID. Ans solved!

  • Multiple reads of the same data from Multiprovider by Query (Bex)

    Hello, guys!
    We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
    Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?

    Hello Nikita,
    By "copy of a query" i meant something like this as shown below :
    *Kindly click on the screenshot for a better view.
    1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
    2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
    As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
    I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
    But this does not mean that this is wrong approach. There are various areas where you can improve for example :
    1) Either improve your BEx query if possible or use aggregates or something like that .
    2) Use the  Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
    Thanks!!
    Regards,
    Ashutosh Singh

  • Query (SQ01): Variant authorization

    Hello experts,
    I made a query from SQ01.
    I want create a variant on this query but with only authorization to specific user.
    How can I restric authorization to one variant of query in order that can only be executed by specific user ?
    Example:
    SQ01 query name: Z_QUERY_1
    Variant name: V1_Q_1
    User:  USER1
    Only user USER1 must have authorization to execute variant V1_Q_1
    Regards,
    Juan

    Hi
    Refer the below url
    [User-specific Selection Variables  |http://help.sap.com/saphelp_nw70/helpdata/en/c0/98039ee58611d194cc00a0c94260a5/content.htm]
    [Query|http://goldenink.com/abap/sap_query.html]

  • How to transport BEX variants in BI?

    Hi,
    after the bw-upgrade we have problems with the transport of our variants created in BEX. In BW 3.1 we used saplsvar ( with report-id and variantname) to create a transport. But this doesn't work with BI. Does anyone know which parameter saplsvar need to create a transport in BI?- Or which other alternativ exists to transport a variant.
    Thanx in advance.

    Hi,
    the new variants will be stored only in RSRVARIANT, but not in the VARID. In VARID are only the variants saved in 3.x version.
    But how can I transport RSRVARIANT; its a SAP-table?
    I'm looking for a program like RSTRANSP, because this program will not work with BI.
    Detlef

  • Show last data 0 in an Input-ready query - Bex

    Hi experts,
    I have an Input-ready query working ok with IP (Integrated Planning).
    The infocube contains information about date/material/stock_quantity (via DTP, date and material, and real-time introduced stock-quantity), the user (via Bex) only introduce the stock quantity.
    This is an example of the real-time cube data:
    Date Material Quantity
    02/03/2011    M1     1000  (input via Input-ready-query)
    03/03/2011    M1     0   (planned via DTP)
    04/03/2011    M1     0    (planned via DTP)
    05/03/2011    M1     200  (input via Input-ready-query)
    06/03/2011    M1     50    (input via Input-ready-query)
    07/03/2011    M1     0    (planned via DTP)
    I want to create a query-workwook that displays: if stock_quant.=0, show the last value <>0 of this material, if stock_quant<>0 it's ok:
    Example workbook desired,
    02/03/2011    M1     1000
    03/03/2011    M1     1000
    04/03/2011    M1     1000   
    05/03/2011    M1     200
    06/03/2011    M1     50 
    07/03/2011    M1     50   
    Do you know how could I show it via Bex-workbook or other loading way ?
    Thanks!!

    Hi Marcel,
    an idea could be to create a virtual key figure and then to use it in the desired bex query. You will need also a way to create an mdx (pre-) query on the fly in order to have the quantity history of the material(s). This is a better approach than reading directly the infocube.
    Take a look at the how to guide "How to ... Realize summarized display of stock values on storage location level". The specific scenario is quite similar with your own requirements. You can find the document on URL http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/eb9faa90-0201-0010-cc9c-cd2e6c0a549a
    Kind Regards,
    Theodoros

Maybe you are looking for

  • I bought a used MacBook Pro and didn't come with an install disc.

    I recently purchased a used MacBook Pro, it is the 2006 15.4inch, with 1.83GHz Intel core duo processor. It didn't come with RAM, a charger or the instal disc and the battery was dead. I installed RAM, bought a battery and charger and it booted up no

  • Portal Date format

    Is there a way where we can control the date format from the portal which when change will take effect of webdynpro java applications deployed? Scenario: We have webdynpro java applications deployed on the portal. Data are coming from r/3 which inclu

  • Uninstall Elements 6 failed because of javascript error

    I recently upgraded to Mac OS X Mountain Lion and was informed that I needed to uninstall and reinstall Photoshop Elements 6. The Setup application could not be opened, however, because of Javascript errors (according to the error message). I couldn'

  • Confused about editing RAW images on iPad

    I just got a new 3rd generation iPad. I got it primarily to store, view, and edit RAW images captured by my Canon DLSR. My camera takes 12 megapixel images. I am able to download them from the camera to the iPad using the Apple Camera Connection Kit.

  • New version of sapyto - SAP Penetration Testing Framework

    Hello list, I'm glad to let you know that a new version of sapyto, the SAP Penetration Testing Framework, is available. You can download it by accessing the following link: http://www.cybsec.com/EN/research/sapyto.php News in this version: This versi