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

Similar Messages

  • Abnormal termination of runform when PROCEDURE is used as Query Data Source Type

    I created a package with a procedure that returns a table of records. This
    procedure tested OK in SQLPLUS. I then created a form and in this form a block
    that used this procedure as the Query Data Source Name, and of course the Query
    Data Source Type has been set to PROCEDURE. This form runs beautifully when the
    number of records returned is small (a few hundreds). But when the number of
    records is large (I have one case where the total number of records returned
    was 11099) then it will crash. I also found that whenever this happens, there
    will be a file in my C:\TEMP with funny namessuch as s90, s81, etc. They are
    always the same size (5008 kBytes).
    Anyone any ideas?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandra movva([email protected]):
    Create a view and base your block on view.That could solve the problem unless you have other requirements specifically.<HR></BLOCKQUOTE>
    Chandra,
    Thank you for your suggestion. Unfortunatel, we have requirements that translate to logics too complicated to be handled by views, and that is why we use PROCEDURES. This actually works very well and very fast, except when we have lots of records returned, then it fails. I am just wondering whether this is a configuration problem ???
    Regards,
    A. Leung
    null

  • Problem with 0FIGL_VC1 when use constant selection in the query

    Please kindly help me. I have this problem for 2 weeks already.
    When I create a query from virtual cube 0FIGL_VC1 (balance sheets / p&l statements), if I use constant selection in any of key figure, my report could not display financial statment correctly. 
    My report layout
    Columns :  key figures  (including 0FIGL_VC1_CK001)
    Rows:  0GLACCEXT  (financial statement item) << as hierarchy
    Initially, the query is processed correctly.
    However, based on the requirement from my customer, I really have to use "constant selection" for some of my columns. Whenever I do so, the query display incorrectly. (Some nodes of financial statement item just disappear. (it seem like all contra item will disappear.)  
    Please help!

    If I dont use constant selection in the query, data are display correctly.
    But If I use constant selection in the query, some financial statement item dont display any value
    Example :
       Financial statement item(Display in hier)     Period1   Total Period1(Constant selection)
                 A                                                       10            60
                 B                                                       20            60
                 C                                                       30            60
                 D                                                       0              60
    - Financial statement item "D"  has some value.
    - Financial statement item "D"  is in the hierarchy,one gl account has been assigned to more than one group differentiated by debit/credit indicator.
    Please help!!

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • Is there a way to consolidate calculations used in SQL Query Data Sets?

    I am building SQL Query Data Sets against multiple DB Views which all have different date formats. I have the date parameter working well, but want to consolidate the changes that I have to do to it especially for the quarter. For example the SQL against a monthly view would use "where year_month > to_char(:ST_DATE, 'YYYY-MM')" which is not too hard, but to make that work for the quarterly view I need several concats and a decode to get a "> '2012-Q2'". I would like not to have to do this within every where clause. I had put this into a global element hoping to use that in a filter for the data set, but the filter does not have access to global elements only parameters.
    Is there any way to refer to a calculated global element from the data set to do this? I am using Layout Templates, so even if I wanted to I could not do the condition within the template.
         Thanks,
         Rick

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Use JDBC to query data for JSP Report

    Hi all,
    I met a trouble when use JDBC to query data,
    it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
    found error message:
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
    REP-0069: Internal error
    JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    anyone know pls help me
    Many thanks

    As a general rule, it's a good idea to separate the
    presentation (JSP and HTML) from the business rules
    (database access). I know you didn't do that on the
    AS/400, you had display files and business logic in
    the same program (at least, we certainly do in ours),
    but it's a good policy to follow in the web world.
    That means, don't put your database access code in
    the JSP. Other than that, it depends on the data.
    If you have simple data (e.g. customer's name and
    d address) then a Java bean would suffice. If you
    have complex data (e.g. customer's payment history)
    then a bean still might suffice. You would use an
    "include" if you had some data (static or dynamic)
    that you wanted to appear in several different pages
    in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options.

  • How can I use FK description in a BC4J data query component?

    Hi all,
    I am facing the following problem.
    Although I use renderers in the DataEdit component for displaying the descriptions of the FKs this is not useful for the BC4J data query components.
    How can I get the same functionality as in the dataEdit components?
    Thanks in advance,
    Aggelos

    Anfortunately,
    This is not the same when I have a DataQuery component.
    The question now becomes as following:
    How can I use FK description in a BC4J data query component?
    Thanks in advance
    Aggelos

  • Able to use % to query data in Some self service pages but in some pages we

    Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "

    Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "This is an intended functionality in 11i/R12 (for performance).
    "Please fill in selective criteria in at least one of the following fields for performance reasons" in View Requests Form After ATG RUP7 [ID 1095125.1]
    Re: When clicked Specific Requests
    Re: query mode 11i
    Blind Search
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blind+AND+Search&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Blind Query
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blind+AND+Query&objID=c3&dateRange=thisyear&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Using query data source type as procedure

    Could anyone pls. let me know how to use the query data source type property as procedure? Is there any example or document where I can find the above info? Any help or reference to doc will be helpful...
    Thanks in advance

    Have a look at Note 66887.1 on MetaLink.

  • How to use 'query data source Name '  property in a block

    I want to create a block using query and want to show the columns on a form.
    Could you please tell me how can I do this?
    Regards

    Hi!
    Create a new block manually.
    Set the Query Data Source Type Property to FROM clause query.
    In the Query Data Source Name Property write your query like you would
    write it in sql*plus or toad but without a order by clause.
    Set the DML Data Target Type Property to None.
    Create items for the columns in your query.
    May set the where clause and order by property of the block.
    Build the form and execute a query in your new block.
    Regards

  • Need Sample Code in C#  to Insert,Update,Query data using W 2.0 wsdl

    Hi,
    Can anyone please share sample code in C# to Insert,Update,Query data using W 2.0 wsdl.
    Thanks in advance

    I have found solution.
    Need add following line for non string data type.
    objOutreachUpdateList.Opportunity[0].IndexedNumber0Specified = true;

  • Query data from MS SQL db through Oracle ? By using JAVA ?

    Hi folks,
    I would like to sync our one table in oracle db with table in different system, stored in MS SQL database.
    What would be the easiest option for connection from Oracle to MS SQL db to be able to query data from MS SQL through some Oracle package?
    If possible, I would like to keep all "tricky steps" within Oracle database. I heard about option with Java, but so far we have no experience with java in Oracle.
    Our database: Oracle 11g Database Standard Edition One
    Many thanks,
    Tomas

    C:\Users\tomeo>dg4pwd HELIOS
    ORACLE Gateway Password Utility
    Constructing password file for Gateway SID HELIOS
    For user account SYSTEM
    OPW-00001: Unable to open password-file (RC=0)
    C:\Users\tomeo>

  • Not able insert ,query data from forms

    hi,
    I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
    should i do anything to insert record.please help

    the block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
    There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
    Craig...

  • Multiple select queries used in Excel BI report ,fetching data from Sharepoint DB(SP2010_Prod_ProjectServer) causing blockage on DB ,when more than one workbook(same copy of Excel BI Report) refreshed using Refresh All option.

    I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
    is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
    Please let me know mitigation for this blockage issue.
    Should I use begin transaction and commit transaction statements/ shared lock statements.
    please reply

    Hi,
    run same query at the same time?

  • Use of distinct in main query

    Hi All,
    I am creating a report based on two tables Invoice Header and Invoice Line. These two table have the following fields in relation :
    Invoice_Dept|| Invoice_Pfx||Invoice_No
    My question is whether I can use distinct in the main query for this. Coz, when I don't I get repeated records as one Invoice header can have multiple line items in the Invoice Line tables.
    Please suggest.
    Thanks

    Hi Omer Farooq,
    Firstly you can use Distinct in main query.
    Secondly I feel you need to use Groups in the data model rather then using distinct.
    If you will create groups then your first that is top group will contain fields related to Invoice Header
    and second group will contain Invoice Line fields.
    Hope this helps.
    If this does not help please post your query and what output you want on the report.
    Best Regards
    Arif Khadas

Maybe you are looking for

  • Streaming log file analyzer?

    Hi there, We host several flv files with Akamai and recently enabled the log file delivery service. So, we now have Akamai-generated log files in W3C format. I was assuming I could use WebTrends to analyze these, but after looking at them briefly, it

  • Lumia 1520 updating without wifi.

    Is it possible to update the phone without a wifi connection?

  • View call logs for a line on my account

    I have the Samsung galaxy note 3 can someone please explain to me how to pull up or view another line on the account.

  • It's like if() { } doesn't work..

    Ok, I've tried everyway to solve this but I can't seem to find what's wrong, first a piece of my code.. c.print ("\n\nWhat is your answer? "); uanswer = c.readLine (); if (answer == uanswer) c.println ("\nYou are correct! That gives you " + money); e

  • Can not create i.war using java -jar ords.war static

    C:\glassfish4\ords>java -jar ords.war static "c:\app\sybrandb\apex_4.2.6\apex\im ages" WAR Generation complete WAR location     : C:\glassfish4\ords\i.war Context path     : /i Static resources : c:\app\sybrandb\apex_4.2.6\apex\images Ensure the stat