RRW3_GET_QUERY_VIEW_DATA in BW 3.0

Hi erveryone,
we needed the FM RRW3_GET_QUERY_VIEW_DATA  in an BW 3.0 environment. SAP Note 675000 showed us a way to create this FM in BW 3.0.
After creating the FM it seems that we now have the problem, that all the  parameters in I_T_PARAMETERS are not correctly used. All the time it is extracting the complete query results.
Has anyone here a idea to fixe this?
Thanks and Regards
Ingo

how did you pass the variable.
the pattern should be
VAR_NAME_1                     0H_CCTR 
VAR_VALUE_EXT_1                ABCDE 
Regards
Raja

Similar Messages

  • How to pass CMD in FM RRW3_GET_QUERY_VIEW_DATA?

    I want my query results to be fully expanded using RRW3_GET_QUERY_VIEW_DATA function module. I saw while using RSRT transaction that in a query output, all levels can be expanded by going to Right Click on BEx report->Enhanced Menu->Expand Hierarchy-> Level <n>. I see that when I do that the bookmark text adds things like ENHANCED_MENU=X&
    CMD=DRILL_TO_LEVEL&LEVEL=4&IOBJNM=0PLANT. I want to get data from my queries expanded till last level in an ABAP program.
    I tried passing below values to I_T_PARAMETER of function module but still it is returning only the first level of data in hierarchy.
    CMD - DRILL_TO_LEVEL
    LEVEL - 4
    IOBJNM - 0PLANT
    Please help me out!

    Seems there are some options, see this thread:
    RRW3_GET_QUERY_VIEW_DATA  -  Hierarchy Variable

  • How to set Parameters in RRW3_GET_QUERY_VIEW_DATA

    Hello All,
    I am trying to use RRW3_GET_QUERY_VIEW_DATA function module for executing a query. Currently i am stuck big time figuring out how to set the parameters in  I_T_PARAMETER.
    I my case i need to run a query with the following key,value pairs
    1. 0I_FY_OP    =  001.2004
    2. ZHWORKCT = ABC
    Can some one throw more light into how to set the above parameters into I_T_PARAMETER??
    Thanks a  lot,
    Naveen

    Hello Prathibha,
    Thanks for the quick respone. I did go though the weblog and am trying to find my way through the documentation. I was wondering if the BW gurus could point me to some useful tips or examples.
    Thanks a lot,
    Naveen

  • How to change number of records displayed in Web service: Query_view_data

    Hi experts
    I´m using webservice Query_view_data to fill a Xcelsius model with data.
    The Bex Query contains appr. 300 records but the webservice returns only 50 records. When I test it it says "displaying 50 of 312 records".
    When I tried ABAP FM RRW3_GET_QUERY_VIEW_DATA it gave all 312 records.
    Does anyone know how I can change this setting so that all 312 records are displayed in the webservice?
    Best Regards
    Kenneth

    Mani,
    I have changed the properties of the chart as you said and gave 4 decimal places. If my actual data value is 0.787989, i would expect it to result 0.7879 but the outcome is 0.7800. It is replacing the other two decimal places with 0's rather than the actual number. Is this a bug in OBIEE or am i doing anything wrong?? Is there any other way to do this. Please let e know...
    Thanks,
    vnk
    Edited by: user8708843 on Aug 18, 2010 8:03 AM

  • Drilldown in Web service query_view_data

    Hi experts,
    I´m using web services for accessing query data (query_view_data) and I can request the result set for a query in XML format.
    This XML format is publishing into a non SAP Portal (customer JAVA portal).
    With some effort we can visualize the output result into a table form and generic navigation block (like Web analyzer).
    We can filter values/variable using  Web service parameters (data provider commands from Web API reference):
    Examples
    Filter Data Provider u2019View1u2019 by Country: Germany
    I don´t know I can use it (Drilldown), in the same way Filter command.
    Does anybody know to use Drilldown command into Web Service?
    Is it possible to use in the mentioned landscape (publishing XML format in JAVA portal using web service u2018query_view_datau2019)?
    Thanks in advance
    David
    Edited by: DAVID GALLEGO on Sep 1, 2009 2:05 PM

    Thanks for your appreciate help,
    I execute de FM RRW3_GET_QUERY_VIEW_DATA (se37):
    1.- Without parameters --> Result set OK (comparing E_CELL_DATA to my query/view table). E_CELL_DATA have 93 rows.
    2.- With command FILTER:
                        FILTER_IOBJNM                  0EMPLGROUP
                        FILTER_VALUE                   20511
    Result set OK (comparing to E_CELL_DATA  my query/view table). E_CELL_DATA have 3 rows.
    3.- With command REMOVE FILTER:
                        CMD                                   REMOVE_FILTER
                        IOBJNM                              0EMPLGROUP
    Result set NO OK (comparing to E_CELL_DATA  my query/view table). E_CELL_DATA have 3 rows, when expected 93 rows.
    I get the same as step 2, not the result of step 1.
    Can you see anything wrong?
    Thanks
    David

  • How to fetch the data from query to internal table ?

    Dear all ,
             I would like to fetch the query data(sq01) into my internal table ? is it possible to do that ?
    Best Regards,
    Carlos

    Hi
    Try this <b>RRW3_GET_QUERY_VIEW_DATA</b>
    Also, you can have a look at this...
    <a href="/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii Query results into Internal table</a>
    Regards
    Raj

  • Error while executing BEX query via FM

    Hi Friends,
    I am getting following error while executing a query via FM RRW3_GET_QUERY_VIEW_DATA.
    Please see the error screenshot as follows.
    the I_T_PARAMETERS entered are as follows.
    Please let me know what is missing.
    Thanks.
    Regards,
    Hrishikesh

    the key date variable 0DAT is normally filled by a SAP exit variable, but this may not be the case.  it could have been changed in the query designer,  check the query in query designer and see.
    Try passing 0DAT in the variable list with todays date

  • How to read data from an internal table into a real table?

    Hello experts,
    I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created.  I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider.  I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created.  Please see code below.
    TABLES MULTITAB.
    DATA:
      query_name TYPE RSZCOMPID,
      s_cubename TYPE RSINFOPROV,
      t_cell_data TYPE RRWS_T_CELL,
      t_axis_data TYPE RRWS_THX_AXIS_DATA,
      t_axis_info TYPE RRWS_THX_AXIS_INFO,
      wa_t_cell_data like line of t_cell_data,
      wa_t_axis_data like line of t_axis_data,
      w_corp_tab like line of t_cell_data.
    s_cubename = 'CORP_MPO1'.
    query_name = 'Z_corp_test'.
        CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
           EXPORTING
             i_infoprovider           = s_cubename
             i_query                  = query_name
            i_t_parameter            = query_string_tab
           IMPORTING
             e_cell_data              = t_cell_data
             e_axis_data              = t_axis_data
             e_axis_info              = t_axis_info.
    If anyone has any information to help me, I would greatly appreciate it.  Thanks.

    Hi,
    <li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
    <li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
    LOOP AT t_cell_data INTO wa_t_cell_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    LOOP AT t_axis_data INTO wa_t_axis_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    Thanks
    Venkat.O

  • Fetch query data in ABAP

    Hi
    We are trying to execute a BW query using the RRW3_GET_QUERY_VIEW_DATA function module but when I test the function module I'm getting the data expected.
    My query is a simple query returning the cost center hierarchy that my authorizations give me access to). I fill the import parameters I_INFOPROVIDER and I_QUERY and leave I_VIEW_ID and I_T_PARAMETER empty. When I execute the function module I only get zeros in the E_CELL_DATA export parameter. The query works fine, when I execute it through the Query Analyzer.
    Any ideas what I might be doing wrong?
    We are using a BW 3.5 SP19
    Regards,
    Jacob Vennervald

    OK, I have found out that the reason I didn't get any data was that I didn't have any key figures in the query. This might sound strange but I'll try to explain.
    What I want to do is to create a query that will return the cost center hierarchy that a specific user has access to. This hierarchy is in the infoobject 0COSTCENTER and I though I could just make a query with this infoobject in it and then fetch the result of this query in ABAP using FM RRW3_GET_QUERY_VIEW_DATA, but apparently that is not possible.
    Is there another way to get contents of the infoobject into the query?
    Is there a way to fetch the contents of the infoobject from ABAP?
    Regards,
    Jacob

  • Error when executing Webservice in BW

    Hi,
    I am trying to execute Web service in Web service navigator and i am getting the following error
    HTTP/1.1 500 Internal Server Error
    content-type: text/xml; charset=utf-8
    content-length: 600
    accept: text/xml
    sap-srt_id: 20100823/155814/v1.00_final_6.40/4C72FD39F2E90095E10080000A754720
    server: SAP NetWeaver Application Server / ABAP 701
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header></soap-env:Header><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">InvalidVariableValues</faultstring><detail><n0:GetQueryViewData.Exception xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"><Name>InvalidVariableValues</Name><Text>Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET ()</Text><Message><ID>BRAIN</ID><Number>369</Number></Message></n0:GetQueryViewData.Exception></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>
    I tried to test my webservice in SICF and i get the following soap message
    <soap-env:Envelope>
    <soap-env:Header/>
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Server</faultcode>
    <faultstring xml:lang="en">
    SRT: Wrong Content-Type and empty HTTP-Body received
    </faultstring>
    <detail>
    <ns:SystemFault>
    <Host>undefined</Host>
    <Component>COREMSG</Component>
    <ChainedException>
    <Exception_Name>CX_SOAP_CORE</Exception_Name>
    <Exception_Text>
    SRT: Wrong Content-Type and empty HTTP-Body received
    </Exception_Text>
    </ChainedException>
    </ns:SystemFault>
    </detail>
    </soap-env:Fault>
    </soap-env:Body>
    </soap-env:Envelope>
    Can any one help me with this issue
    Thanks
    Surya

    Hi,
    Thanks for your response. It looks like its throwing Invalid Variable Values error. However my query does not have any variables. I tried it with and without variables but i still get the same error..
    Without variables i just entered Infoprovider and Query name. I get the same error. However when i execute function module
    RRW3_GET_QUERY_VIEW_DATA with the same input parameters which is infoprovider and query i get my result. Below is the error message
    HTTP/1.1 500 Internal Server Error
    set-cookie: sap-usercontext=sap-client=210; path=/
    content-type: text/xml; charset=utf-8
    content-length: 600
    accept: text/xml
    sap-srt_id: 20100827/091011/v1.00_final_6.40/4C77DAAC123A0095E10080000A754720
    server: SAP NetWeaver Application Server / ABAP 701
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
          <soap-env:Header></soap-env:Header>
          <soap-env:Body>
                <soap-env:Fault>
                      <faultcode>soap-env:Client</faultcode>
                      <faultstring xml:lang="en">InvalidVariableValues</faultstring>
                      <detail>
                            <n0:GetQueryViewData.Exception xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
                                  <Name>InvalidVariableValues</Name>
                                  <Text>Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET ()</Text>
                                  <Message>
                                        <ID>BRAIN</ID>
                                        <Number>369</Number>
                                  </Message>
                            </n0:GetQueryViewData.Exception>
                      </detail>
               </soap-env:Fault>
          </soap-env:Body>
    </soap-env:Envelope>

  • How to pass date to program in process chain

    Hello,
    I have a program to extract the data of a query (using 'RRW3_GET_QUERY_VIEW_DATA' ) that I want to run in the process chain.
    This program is dynamic in that I pass the query name and the variables required by that query. As such, I need to pass the date dynamically because each time I use this program for a different query the dates required will differ. One query night require current month, another query might require current month -1, etc. and be dynamic so that I never have to change the settings of the process once created, i.e. it will automatically know which month it is extracting for each month.
    Is there a way to do this in the process chain?
    I made the program dynamic (by giving it parameters) rather than having to create a program hardcoded for each query.
    I have searched but cannot see anything relevent.
    I hope somone can help me!!!
    Thanks
    Richard

    In your ABAP program that calls 'RRW3_GET_QUERY_VIEW_DATA' you can define a select-option for the date, so that you can enter this information on the selection screen.
    Now create a variant (as mentioned before) for your query and your dates. Important to stress out here is that the dialog to save variants offers already in the standard multiple option to define dates or date ranges dynamically.
    So you can pick one of the standard dynamic variables to have the variant always pick e.g. the current date or the previous month.
    Have a look in the SAP help for "Using Variables for Date Calculations"
    http://help.sap.com/saphelp_nw04/helpdata/en/c0/98039be58611d194cc00a0c94260a5/frameset.htm
    The screens look old and grey, but this still works fine and can be used to avoid hard-coding or storing values in Z-tables.
    Best,
    Ralf

  • How to use Infocube in Look ups

    Hi Experts,
    i have a requirement that i have Infoset as source and Infocube as target. For the two key figures in the target i neet to get the values from some other Infocube by comparing some characteristics using look ups..
    Before i have used Look ups to get the data from DSO..now i have a question that how to get the values from Infocube  ..
    thank you..

    Hi,
    also see following function module
    RRW3_GET_QUERY_VIEW_DATA
    Thanks and regards

  • FM RSCRMBW_REPORT: What parameters for extracting query in itab?

    Hello,
    I'm trying to extract query data to a XML-file (in order to use it as a connection source for a XCelsius-dashboard).
    Therefore I use the FM RSCRMBW_REPORT as shown in Eddy De Clercq's tutorial:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3ba5e590-0201-0010-59b1-cab51fd245b7
    But I have a problem with the parameter i_extract while running the FM the second time:
    What table do I need here? And what kind of structure does this table need?
    Or is there any other solution for extracting query data to a XML-file? An ideal solution would be a XML-file with the same structue as the query.
    I have tried the FM RRW3_GET_QUERY_VIEW_DATA but the problem is that I can't get the query's structure.
    Thank you.

    Robert,
    I have integrated XML data from this webservice into Excel using XML Maps ... it works perfectly fine with the RESTFul Web service..
    Once you have the XML Map in the excel sheet - create your table by dragging and dropping necessary fields and then point the dataset to your Xcelsius container...
    I have not tried to change the XML in the BSP till now .. but one thing you can do otherwise is
    have a custom FM based on the function by the same name RRW3_QUERY_VIEW_DATA and then you have AXIS_DATA and CELL_DATA and you can create your own XML string by manipulating the content...
    Or you can directly call the web service QUERY_VIEW_DATA using the webservice option in Xcelsius...
    I have still not found out why the variable name tag is required but have given you other ways of integrating SAP BI with Xcelsius...

  • Conencting  to BI System

    HI friends,
             I`m working in webdynpro java. Actually my tasks is to diplay a barchart in webdynpro application. The data for the chart is to get from the BI system using query.
             So i want to know how to connect the BI system with webdynpro.Plz help me out.Thanks in  advance.
    Regards,
    Arun.

    Hi,
    For running a query you need to run RRW3_GET_QUERY_VIEW_DATA RFC on the BW system.
    Input parameters are:
    info provider, query, view_id and query parameters (ask your BW personnel for exact values).
    The output you need will be in the following two output tables: E_CELL_DATA & E_AXIS_DATA (you'll need to combine the data from those two tables)
    For Business Graphics in WDJ:
    /docs/DOC-8061#60 [original link is broken]
    Regards,
    Omri

  • Passing variables inside a url to call a query

    Hello,
    I have created a BSP-application with a restful webservice to transform a BW-query (BI7) into a XML-File for further development with XCelsius.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fwiki%2fsdn_wiki%2fwiki%2fdisplay%2fbi%2fexpose%2bbi%2bquery%2bas%2brestful%2bservice
    The service works fine when I use a query that doesn't need any variables.
    Unfortunately, there is a problem when I try to pass some mandatory variables.
    Here is a sample-url I use to call the restful webservice.
    http://<BW-System>:<Port>/sap/bc/bsp/sap/z_xmlexport1/data.xml?infocube=<my_infocube>&query=<my_query>&VAR_NAME_1=<variable name>&VAR_VALUE_EXT_1=<variable_value>
    But I get this error message on my browser:
    <ERRORMESSAGE>invalid_input</ERRORMESSAGE>
    When debugging the code, I can see that all parameters for the FM 'RRW3_GET_QUERY_VIEW_DATA' are there and filled properly. But still the exception "invalid_input" is raised.
    Any help on calling queries with mandatory variables?
    Thanks!

    Hello,
    0COMP_CODE is an infoobject, how can you directly use an infoobject for selection. I mean am not aware of link passed to Xcelsius but what i feel is you need to first create a variable for 0COMP_CODE by opening your query in query designer. and for VAR_NAME_1 use this variable name.
    You can check the definition of the variable by opening your query in query designer and under 0COMP_CODE expand the list, select your variable and on right side it shows the property. In one of the tab it will show whether its ready for input or not. (its a check box option)
    Regards,
    Shashank
    Edited by: Shashank Dighe on May 20, 2009 1:50 PM

Maybe you are looking for

  • Videos do not show up in Fireworks, or they load late.

    I'm building websites and have used some mp4 movies and some mp3 sound files on the sites. They either don't load at all or load very slowly. This happens on several sites using Firefox 4.0. The problem with viewing these pages began after I updated

  • Compositing Motion output files

    Hi all- I asked a question and many chimed in, but the answers didn't quite rectify the issue. I re-read my post, and I think the issue could have been better explained. Here goes: We are producing an animated trailer for our film. In Motion, we crea

  • Backing up my ipod

    Hi. Is there anyway I can carbon copy the contents of my ipod to an external hard drive to serve as backup? I don't want to keep all these files on my laptop. Thank you! Fujitsu S Series   Windows XP  

  • Windows 7 Confict

    I'm running full Acrobat 8.1.3, does everything I want, under WinXP Pro.    I've just installed Windows 7, fortunately on a new,clean drive.    That forced a reinstall of my Acrobat.      It refuses to activate stating I have exceeded my limit, go ba

  • Scaning with a HP Officejet 7610

    I am trying to scan a picture that is 12" X 14" and each time it scans at legal size.  I can't qutie figure out how to correct this error when the scanner can take a much large size.  Can anyone help me please?