CL_RSR_QUERY_VARIABLES

Hi SDN Community,
When queries get executed,
The function module runs
rrs_var_values_exit_after
and also important is the
CL_RSR_QUERY_VARIABLES
Basically, I require a way of getting a certain code to run after any query is run.
This will then be used to create statistics, more than RSDDSTAT, ie. by variable values of the query.
In cmod project, you can do this, but this is variable based, and I wan't to do it on query level.
Are you aware how we can do this?
Thank you.
Simon

Hey,
This is a popular question and I have yet to see it answered. I do not think it is possible. It might be worth while creating a development request following Note 11.
Regards.
Michael

Similar Messages

  • Class CL_RSR_QUERY_VARIABLES does not exit anymore

    Dear all,
    Class CL_RSR_QUERY_VARIABLES does not exist anymore in NW04s. Does anybody know what is the new class that substitutes it?
    Thanks and regards,
    Flavia Sanchez

    Hi Michael,
    I am the guy responsible for this development.
    The class is used in a function module to execute a BW Query and return a xml string within a BSP application. The result table of the query is used within the BSP application logic to fill the graphical presentation layer that consitutes the front end of the BSP application. 
    Here is the statement within the FM where the class is used:
      DATA: wf_query_var TYPE REF TO cl_rsr_query_variables .
    Here is the call to the FM within the BSP application (Even Handler: OnInputProcessing):
          CALL FUNCTION 'Z_RMZ_BW_SEM_NGRM_EXE_QRY'
            EXPORTING
              QUERY_NAME            = rpt_tech_id
            IMPORTING
              XML_OUT               = xml_out
              REF_RESULT_TAB        = res_tab
            TABLES
              QUERY_VARIABLES       = var
              RETURN                = breturn
              META                  = meta
            EXCEPTIONS
              BAD_VALUE_COMBINATION = 1
              USER_NOT_AUTHORIZED   = 2
              UNKNOWN_ERROR         = 3
              QUERY_NOT_FOUND       = 4
              OTHERS                = 5.
    If this class does not exist with this name in NW then I assume it must exist as another object since this is THE class for programming with query variables.
    Thanks for your support.
    Greetings,
    Martin

  • Alternative of CL_RSR_QUERY_VARIABLES in BI (urgent)

    Hi can any body tell me what is the alternative class in BI70 as this class does not exist in BI system ,, but it was there in previous release, and what actually this class does.
    thanks
    Faisal

    Hey,
    This is a popular question and I have yet to see it answered. I do not think it is possible. It might be worth while creating a development request following Note 11.
    Regards.
    Michael

  • Query Variable Error

    Hi Experts!
    I'm encountering this error when I'm running a query:
    "Abort No value could be determined for variable 0P_KEYD2.
    Abort System error in program CL_RSR_QUERY_VARIABLES and form SUBMIT:SET_DATA_P
    Any ideas?
    Thanks,
    Maan

    Maybe there was no key date set for your query in the query properties.

  • Query with variant from ABAP

    Hello!
    I need to execute a BW-query from an Abap-report.
    I tried it already with function module 'RRW3_GET_QUERY_VIEW_DATA' and with classes / objects 'CL_RSR_REQUEST' resp. 'CL_RSR_DATA', but:
    I want to use the query with a variant, which could be found in table RSRPARAMETRIZA.
    (Btw: even with a variant in table RSRVARIANTDIR  I don't get the results wanted...)
    Is there a direct way to call a BW-query with a variant from Abap?
    Alternatively: How do I get the variant-contents? Is there a 'universal' way to work with both kinds of variants? (RSRVARIANTDIR / RSRPARAMETRIZA) 
    Thanks in advance.

    Thanks for the link.
    Well, I already read that document and I followed the links to the former blogs on this subject.
    But this solution doesn't work for me: CL_RSR_QUERY_VARIABLES is unknown.
    I read the pdf and the function-module-code, but I still don't have an idea how to work with query- variants . The example-coding includes a line
    DATA: wf_variant TYPE variant .
    but that's not used, or is it?
    (I don't have a set of variables and conditions, but just a variant-name. The variant will be created by other people, who would start my report.)
    Greetings

  • Data from BI query

    Hi ,
    I'm stuck on an Abap program
    I have to execute a Bex Query then store the retreived data, the old logic uses classe cl_RSR_Query_variables, this doesn't exist any more.
    I want to keep my logic and substitute only the type of my query variable
    here it is the part of logic to modify
    DATA: wf_query_var TYPE REF TO cl_rsr_query_variables .
    DATA: r_request TYPE REF TO cl_rsr_request.
    DATA: r_dataset TYPE REF TO cl_rsr_data_set.
    MOVE: query_name TO cube_name .
    Convert the query name to technical id
    CLEAR p_genuniid .
    CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
    EXPORTING
    input = query_name
    IMPORTING
    output = p_genuniid.
    IF p_genuniid IS INITIAL .
    RAISE query_not_found .
    ENDIF.
    Create instance of cl_rsr_request
    CREATE OBJECT r_request
    EXPORTING i_genuniid = p_genuniid .
    Create instance of cl_rsr_variables
    i_var[] = query_variables[] .
    CREATE OBJECT wf_query_var
    EXPORTING
    i_r_request = r_request
    i_t_nvar = i_var
    EXCEPTIONS
    user_not_authorized = 1
    no_processing = 2
    bad_value_combination = 3
    x_message = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    CASE sy-subrc .
    WHEN 1 .
    RAISE user_not_authorized .
    WHEN 3 .
    RAISE bad_value_combination .
    WHEN OTHERS .
    RAISE unknown_error .
    ENDCASE .
    ENDIF.
    Set the variable and execute the query
    TRY.
    r_request->variables_set( i_t_var = i_var ).
    r_request->variables_start( ).
    r_request->read_data( ).
    r_dataset = cl_rsr_data_set=>get( i_r_request = r_request ).
    Thanks for any suggestion

    You Might (I say Might) possibly have better luck if you can use the BI accelerator. On 640 of course the old BW methods and classes are still in the system.
    I haven't actually used the BI accelerator but I'm told by people who have that it's an excellent tool for almost limitless queries. I'm sure some "Googling" or browsing the BI Forum might also help you.
    Often when a new release is installed people try and "replicate" old stuff. In general (although I know it's not always true in SAP's case) if stuff has been removed in  a new release it's either because the old method is "deprecated" or there's a hugely better method available.
    I'm sorry I can't be more helpful than that but if you MUST have this query class you can always I suppose try and get it "Retrofitted" to your system. I'd advise against that approach however.
    Cheers
    Jimbo

  • Y_execute_query problem

    Hello,<br>
    <br>
    I followed the steps that appear in the blog to create the [blog|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0065831850DB10279801816864588763End?blog=/pub/wlg/1455] and I coment a peice of code because I don't have the class CL_RSR_QUERY_VARIABLES. <br>
    <br>
    Now, I want to execute one query that have a filter variable under one dimension. I put the next code:<br>
    <br>
    MOVE: 'ZD_CHAN' TO wa_var-vnam,<br>
      'I' TO wa_var-sign,<br>
      'EQ' TO wa_var-opt,<br>
      'Internet' TO wa_var-low,<br>
      '0HIER_NODE' to wa_var-high,<br>
    APPEND wa_var TO var .<br>
    <br>
    The problem, is that this code execute the query but don't aply the filter.<br>
    <br>
    Can Anybody helps me ???<br>
    <br>
    Thanks.
    Edited by: Toni Sierra on Oct 13, 2009 11:36 AM

    Solved,<br>
    <br>
    I defined the variables in the query designer and now, I can pass the filter values.<br>
    <br>
    Thanks.

  • Using BSP to fech BW query data

    Hi all,
    I wanted to create a BSP application which retrieves the data from BW and then it displays the data .
    For that i have created a BSP(for selection screen using HTML and java script).
    There is a BW query which retrieves the desired data from BW.
    Now can anyone please tell me how to get data from that BW QUERY data from BSP??
    I think there is a function module RRW3_GET_QUERY_VIEW_DATA for that.
    But i dont know how to use that.
    Please help me out.
    Regards,
    Sumanth

    Hi Durairaj ,
    First of all let me tell u, that u r awesome....Your blogs were too good.
    Initially i tried to use your function module, but there isnt a class called cl_rsr_query_variables.
    So i tried using RRW3_GET_QUERY_VIEW_DATA.
    But i am getting a dump saying "Exception condition "NO_APPLICABLE_DATA" raised. ".
    Here is the code im using.
    zparam-NAME = 'VAR_NAME_1'.
    zparam-VALUE = '0RPA_BDD'.
    append zparam to zparam2.
    zparam-NAME = 'VAR_VALUE_EXT_1'.
    zparam-VALUE = '20080220'.
    append zparam to zparam2.
    CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
    EXPORTING
      i_infoprovider = 'ZMC_POS_A'
      i_query = 'REP_ZMC_POS_A_001_TEST'
      i_t_parameter = zparam2
    IMPORTING
      e_axis_data = wa_axis_data
      e_cell_data = wa_CELL_DATA.
    Can you also tell me how to pass to i_t_parameter  , if i want to use a date range.
    Thanks in advance.
    Regards,
    Sumanth

  • Query Variants in 2004s

    Hi Gurus,
    I am saving variants on the bEx query prompt in 2004s.But I dont find them when I run the query again in BEX or in RSRT. I see that entries are not maintaind in the table RSRVARIANTDIR.
    When I run the same query in RSRT and save the variants there, then the entries are maintained in the above table.
    I checked the same in 3.5 and in 3.5, if i save the variabts in BEX, the entries are maintained in the table and are avaiulable for selection when run the next time.
    I am assuming thus that this is a bug. Has some one faced the same in 2004s? If not can folks who are on 2004s try this out and let me know.
    We are on BW SP 11 and FEP 12.
    Thanks in advance ! Needless to say, points would be awarded....
    Prakash

    Hello All,
    As I was debugging (in RSRT), the code traverses through the INSERT commands in the class CL_RSR_QUERY_VARIANT where it inserts values of the variants in the RSRVARIANT, RSRVARIANTTXT etc tables.
    I am assuming that this insertion is not happening or the internal tables where these values are stored for insertion are empty WHEN THE VARIANTS are attempted to be maintained through BEX.
    My question is how do i get into the debug mode (into the code) when i run the query from BEX ? I could debug through RSRT, but as I mentioned before, the variants get successfully populated in the tables when maintained through RSRT.
    I saw a trace list option in the BEX settings, but that doenst tell me anything.
    Thanks for your help in advance!
    Prakash

Maybe you are looking for

  • How do I format a linked Excel file in InDesign and maintain formatting when the Excel is modified?

    I'm in CS5.5 . I have no problem placing an Excel spreadsheet with the cell range I want and applying cell formatting in InDesign. I am trying to build eight similar documents that will pull data in several tables from a document specific Excel sprea

  • How to generate site wise report for multiple sites running on single MDEX

    Hi all, I have single instance of MDEX 6.2 and Exprience Manager. I have created some pages in workbench and set the specific trigger for all pages. These pages are called from 2 different sites I have differentiated these 2 site by user profile. All

  • Help with SYSDATE in SQL query

    Hi all, I'm trying to select some data from table base on SYSDATE. The below query does not return any data. My query is: select count(TICKET_ID) "ECEMEA" from QTMT_TICKETS where STATUS_ID=1 and TEAM_ID=3 and RECEIVED_DATE=sysdate Could you please le

  • Photoshop elements 10 scanned photos

    Can someone tell me why my scanned photos go in fine and I am able to date & tag photos but when I review them later they come up with "searching for missing file" everytime

  • Where do I download new firmware?

    My mom gave me her old iPod Touch, it's a first generation iPod. I wanted to add apps, but after some research, I need 2.0.0 or higher for apps, my iPod Touch she gave me is 1.1.5. I clicked Check for Update but it doesn't give any results. What do I