Query wizard

In query wizard in "Select fields and sort order window" there are two colomns Group(Y/N) and Comp. for comp there are further options. when it is used? and how to use it?
I am going through the implementation exercises . In Unit: Custom Configuration and Development
Topic: Queries
in question 1-3 it is suggested to use these fields group and comp.
can please anyone tell me why it is used and when it should be used?
Thanks in advance.
Punam Gandi

HI
1.Group By is nothing but Grouping the fields results.
Ex:
Place               Rev.
store_name     Sales     
Los Angeles     $1500     
San Diego     $250     
Los Angeles     $300     
If use GroupBy for place,you will get the result as:
Los Angeles      $1800
San Diego          $250
2.Comp. to perform special common operations.
Hope you got it.
Edited by: kambadasan on Sep 22, 2011 4:20 PM

Similar Messages

  • Query wizard and PLD

    Hi experts,
    I use query wizard making a query, and I can found it in query manager. then I created a report for that query. everything is ok but i don't know how to show the report and print it out. please help, thanks.

    Hi,
    This is very simple goto tools queries-> query Print Layout
    it will display all the query print layout . select the query for which you want to have the preview.
    and select teh print preview button it will display you report..
    Regards
    Chidambaram

  • Create report without query wizard

    Hi,
    I want to create report without using query wizard in SAP B1. Can it possible by code?

    Maybe your question is related to this thread :
    Re: Execute report  query using vb.net code

  • Problem in BW query wizard

    Hi,
    When i m opening bi query wizard..its showing error
    error:32003 service not found cannot find com.sap.portal.guimachine.BIlit.commandhand....
    I am using vc 6.0 and portal (EP 6.0 SP15).  I va imported 4 sda files from sp13 addons in portal.
    for EP kit its working fine but for BI kit its showing problem...
    regards

    Hi Amit,
    We add few addons on portal for visual composer.Till EP6.0 sp13 the addons had to be deployed separately onto portal,but since SP14 onwards these come with the portal patch itself and we don't have to deploy the .sda files explicitly for visual composer.
    The constructor of BWQueryFunction class which is being generated by the guimachine of Visual composer corresponds to that present in com.sap.portal.guimachine.BIKITapi.jar file present in SP13 addons and hence you get a compile time error when trying to deploy onto sp15 or sp16 portal.
    One solution to this problem is to deploy the visual composer addons corresponding to SP13.The jar file com.sap.portal.guimachine.BIKITapi.jar is present in com.sap.visualcomposer.BIKiT.sda file.
    Hope this solves your problem.
    Otherwise, try this one also :
    In BW Server -
    Go to transaction WSCONFIG, to configure Query_view_data Service
    Web service definition:- ‘query_view_data’ and then click on create Icon.
    Provide the URL (in our case it is: /sap/bw/xml/
    soap/queryview).This will also Create External aliases.
    Thanks in advance,
    Deep

  • Query generator and query wizard

    with the help of query generator and query wizard, we create queries.
    one of the application of generating query is that we can use it in formated search.
    can plz anyone tell me what are the other possible application of queries created by guery generator and query wizard.
    I am peruing training of SAP B1, so if any mistake is done from my side, I am sorry for that.
    Thanks in advance.
    Punam

    Hi Punam.......
    Query Generator is purely used for reporting as it uses SQL which is a strong tool of reporting. Moreover you can use the query generator for Formatted Searches as well as its SQL queries may useful in creating SP Transactions Notifications, Stored Procedures, Functions, Triggers etc.....
    For More details you can check this link.....
    http://www.youtube.com/watch?v=-LriSLVv5VA
    http://www.sbonotes.com/content/creating-custom-queries-sap-business-one
    Regards,
    Rahul

  • Query wizard in OEM

    I have Oracle Enterprise Manager and connected to my Oracle 9i database.
    It looks like it has alot of nice tools. Please advise if there is a query wizard where I can select tables and create a query?
    I dont see any query wizard tools which would be very helpful for creating table join queries.

    Hi!
    Right-clicking over any table in the table list you will see a "Table Data Editor..." option in the menu.
    There you will have just a few options considering that table, i.e., projection and selection.
    There is an option to generate report and data extraction.
    I am afraid that you don't have any join option.
    HTH
    RK

  • Query Wizard error

    In the dimension tab of the query wizard, I try to select all of members of a particular dimension and I get the following error. Any help would be much appreciated.
    Regards,
    Dan
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::createCursorManager
    OES: ORA-00920: invalid relational operator
    , Generic at TxsRdbOCIConnection::execStmt
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager oracle.express.olapi.data.full.DefinitionManager.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
         oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[])
         oracle.olapi.data.source.SpecifiedCursorManager oracle.olapi.data.source.DataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryUtilities.setUpCursors(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], oracle.olapi.data.source.Source[], oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[], boolean, boolean, boolean, boolean)
         

    9.0.1 with DB patch 9.0.1.3, olap patch 9.0.1.2.1 on Win2K.
    Jdev 9.0.2.822 on Win2K.
    I agree with the other guy, its when the dimension has many members in the available list.
    Regards,
    Dan

  • Dynamic Aggregation Using BI Query Wizard

    Hi,
    Is it poosible to perform dynamic aggregation using Oralce Query Wizard. In other words , is it possible to change/filter the dimension members of a particular dimension and recalculate the aggregation with out changing the fact/dimension table contents.
    Your help is appreciated.
    Panneer

    Hi,
    Not sure exactly what you are tying to achieve. However, if your data is stored in Analytic Workspace objects then you can recalculate data via OLAP DML programs or models dynamically from within a BI Beans application. The AW environment is always attached in read-only mode as a default. Hence, you can change the data during a session and then dump the changes when the user exits the application.
    From within a relational environment it is very difficult to create the same approach since it is possible a commit could be issued. Unless you mark the required tablespaces as read-only. In which case you could execute PL/SQL procedures to recalculate data. However, not sure how you would resolve the refresh of any related MVs
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • How to execute created function in query wizard or query generator

    Hi to all
    i create a function in sql and i want to use this in a query wizard or query generator, I tried to include this function in my query to create a report . but i im receiving a error saying 'invalid build function',
    running the query with the created function in sql server produce the expected result..
    I would like to know if is possible to used this created function in the query wizard or function?
    thanks
    Loren

    Hi Owen
    Thank you for your reply
    The function falls on scalar valued function , Here is my code
      start of code -
    USE [gk]
    GO
    /****** Object:  UserDefinedFunction [dbo].[SalesForThisDate]    Script Date: 01/19/2009 12:42:24 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER  FUNCTION [dbo].[SalesForThisDate]
    (     @vItemCode nvarchar(20),
        @FrmDate DateTime,
         @ToDate  DateTime
    Returns Real
    AS
    BEGIN
      RETURN (SELECT ISNULL(SUM(T1.[Quantity]),0)
         FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
         WHERE T0.[DocDate] Between @FrmDate and @ToDate
              and t1.[ItemCode]=@vItemCode
         GROUP BY  T1.[ItemCode])
    END
      end of code -
    then i tried to run this function on the query manager with this statement
    SELECT T1.[ItemCode],
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-10-1','2008-10-8'),0) Value1,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-11-1','2008-11-8'),0) Value2,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-12-1','2008-12-8'),0) Value3,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2009-1-1','2009-1-8'),0) Value4
    FROM OITM T1
    ORDER BY T1.[ItemCode]
    executing this statements pop a error
    "SalesForThisDate is not recognized build-in function name"
    Thanks
    Loren

  • Report Query wizard error (in Shared Components)

    I have been following the <a target="_window" href="http://www.oracle.com/technology/products/database/application_express/howtos/howto_master_detail_pdf.html">How-To Create a Master-Detail PDF Report</a><br>
    <br>
    I'm using Apex 3.01 and Firefox 2.0.0.7<br>
    <br>
    When I have to create a Report Query in the shared components, I get through the wizard to the Create Report Query Layout page and for some reason, the Previous and Next buttons don't work. The only button that works is the Cancel button.<br>
    It seems to happen after I've downloaded the sample XML file from that page.<br>
    I've also noticed this happens when you go in to edit an existing Report Query and take a download of the XML...<br>
    On closer inspection it seems to be the buttons that have onclick="javascript:doSubmit..." behind them that don't work. Buttons with javascript:confirmDelete seem to still be active and work ok.<br>
    <br>
    But, the problem doesn't happen in IE7.<br>
    <br>
    I found this happened on both my local installation and on my apex.oracle.com instance.<br>
    <br>
    Has anyone else had this behavior or is this some dodgy local setting I have wrong?<br>
    <br>
    Gus..<br>

    Hi,
    This is posted in the wrong forum. This forum is for Oracle Berkeley DB. Please find the correct forum and post your question there.
    Regards,
    Alex Gorrod,
    Oracle Berkeley DB

  • No dimensions available for selection in Query Wizard

    Good afternoon. I have created some presentations in JDeveloper and am quite happy with the results thus far. However, I recently began working with Reports and have stumbled across an error for which I may be responsible.
    I had no problems whatsoever in JDeveloper. When trying to create a query in Reports, there are no dimensions available for selection, only measures. I researched this somewhat and ran across the statement in the OLAP API docs that states the creation of 'measure folders' in the OLAP DB is necessary in order for that information to become avaiable elsewhere.
    I believe this hypothesis is correct because (please ocrrect me if I am wrong) JDeveloper uses JDBC to connect with OLAP by default. However, I believe that Reports uses the OLAP API.
    The reason I am not 100% certain that this is the culprit, is the fact that I am still able to see the measures; just that when I select the measures, there are no dimensions associated with them (which thereby prohibits me from proceeding in setting up the query).
    Has anyone else seen this behavior, and is it caused by not having measure folders setup? Thanks.
    -Jeff Trudeau

    Np. I am running the 9.0.3.4 maintenance release of JDeveloper and the corresponding release of BIBeans. As for Reports, I am running the version that was included with the latest 9i Developer Suite (release 2). I am not aware that a more recent version of Reports has been released.
    I am running a 9i database with the latest patches. Again, JDeveloper with BIBeans is working fine, but the problem lies in setting up a query in Reports. Thanks for the help.
    -Jeff

  • Need help with image charts from query wizard

    When I try to make an image chart all I get is a broken pic. I am running Windows NT so its not a unix problem. I did however find this error in my jserv.log when I tried to display the chart.Can anyone tell me what it means?
    [09/05/2001 08:45:12:187 PDT] java.io.FileNotFoundException: http://national/pls/portal30/PORTAL30.CHART_0509084315.show?p_format=XML
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:528)
    at oracle.webdb.chart.ChartServlet.doGet(ChartServlet.java:36)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    null

    Thanks for the link! I'm able to do a File Select via JFileChooser and display the image onto a JLabel using the ImageIcon method (many thanks for that!). Currently, this is what I have (ImageFilter() extends FileFilter):
         ImageIcon photoIcon;
         JLabel photoLabel = new JLabel();
         JFileChooser fc = new JFileChooser();
         <snip>
         private JPanel DPCtr()
              <snip>
              photoIcon = new ImageIcon("default.jpg");
              photoLabel.setIcon(photoIcon);
              photoLabel.setPreferredSize(new Dimension(150, 150));
              <snip>
              return p;
         <snip>
         public void actionPerformed(ActionEvent a)
              if (a.getSource() == browseBut) {
                   fc.setFileFilter(new ImageFilter());
                   int returnVal = fc.showOpenDialog(DiseasePane.this);
                   if (returnVal == JFileChooser.APPROVE_OPTION) {
                        File imgFile = fc.getSelectedFile();
                        try {
                             photoIcon = new ImageIcon(imgFile.toURL());
                        } catch (MalformedURLException e) {
                             System.err.println("Invalid URL");
                        photoLabel.setIcon(photoIcon);
         }

  • Query to Identify Data in One Table Not In Another Table

    I need to create a query that will return the records in one table that are not in another table.  Here is the structure of my data tables:
    tbl_Practice – contains information about management practices.  The primary key field is “ID” which is an autonumber field.
    tbl_Controls – contains information about internal controls associated with the management practices.  The primary key is “ID” which is an autonumber.
    tbl_PracticeJoin – this is a table that contains the mapping of controls to practices.  Some practices can have multiple controls assigned to them and some controls can be mapped to multiple practices. 
    This table’s primary key is “ID” which is an autonumber field.  The only other data included in this table are the primary keys of the practice and control.  Those field names are “PracticeIDFK” and “ControlIDFK”.
    In this application, the user will normally enter practices and controls at the same time; however, there may be instances where a control is entered and it is not known at that time what practice(s) it should
    be mapped to.  I want to be able to run a query that will show me any controls that are in the tbl_Controls which are not in tbl_PracticeJoin.  I would like to be able to do the same with the practice table. 
    Thanks.

    The easiest way to do this is through the 'Find Unmatched Query Wizard'.
    On the Create tab of the ribbon, click Query Wizard.
    Select 'Find Unmatched Query Wizard'.
    Click OK.
    Select tbl_Controls, then click Next >.
    Select tbl_PracticeJoin, then click Next >.
    Select ID in tbl_Controls and ControlIDFK in tbl_PracticeJoin (if the wizard hasn't already done so automatically), then click Next >.
    Add the fields from tbl_Controls that you want to see to the list on the right; click >> if you want to add them all at once. Then click Next >.
    Access proposes a name for the query; you can edit the name if you wish.
    Click Finish.
    You can do the same for tbl_Practice and tbl_PracticeJoin, with PracticeIDFK instead of ControlIDFK.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • New customized report using PLD or QUERY PRINT LAYOUT to show customers onl

    I am working with a Software Developing firm as an SAP Consultant.
    Please tell me how to create a new     customized     report displaying various details as required by the client in the report using PLD or Query Print Layout.
    Please help me asap.

    Hi,
    You can create queries using the Query Generator or the Query Wizard tools.
    After you have created your own queries, you can link them to a required print layout.
    for user reports.Look at:
    Tools --> Queries --> Query Print Layout
    Set there your query reports.
    Printing User-Defined Queries
    After you had linked a user-defined query to a user report template, you can now print it
    according to its linked print layout.
    There are two ways for printing your user-defined queries.
    1. Using the Query Print Layout window:
    • Select from the upper menu Tools &#1048774; Queries &#1048774; Query Print Layout.
    • Click the Reports tab page.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    2. Using the Queries Manager window:
    • Click the Queries Manager icon on the upper tool bar.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File &#1048774; Print.
    • The user-defined query is printed according to its linked print layout.
    Note! You can also print preview user-defined queries. Do so by selecting the Print
    Preview option as described in the methods above for printing your query.
    Btw, you could search the manual training files relate to query PLD in http://www.service.sap.com/smb
    Rgds,

  • Adding update and delete buttons to a  Report from SQL Query

    There is an option when creating a QBE to add update and delete
    links which i find quite useful, but this option doesn't seem to
    be possible on a Report from SQL Query. Do i need to do
    something special to add them? is the option located in a
    different place?

    Hi,
    You can only add Update ,Delete in QBE Reports,
    there is no option in Portal which can be used to
    have these buttons in the Reports from Query Wizard or
    Report from SQL Query.
    Thanks
    Vineet

Maybe you are looking for