RESTRICT THE QUERY IN THE REPORT

Hi.
I have created a Data-Block which doesn't based on a table. In this Block I
have a Text-Item which I need to restrict my Query.
For example I write in the Text-Item the "empno" 7788. If I click the OK-Button
then reports should start and it must show me a report of all Information of
this employee.
To do this I have created in Forms a Report. When Reports Builder start I can
write my Query. I wrote:
SELECT * FROM emp WHERE empno=:control.empno;
But it doesn't work so. What must I do.

You need to pass the value in your Form item to the report as a parameter - read up in the reports documentation about creating and using Reports parameters

Similar Messages

  • How to fetch the query by a report

    Post Author: gionnyDeep
    CA Forum: Data Connectivity and SQL
    How to fetch the query by  a report.I need to manipulate it and pass it again to the report.
    Any idea?

    Post Author: gionnyDeep
    CA Forum: Data Connectivity and SQL
    I just need to get the query of a report.
    You know that a report is buld up on a sql query.I just want to know how to get that query starting by  a java ReportClientDocument.
    And I found reportClientDoc.getDatabaseController().getDatabase() to fetch DataBase object .After that I do not know the exact sequence of methods for fetch the query
    Sorry for my english

  • While executing the query in the web template I am  facing below issue

    Hello SAP geniuses,
    Please help me on my issue  ,
    while executing the query in the web template i am  facing below issue.
    The variable for characteristic (region) is appearing but this characteristic (region) is not appearing in the free characteristic zone  but when we are executing the query with out webtemplate it is showing both variable and free characteristic
    can anybody help us to identify what is the issue with the web template.
    Thanks
    Alok

    Hi,
    Plz check ur report and execute at the designer and take its technical name and go to RSRT. log out and log in and try..
    if not check ur authorisation.
    Regards....KP

  • The query against the database caused an error in https: site

    Hi
    I have created a new Data source and External content type in sharePoint 2013
    I have also given all the permission to this Content type (including "Users(Windows)")
    I also having edit permission in the Sql-database.
    I have tied almost all the possibilities given in the net for this error.
    still the error("the query against the database caused an error") is there.
    Is this because of "https:/ " in the url?
    Can any one give a suggestion / solution for this?
    Thanks
    S H A J A N

    Hi,
    Can you please check ULS Log as well as event viewer, to see if there's any related error reported?
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Pagination resubmits the query to the database.

    I have a standard report fed by a dynamic query to retrive the data based on the parameter passed. All parameters reside on one page and the report it self is on a new page. When user clicks a go button the report is submitted with a dynamic query based on the user input parameters. The report some times takes a minute or two to capture the result set and display and depending on the number of rows fetched spans multiple Paginations. We recently noticed that every time the next x row arrow is clicked the page is resubmitted and the query to the database is resubmitted and this is a bad experience to the user to wait another minute for the page to return next x rows. Please help resolve this issue.

    Hi User XY,
    this is the standard APEX behaviour, every time you want a new subset (get next/previous page) the query is executed again.
    You can:
    - read all rows at once
    - tune your datamodel and/or query to get faster response
    - prepare the data in an APEX Collection (e.g. with APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY*) and let your report read from the collection
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Problem while changing the query of the field in Oracle apps 11.5.10

    Hello All,
    Requirement:
    User want to change the query of the LOV attached to Ordered item field on Line items tab on the Sales order form in Order managment
    Block name = 'LINE'
    Field name = 'ORDERED_ITEM_DSP'
    LOV attached to this field in FMB: ITEMS
    LOV attached to this field in front end: ENABLE_LIST_LAMP
    Problem: Following code is firing at all points (Debug messages are appearing at all points) but Query of the LOV attached to item is still same.
    How can in FMB LOV is "ITEMS" and in front end "ENABLE_LIST_LAMP"
    My guess is there is some problem with the LOV name which we are passing in the code below. Because LOV name attached to item are different in front end and FMB. There is no LOV in FMB which has “SYSTEM ITEMS Description” kind of structure.
    I have written following code in custom.pll (l_chr_rg_query is query taken from the record group attached to “ITEMS” named LOV with some modifications ex: rownum<6 so that it will show only 6 records in LOV if it is really firing our query for LOV)
    IF ( form_name = ‘OEXOEORD’
    AND block_name = ‘LINE’
    AND field_name = ‘ORDERED_ITEM_DSP’
    AND event_name = ‘WHEN-NEW-ITEM-INSTANCE’
    THEN
    MESSAGE (‘message1’);
    l_chr_rg_name := ‘XXLION_UNIFORM_CODE_RG’;
    l_chr_rg_query :=
    ‘SELECT item, item_id, item_description, inventory_item_id,item_identifier_type,null           item_identifier_type_meaning, ‘
    || ‘inventory_item, address, cust_address, item_definition_level ‘
    || ‘FROM oe_return_items_v ‘
    || ‘WHERE (sold_to_org_id = :parameter.lov_num_param1 OR sold_to_org_id IS NULL)’
    || ‘ and rownum < 6 ORDER BY item’;
    MESSAGE (‘message2’);
    l_rg_id := FIND_GROUP (l_chr_rg_name);
    MESSAGE (‘message3’);
    IF ID_NULL (l_rg_id)
    THEN
    MESSAGE (‘Creating record group here’);
    l_rg_id :=
    CREATE_GROUP_FROM_QUERY (l_chr_rg_name, l_chr_rg_query);
    END IF;
    errcode := POPULATE_GROUP (l_rg_id);
    MESSAGE (‘ERROCODE is : ‘ || errcode);
    L_lov_id := FIND_LOV (‘ITEMS’); --My guess is this LOV name is the source of problem.
    MESSAGE ('Error code is4');
    SET_LOV_PROPERTY (l_lov_id, group_name, l_rg_id);
    MESSAGE ('Error code is5');
    SET_ITEM_PROPERTY ('LINE.ORDERED_ITEM_DSP', lov_name, 'ITEMS');
    END IF;

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

  • Which Table Store the Query in the Query Manager?

    Hello, I have looking for the table which store all the query inside the Query Manager.
    From this i can retrieve the query without open the program.
    Please help. Thanks.

    Hi William,
    Try this Queries in MSSQL Server Management Studio and dont use Query Generater.
    1. Run this Query, Result: Query Manager Details
    SELECT * from OQCN
    2. Run this Query, Result: Query Details on Query Manager
    SELECT * from OUQR
    Regards,
    Madhan.

  • Publising the query in the role.

    Hello experts,
    Requirement:
    I was asked to assign an existing queryin the system to a particular role which is also already existing.
    Action Performed:
    I have published the query in the BEX query designer in the specified role with Publish in role option.
    Issue:
    I am able to see the query in the role in PFCG(ZS_XX_BEX_MENU ) .
    But the same i am unable to see  in Query designer when I try to open the query from the role in which I publised.
    I come out BEX and logged in again but still i am unable to see the query in the role.
    Could ayone help me to reslove this issue.
    Regards,

    Hi
    Yo can  go to the open queries in the query designer->just click (highlight) the query and then click on the third option from the left it is assign to the role.
    It wil take you to the all the role options.
    just click on your particular role and say creat.
    it will assign the query to that role.
    you can chjeck it in the roles tab.
    Also can try this
    try S_RS_FOLD to give the possibility to select query from Infoarea
    Hope this helps
    Many thanks
    Kiran

  • IAm getting the error when iam opening the query in the Designer

    hi
    I had opened the query in the DEvelopement and i had got the error message that Bex transport request is not available or not suitable
    I Got this error for the first time
    can any body help regarding this
    Please search the forum before posting a thread
    Edited by: Pravender on Feb 4, 2012 11:08 AM

    you need to cretae a new transport request to make changes to your query
    pls see Bex Transport request is not available

  • Need to save the query under the correct role

    Hi Experts,
    I need to save the query under the specific role. So is there anyway to find the query location by role??
    Thanks
    Regards,
    Arpan

    Hi,
    RSZCOMPDIR --> RSRREPDIR -->AGR_HIER
    From RSZCOMPDIR get all the entries of queries.
    compid is query name, take compuID and pass to RSRREPDIR.
    get genuniid and pass to AGR_HIER's sap_guid.
    AGR_NAME in AGR_HIER is role name.
    please check this.
    -Sriram
    Message was edited by: Sriramvijay R
    Message was edited by: Sriramvijay R

  • Manupilation of the Query in Crystal Report

    Dear Experts,
       I have prepared a report to get opening balance which I haven able to achieve. Please find it below:
    SELECT    SUM(dbo.JDT1.Debit)- SUM(dbo.JDT1.Credit) as Opening
    FROM         dbo.JDT1 INNER JOIN
                          dbo.OJDT ON dbo.JDT1.TransId = dbo.OJDT.TransId
    where  dbo.OJDT.DueDate between '20090101' AND ''.
    Now I want to get the cumulative total for the balance, I know about the Running balance which adds
    current figure to the previous. But the problem is how to add the opening balance and then
    add current figure as done by Running. I have put down a link of what  I am looking for in my report.
    http://www.megaupload.com/?d=EARD5WIU
    http://www.megaupload.com/?d=EARD5WIU
    Your help be appreciated

    Hi,
    You need a BEx query ontop of the MC, which is set 'allow external access'
    You need software "integration kit for SAP solutions"
    You need Crystal Designer client
    You need to use the "BW MDX Driver"
    You need to add the query fields using the "Database Expert" wizard
    Then design the report.
    When you come to asking about creating the IRR formula in Crystal, please ask that question the Crystal subforum in SDN.
    Regards,
    H

  • How to display language key (0LANGU) in the query for BW report

    Hi,
    Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.

    hi,
    check if the infoobject is kept as lang dependent or not  for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
    regards
    laksh

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Universe Designer vs BEx query - Can't see the query in the OLAP Cubes list

    Hello Experts,
    We are facing a rather strange issue:
    While creating a connection to an existing BEx query - which wasn't being used by BO before - we aren't able to see that one query in a long list of available multiproviders/queries on the universe side.
    We already checked the option on BEx analyser to authorize external access to the query, with ODBO.
    The connection type we're using is the same for all the other universes built on top of BEx queries: SAP BW Client. Again, we already have a bunch of universes built using this method, but we can't seem to find the BEx query in the OLAP Cubes list.
    Does anyone have a lead on what may be causing this issue?
    Our environment is:
    - SAP BOE XI R3.1 SP2
    - SAP BW 3.5
    - BEx Analyser
    - Integration Kit
    Best Regards,
    Francisco

    Hi,
    i don't know, you'd have to search the BW-BEX component for notes.
    I noticed it with a revision of SAP GUI Front End tools 720 SP7 i think
    I applied the latest corrections (SP08 or 09) and that tickbox worked ok again.
    You might notice - as i did - that when you go back to check the bex query - that property becomes 'magically' unselected/
    Regards.
    H

  • Set_block_property does not called the query from the where clause

    Hi all,
    I have two blocks in the Oracle form 6i. Master link with the detail. Because of the data is quite huge if I have the auto query when the form is loaded hence I have two enter parameter created of From_date and To_date together with button to execute the query when that two parameter is being filled.
    I have the following quotes in the button of when-button-pressed :-
    BEGIN
    set_block_property('act_vw_sale_comm', default_where, 'invh_dt >='''|| to_date(:act_vw_sale_comm.fdate,'dd/mm/yyyy') ||''' and invh_dt <= ''' || to_date(:act_vw_sale_comm.tdate,'dd/mm/yyyy')||'');
    go_block('act_vw_sale_comm');
    execute_query;
    set_block_property('act_vw_sale_comm', default_where, '');
    END;
    However, nothing being displayed when I click on the button. Anything wrong on the above statement ? Please help me. thanks.
    Rgds
    Lim

    BEGIN
    go_block('act_vw_sale_comm');
    set_block_property('act_vw_sale_comm', default_where, 'invh_dt >= '''|| :FDATE ||''''' AND invh_dt <= '''|| :TDATE ||'''');
    execute_query;
    --set_block_property('act_vw_sale_comm', default_where, '');
    END;
    Now, I have the above statement, but still the same when try to execute the query, this time, the screen execute but does not show anything and close my form straight away. Why!
    Anyone can help me?
    Thanks
    Lim

Maybe you are looking for

  • Save in Pdf reduce file size

    Hey Guys, I'd need some help as i'm totally confused. My problem: I create a new document in Photoshop with 1200x600px 300dpi dimensions. After editing I want to save in PDF format with the same dimensions. But. The final PDF file is totally small ar

  • Bursting with BO EDGE ?

    How can we do bursting with BO EDGE?  I have a Crystal Report(2008) which is extract data from SAP through the SAP integration kit.  I also have BO EDGE 3.0 and I would like to publish this report to many sales rep with their own data.  Then, I know

  • Loading Photos-won't complete

    iPhoto won't load photos while attempting to open program. I loaded about 150 pics today from Koday EasyShare program. I also had a "iPhoto crash" today while attempting to share these photos. Since then, I've loaded iLife 05 and upgraded iPhoto, but

  • Indb always wanting to save as

    HI I am working across a server in a work group and we are all working on different documents in a book.  we work along opening and closing different documents in the indb but when any one of us wants to close the indb.  We always get a do you want t

  • Drill down on cross tab report

    I would like to know whether it is possible to drill down through groups in a cross tab report.