How to build "Query by example" Report?

I want to create a report which allows user to select which columns to return.
It is similar to "Query by example" form. Have someone done that before and share me the PL/SQL how to do that?
Thanks in advance.

I got the answer, u need to set table.setFilterModel("") and refresh panel collection which contains this table
whenever u need to make "Query By Example" button of panel collection invisible.

Similar Messages

  • How to improve query performance when reporting on ods object?

    Hi,
    Can anybody give me the answer, how to improve my query performance when reporting on ODS object?
    Thanks in advance,
    Ravi Alakuntla.

    Hi Ravi,
    Check these links which may cater your requirement,
    Re: performance issues of ODS
    Which criteria to follow to pick InfoObj. as secondary index of ODS?
    PDF on BW performance tuning,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    Regards,
    Mani.

  • How to build query to give daily balance across bank accounts? (to then plot in a graph)

    How would one build a query to give daily balance across bank accounts? (to then plot in a graph)
    Assumptions:
    * There is a table TRANSACTIONS which includes columns TRANS_DATE, AMOUNT and BANK_ID. It does NOT include a column for balance. So current balance for a bank account is the sum of the AMOUNTs for that BANK_ID for example. Balance on date XX will be the sum
    of all AMOUNTS for that BANK_ID for all TRANS_DATE's prior and including the date XX.
    * There is not necessarily transactions on every day for each bank
    * Table BANKS which has BANK_ID and TITLE
    Would like a query that gives: Supply StartDate and EndDate for the query:
    Date Bank1Balance Bank2Balance Bank3Balance TotalBalance
    1/1/15 $100 $200 $100 $400
    1/2/15 $200 $200 $100 $500
    etc

    You'll find examples of queries for computing balances in various contexts in Balances.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    The queries in this little demo file return balances per transaction, however, whereas you appear to wish to return balances at close of business per day.  This can easily be done by means of a subquery which sums all transactions to date.  To return
    balances for all dates regardless of whether or not any transactions have been undertaken on the day, an auxiliary calendar table can be introduced into the database to plug the gaps,  The Calendar.zip file in my same OneDrive folder has means of generating
    such a table.
    With the introduction of an auxiliary calendar table into the database a query can then be written to return the balance per customer at close of business per day over the period 2009 - 2012 covered by the data in the Transactions table:
    SELECT CustomerID, Firstname, LastName, calDate,
       (SELECT SUM(TransactionAmount)
         FROM Transactions
         WHERE Transactions.CustomerID = Customers.CustomerID
         AND Transactions.TransactionDate <= Calendar.calDate) AS Balance
    FROM Calendar,Customers
    WHERE calDate BETWEEN #2009-01-01# AND #2012-12-31#
    ORDER BY CustomerID, CalDate;
    Rows for each customer/date are returned by means of the Cartesian product of the Calendar and Customers tables (the latter analogous to your Banks table), and the subquery returns the balance at close of each day by correlating the Transactions table with
    the Customers and Calendar tables, returning the sum of all transactions per customer up to and including the date in question.  In this example credit and debit transactions are expressed as positive and negative values in a single column of course,
    but where separate credit and debit columns are used its merely a case of summing (Credit-Debit), as done in some of the examples in my demo.
    To return the data in a horizontal format per date I'd suggest the use of a report which returns one row per date, and within it a multi-column subreport in across-then down column layout, linking the subreport to the parent report on the date columns.
    Ken Sheridan, Stafford, England

  • How to find Query Name from Report Name

    I am trying to find a the query name for program AQFKSYSTQV000045ZCHECKNUMBERLU I have looked in Standard Work Area under all of the user groups but no luck. It is currently only in our Production System. Please suggest any other places I can look.
    Thanks in advance for your help!

    I apologize for not seeming like I have a clue....I did search the Forum...and maybe I wasn't clear with my question....again I apologize.....I am somewhat familiar with query and I understand that the query name is probably ZCHECKNUMBERLU. My issue is that I cannot find the user group. I have broken It is not a user group under Global Area or Standard Area. For example....We have a query named ASETAQUISITION.  The program name is AQFKAM==========ASETAQUISITION...This query is located in the AM User Group....Easy Find. However, the program in question is AQFKSYSTQV000045ZCHECKNUMBERLU. I have broken this program name apart every way I can think of and I cannot find a user group in my global or standard Area. So I guess I should ask, by looking at that program name, how do you determine what the user group name is so I can find the actual query?

  • How to build query which list only active PC's

    Hi guys,
    I have to install SCCM client on many devices in my enviroment. Unfortunately, SCCM has found amny devices which still have accounts in AD but are not used for looong time. I would like to list only devices, which hasen't installed SCCM client yet but are
    active in my enviroment. 
    That is possible? If yes, that will be glad to hear how build this query.
    Thank you.

    If you don't want those not used devices, why don't you stop discovering them. In the
    Active Directory System Discovery there is a tab Options
    in which you can configure to not discover computers account that have not been used.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • QUERY BUILDER : Query to fetch report information

    Hello,
    Could someone please let us know how we could fetch ONLY the LATEST report information uniquely.
    report name , Creation time , Last run time , Author .
    We do not want to populate instances information.Only the UNIQUE report information from INPUT file repository server
    Regards,
    BO XI R2

    Hi
    Try this hope it may help you out
    The following query retrieves additional infos about the searched universes:
    Code:
    SELECT SI_NAME, SI_WEBI, SI_DESCRIPTION, SI_PARENT_FOLDER
    FROM CI_APPOBJECTS
    WHERE SI_NAME LIKE 'MCL_RG30%'
    AND SI_KIND = 'UNIVERSE'
    The list of Document's ID comes from the 2nd column of SI_WEBI object:
    Code:
    SELECT
      SI_NAME, SI_DESCRIPTION, SI_OWNER, SI_PARENT_FOLDER, SI_PARENT_FOLDER_CUID
    , SI_ID, SI_CUID, SI_CREATION_TIME, SI_UPDATE_TS
    FROM CI_INFOOBJECTS
    WHERE SI_ID IN (...)
    Regards,
    Rajesh

  • How to build an 8.5 report where a single source repeats with each piece of data

    I don't really know how to characterize this problem or if there is a short-hand for the type.  Here is my dilemma:
    I have a SQL table of tracking numbers which is custom to our version of Dynamics.  The table contains both orders and invoices.  Each invoice may have 1 or more tracking numbers, but each tracking number associated with an invoice or order is recorded as a different record under the invoice or order number.  E.g.:
    SOPNUMBE          SOPTYPE          Tracking Number
    INV0001234               3                    1ZA12341234
    INV0001234               3                    1ZA12341235
    INV0001234               3                    1ZA12341236
    ORD005111               2                     FedEx 123411
    ORD005111               2                     FedEx 123412
    INV0001287               3                    1ZA12349876
    ORD005134               2                    1ZA12345263
    INV0001291               3                    FedEx 165304
    INV0001291               3                    1ZA12345666
    and so on ...
    What I'm trying to do in Crystal, which is the only way I can access that table (nothing within Dynamics allows me to access that table) is create a page of labels, based on the date of the SOPNUMBE and the SOPTYPE, (IOW only invoices) that shows as the following:
    INV0001234                              INV0001287                         INV0001291
         1ZA12341234                         1ZA12349876                       FedEx 165304
         1ZA12341235                                                                      1ZA12345666
         1ZA12341236
    I would be using 2 x 1.5 labels, 3 or 4 labels across and 6 down, approximately
    Here is my problem:  I cannot use the Mail Label format as it requires each line having a different Field Physical Name.  However, if I use a standard Crystal format or an undefined format, I can get the right layout for one column only.  If I try to use 3 columns across, it simply repeats the data in the first column.  For the life of me, I cannot figure out how to create 3 or 4 columns across with separate data.
    The purpose is to be able to attach the appropriate label to the actual invoice for the information, which customers tend to call in for, anyway.  Now, we have to hand-write the Tracking Numbers on each invoice, which makes for an increase in errors.
    Any suggestions and/or solutions would be greatly appreciated.
    Thank you,
    Laura Douglas

    it could be that 8.5 doesn't have this option to do a group sort / top n.
    if you're looking for the data to spill into a new label then that won't work for you anyways.
    here are some options:
    a) the group itself needs to repeat in order to have another label available. the only way to do something like this in 8.5 is for your database administrator to create a stored procedure that groups the sopnumber data into sets of N values.
    e.g. each group would only have at the most 5 tracking numbers. if a sopnumber had 12, then 3 groups would be created by the stored procedure, e.g. INV0001234_a, INV0001234_b, & INV0001234_c   this would be required to create the correct number of labels and to ensure that all data from each sopnumber was eventually displayed.
    once a stored proc is created to break up the data into these groups, you need to create a new report off of the proc and use this new grouping field to base your group on.
    b) another option would be based on whether or not your database had a specific field that indicated a running total counter for the tracking numbers which was reset every sopnumber. e.g. if sopnumber INV0001234 had 4 tracking numbers, there would be a field that indicated 1,2,3,or 4 depending on the record.
    c) another option would be if the stored proc simply brought back the data that you have as well as a running total / counter that indicated / counted in a manner similar to the above. this may be a better option than a) or b)
    -jamie

  • How to build a pl/sql report

    Hi everyone,
    Plz tell me the procedure of buiding pl/sql report
    Thank you in advance..
    Edited by: user10763149 on Feb 10, 2009 3:16 AM

    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_plsql.htm#g1021942

  • Default search value for Query By Example Report

    Is there any way I can add the wildcard % as a default search value for text fields in the customization screen for a QBE report? The aim is to relieve the user from knowing that you have to input the wildcard % in the search field.
    Also, Is there a way to change the label of the standard 'Close' button, which is a bit misleading as it actually takes you back to the report customisation window?
    Cheers,
    Arnt

    Hi,
    You can give default values for bind variables in sql report and not for QBE reports. Also it is not possible to remove the close button.
    Thanks,
    Sharmila

  • Query By Example report -- option Excell?

    Hi,
    I am currently working on a report but a can't figure out what the option Excell means?
    If you know, please explain.
    Thanks
    Jerome

    Thanks, I tried to use this option and saved the output.
    But when I open the saved output with Excel 2000 it doesn't look like a Excel spreadsheet. The first cell contains all the values of the report. Have I done something wrong ?
    Bye
    Jerome

  • How to build a performance matrix report

    Hi,
    I have a table that tracks performance and potential of employee's.
    I want to represent the data in the table as a 9 box performance potential matrix report Each box should contain the names of the employees who fit the particular performance potential criteria.
    |---------------|--------------|-----------------| ^
    | | | | p
    | | | |Exceeds e
    | | | | r
    |---------------|--------------|-----------------| f
    | | James | | o
    | | Dan | |Meets r
    | | | | m
    |---------------|--------------|-----------------| a
    | | | | n
    | | | |Needs Improvement c
    | | | | e
    |---------------|--------------|-----------------|
    Limited Growth High
    <-------------Potential---------------------->
    Is there a good way of achieving this?

    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_plsql.htm#g1021942

  • How to build query to get tree architecture of self referencing table

    Dear all,
    I have the following table design :
    This is a self referencing table representing a set of SubCategories which can have parent sub categories or not. I did not show here the Category table.
    If the Subcategory has the ParentSubCategory ID = null, then this is a root subcategory otherwise it is a child of a parent sub category.
    What I am looking for is the easy way to display the structure level by ProductCategoryID ?
    Thanks for helps

    you can use a recursive logic based on CTE for that
    something like this would be enough
    ;WITH ProdSubCat_Hiererchy
    AS
    SELECT psc.ProductSubCategoryID,c.CategoryName,psc.ParentSubCategoryID, psc.Name,CAST(psc.Name AS varchar(max)) AS [Path],1 AS [level]
    FROM ProductSubCategory psc
    INNER JOIN Category c
    ON c.CategoryID = psc.ProductCategoryID
    WHERE psc.ParentSubCategoryID IS NULL
    UNION ALL
    SELECT psc.ProductSubCategoryID,c.CategoryName,psc.ParentSubCategoryID, psc.Name,CAST(psch.[Path] + '/' + psc.Name AS varchar(max)) AS [Path],psch.[level] + 1
    FROM ProductSubCategory psc
    INNER JOIN Category c
    ON c.CategoryID = psc.ProductCategoryID
    INNER JOIN ProdSubCat_Hiererchy psch
    ON psch.ProductSubCategoryID = psc.ParentSubCategoryID
    SELECT *
    FROM ProdSubCat_Hiererchy
    ORDER BY LEFT([Path],CHARINDEX('/',[Path]+'/')-1),[Level]
    OPTION (MAXRECURSION 0)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to incorporate ratio in Crystal Report?

    Hi,
    I am new in Crystal report and had no technical background.
    I would like to  know how to build ratio in crystal report? The draft layout as below:
                                                  (RM)        %
    Sales Revenue                        A           (A/A)*100
    Cost of sales                           B            (B/A)*100
    Where A and B are formula in crystal report.
    Regards
    Thomas

    Hi Thomas,
    Ratio is just a result by division.  If you take one field over another as a denominator, you got your ratio.
    Thanks,
    Gordon

  • Query in XL Reporter

    Hi,
             How to apply Query in XL Reporter?

    XLR has its own language.  It is not supporting SQL query.
    Thanks,
    Gordon

  • How to change database in crystal report design

    Hi experts
                         I have created a report in crystal addon using demo database, now I want to change the database to see the actual testing of report. I tried by Set Location option in Database expert I log off the current server then Log on It ask the database name I put new database name . But when I Run the report it show the previous database records.

    >
    Julie Jamieson wrote:
    > Try using a dot (.) as the server if you want to be able to run the report from inside SAP from a different database
    What do you mean by this?
    I have not yet installed the Crystal Addon for SAP (Using R1 Reports now) I would hope that Addon allows you to use a different database with Crystal, my current solution does and that is how I build most of my reports with views and sp's.
    I hope this is not to far off topic.
    Thanks
    Ken W.

Maybe you are looking for