No data in queries

Hello,
I want to send a message to the user when a report is used and there is no data in it. Is it possible to do that? And how?
Tks!

Hi,
You should check in the Before Report-trigger whether there is data in the report or not.
When there is no data, you can use the SRW-package in Oracle Reports like this:
SRW.message(0,'There is no data');
HTH
Lennart de Vos

Similar Messages

  • Slow response  on data dictionary queries with optimizer_mode=rule in  10g

    I have two dataabse: DB1 (9i) and DB2 (10g) on windows 2000
    They are two development databases with the same schemas and same tables. The application executes the same commands but with different results and execution plans.
    In DB2 the queries with the most slow response tima are the queries on the data dictionary (for example: all_synonyms).
    These query are very fast with the optimizer_mode=cost and very slow with the optimizer_mode=rule.
    And the the problem is this:
    in DB1 and DB2 the application executes after the connection this command:
    ALTER SESSION SET OPTIMIZER_MODE = 'RULE';
    These are the traces of the session in db1 and db2:
    The queries are created dynamically by the application.
    Is there a solution for this?
    thanks
    Message was edited by:
    user596611

    Here is a simple example of what can happen,
    @>alter session set optimizer_mode=all_rows;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name | Rows  | Cost (%CPU)|
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)|
    |   1 |  FAST DUAL       |      |     1 |     2   (0)|
    @>alter session set optimizer_mode=rule;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name |
    |   0 | SELECT STATEMENT |      |
    |   1 |  FAST DUAL       |      |
    Note
          - rule based optimizer used (consider using cbo)As you can see incomplete explain plans. Therefore it is not advised.
    Adith

  • Data Finder queries can only be done on properties?

    Is it not possible to search for specific channel values to find data sets that I want to load? I can't seem to formulate a query to do it.
    It seems like only properties can be searched.
    For ex, I have data logs of software program crashes, which store things like CreatorID of software, timestamps, CrashStrings, etc.   I want to search on those files and narrow down the possible files to load based on info in the channels.
    I don't have to make all the data a property to search for it do I?

    Hi jsmalley,
    The DataFinder only searches on named scalar properties stored at the File, Group, and Channel levels.  The DataFinder does not index the data values attached to each Channel, so these are not in the data base and therefore can not be part of the search expression.  The advantage of this approach is that if you don't want to search on your data values, then you're not cluttering up your data base with zillions of measurement values that just make all the queries run slowly.
    If you do want to search on measurement values, there are ways of coaxing the DataFinder into indexing the measurement values, through what is called a "Post-Processing DataPlugin", which is available in DIAdem 10.2 and later versions.  This approach is not obvious, and it tends to cause the data index to baloon very quickly to large disk footprints, but it can be the right approach for specific cases if it is employed correctly.
    Why don't you give me a call or an email, and we can talk about exactly which data values you want to search on in your data sets.  I would be happy to help you construct a "Post-Processing DataPlugin" based on the outcome of that discussion.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instuments
    [email protected]

  • Getting BI-Data via queries to the model of WebDynpro

    Hello Experts,
    we have developed a frontend application using WEB Dynpros with the Java Development Kit and now want to access BI Data.
    We want to transfer the BI-Data that has been extracted by queries to the model of the Web Dynpro since we need to further
    process the data using the controller of the webdynpro.
    Which possibilities do we have in general, what is the best way to approach this ?
    Is it wise to use the visual composer for this ?
    Thanks a lot for your help !

    You can use the BI Java SDK:
    https://media.sdn.sap.com/javadocs/NW04/SPS15/bi/index.html
    or  https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/downloads/evaluation%20software/sap%20business%20intelligence%20java%20software%20development%20kit%20download.abst

  • = and = operation on dates in queries

    Hi all,
    I have to use <= and >= in queries on date like this.
    for $doc in collection("TradesTS.dbxml")
    where $doc[trade/productName="CCF"] and
    $doc[trade/cobDate>=xs:date("2007-03-01")] and
    $doc[trade/cobDate<=xs:date("2007-06-12")]
    return $doc
    it is very slow. I have the following indexes:
    node-element-equality-string for productName and
    node-element-equality-date for cobDate
    Query plan is as show:
    <XQuery>
    <FLWOR>
    <ForBinding name="doc">
    <QueryPlanFunction result="collection" container="TradesTS.dbxml">
    <OQPlan>R(node-element-equality-date,cobDate,>=,'2007-03-01',<=,'2007-06
    -12')</OQPlan>
    </QueryPlanFunction>
    <Where>
    <Operator name="and">
    <Variable name="doc">
    <Predicates>
    <Navigation>
    <Step axis="child" name="trade" nodeType="element"/>
    <Step axis="child" name="productName" nodeType="element"/>
    <DbXmlCompare name="equal">
    <Sequence>
    <AnyAtomicTypeConstructor value="CCF" typeuri="http://www.w3
    .org/2001/XMLSchema" typename="string"/>
    </Sequence>
    </DbXmlCompare>
    </Navigation>
    </Predicates>
    </Variable>
    <Variable name="doc">
    <Predicates>
    <Navigation>
    <Step axis="child" name="trade" nodeType="element"/>
    <Step axis="child" name="cobDate" nodeType="element">
    <OQPlan>V(node-element-equality-date,cobDate,>=,'2007-03-01')<
    /OQPlan>
    </Step>
    <DbXmlCompare name="greater_than_equal">
    <Sequence>
    <AnyAtomicTypeConstructor value="2007-03-01" typeuri="http:/
    /www.w3.org/2001/XMLSchema" typename="date"/>
    </Sequence>
    </DbXmlCompare>
    </Navigation>
    </Predicates>
    </Variable>
    <Variable name="doc">
    <Predicates>
    <Navigation>
    <Step axis="child" name="trade" nodeType="element"/>
    <Step axis="child" name="cobDate" nodeType="element">
    <OQPlan>V(node-element-equality-date,cobDate,<=,'2007-06-12')<
    /OQPlan>
    </Step>
    <DbXmlCompare name="less_than_equal">
    <Sequence>
    <AnyAtomicTypeConstructor value="2007-06-12" typeuri="http:/
    /www.w3.org/2001/XMLSchema" typename="date"/>
    </Sequence>
    </DbXmlCompare>
    </Navigation>
    </Predicates>
    </Variable>
    </Operator>
    </Where>
    </ForBinding>
    <Variable name="doc"/>
    </FLWOR>
    </XQuery>
    How can I improve the performance of this query?
    Do I need to add any other indexes particularly for dates other than this - "node-element-equality-date", index ?

    Hi,
    I assume you are using DB XML 2.3.10? I think you've confused the query optimiser by using predicates inside the where expression. Can you try this query, to see if it performs any better:
    for $doc in collection("TradesTS.dbxml")
    where $doc/trade/productName="CCF" and
    $doc/trade/cobDate >= xs:date("2007-03-01") and
    $doc/trade/cobDate<=xs:date("2007-06-12")
    return $docJohn

  • Getting errors for  date related queries  in oracle 11G

    Hi,
    We are having oracle 10.2.0 version and all the date queries are running , but one database has been upgraded to oracle 11g.
    Those queries are giving errors :
    SELECT * FROM USERLOGMST WHERE TO_DATE(LOGINDATE,'YYYYMMDD')>=SYSDATE-60
    Ora-01841: (full) yearmust bee between -4713 and +9999, and not be 0.
    But the same query is giving output in 10.2.0
    Can any one suggest me in rectifying this problem.
    thankyou
    satya

    >
    We are having oracle 10.2.0 version and all the date queries are running , but one database has been upgraded to oracle 11g.
    Those queries are giving errors :
    SELECT * FROM USERLOGMST WHERE TO_DATE(LOGINDATE,'YYYYMMDD')>=SYSDATE-60
    Ora-01841: (full) yearmust bee between -4713 and +9999, and not be 0.
    But the same query is giving output in 10.2.0First step - find a few values that are causing the error:
    e.g.
    select max(logindate), min(logindate) from userlogmst;This may return perfectly reasonable dates, in which case you could use a pl/sql function to scan and report bad dates.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

  • SAP BW 3.5 Query Cache - no data for queries

    Dear experts,
    we do have a problem with the SAP BW Query Cache (BW 3.5). Sometimes the
    problem arise that after the queries have been pre-calculated using web templates there are no figures available when running a web-report, or when doing a drilldown or filter navigation. A solution to solve that issue is to delete the cache for that query, however this solution is not reasonable or passable. The problem occurs non-reproducible for different queries.
    Is this a "normal" error of the SAP BW we have to live with, or are there any solutions for it? Any hints are greatly appreciated.
    Thanks in advance & kind regards,
    daniel

    HI Daniel
    Try to wirk without cache for those queries.
    Anyway, you should check how the cache option is configured for those queries .
    You can see that, in RSRV tx
    Hope this help

  • Inventory management: Validy dates in queries???

    Hi experts,
    We have BW 7.0.
    I have loaded data on 04.03.2010 with BF- and UM-datasources and compressed it correctly.
    When I now look into the validy table for plant 0001 there is a validy range from 03.07.1997 to 08.02.2010.
    But when I start a query for 09.02.2010 system says "no data found".
    The document "How To Handle Inventory Management Scenarios in BW" says that I should show the result in parenthesis!
    What is up here?
    But I don't want to update this validy table!!!
    Pls help!
    KR,
    Raimund
    Text in  document:
    ...For example, if data with document data was loaded into the
    InfoCube with values from 01.01.2002 to 15.02.2002 (assigned to the respective time
    characteristic), the validity interval is also determined by these two date values. You can
    extend the intervals by maintaining the table (transaction RSDV). Stock balances are
    displayed for requests that relate to this period. If you start a query that requests the
    stock balance for 16.02.2002 or later, the result is displayed in parenthesis (a blank
    value is displayed in BW 2.0B and 2.1C), since it lies outside the validity area (providing
    that the validity table was not manually extended using transaction RSDV)....

    Hi,
    Hi,
    Use 2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM to 0IC_C03 Cube and design the report.
    Use :
    0VALSTCKVAL   " for Value
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month
    Use the above combinations in New Selections in columns and go it.
    For Qty Opening:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input)  and set the offeset
                                   value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
    For Qty Closing:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input) .
    In the same way build for Value and other Keyfigures on 0IC_C03.
    And
    Drag & drop
    0MATERAIL
    0PLANT  " Give some Input Variable.
    See the steps.
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
    See this thread related to Inventory.
    Re: Inventory Mangement steps - questions
    Thanks
    Reddy
    Thanks
    Reddy

  • How to access archived data through queries

    Hi,
    I would like to know if there is any way to access the archived data through SAP query. I don`t have any infostructure for this archived data.

    You mean mails once present and readable on the iPad, but no longer there (in the, by default, 50-long mail list)?

  • OBIEE Data Modelling queries

    Hi,
    I am trying to create a data model for the OBIEE reporting from a source database.
    I have a fact table that looks like the below
    Fact-Key Customer_id Facility_id market_value_amt Coll_key Guar_key Derivative_key
    ========================================================
    1 10 100 10000 30 NULL NULL
    2 20 100 10000 NULL 100 NULL
    3 30 100 10000 NULL NULL 200
    In the above fact table for a given fact key i can find the correspondign customer details by using the customer_id by joining it with the customer dimesnion table
    I can get the facility details by using the facility_id and joinign it with the facility dimension table.
    But the coll_key,guar_key derivative_key are all from different tables.
    Any one row in teh fact table will have only oen of the keys coll key or guar_key or derivative key populated.
    When a row has a coll key value populated i will use the key to join with the coll_attr tabl to get collateral related values.
    If the guar_key table is populated i will use that key and joion with the guar_attr table to get guaranter related details.
    The problem with this model is tommorrow if there is another type that is added say equity, then to get th attribute details i will need another column added to the
    fact table called equity_key and i will use this key and join with say the equity_attr table to get the values.
    Is there any other way to design the data model for these kind of data.

    By looking at the data and fact table i can say that you need to have one key in the fact instead of different keys for different types.
    Fact
    Fact-Key Customer_id Facility_id market_value_amt Type_key(example)
    1 10 100 10000 300
    2 20 100 10000 100
    3 30 100 10000 200
    All the tables can join using the same key and you wont need to add another column for equity.
    Hope this helps

  • Problem in picking up the data from queries in QA and PRD

    Dear Experts
    We have upgraded our Development server from 3.5 to 7.I have used Role Menu web template.As this template is default for all users,When i execute these reports in DEV,it gives this URL and gives the data from Dev.
    http://cibdm.ncsbe.eu.jnj.com:51200/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZS_ZCCAM4_33AA
    My problem is after i transport these roles(with attached list of reports in Menu) to QA or PRD and when user executes these reports,That Picks up the query from Dev.I cant edit roles in QA and PRD to change the host name and port of QA and PRD respectively.IS there any way that when i trasport these roles then it should automatically pick up the host name and port of QA and PRD and execute the reports from respective serevrs.
    I understand that this problem is coz of Java enviornment.If its ABAP enviornment then it will pick up the value defined in profile paramets in QA and PRD.This works coz there is http://<bsp...> extension in ABAP case.
    Please correct me if my understanding is wrong.
    Thanks for quick response.
    Rgds
    ACE

    Hi Simon,
    First of all thanks alot for your reply.
    Well as per your suggestion i will check OSS note.Yes, as you said i have hardcoded in Dev System i.e (http://ciBDM.ncsbe.eu.jnj.com:51200).But i see that if i use this place holders(<bsp_protcl>://<bsp_server>/sap/bw/BEx?cmd=ldoc&template_id=<...>) will work for ABAP enviornment.This place holder will read the profile paramater and change accordingly according to destination system.Do you say this place holder will work for Java enviornment also?.
    If not for Java do we have any other place holder?.
    Please let me know as am still workingon this issue.
    Rgds
    ACE

  • InfoProviders versus Queries Data Source for BO SAP Integration

    Hi All,
    I would like to know if there is any discussion or suggestion on commonly used choice of data source for BO with SAP Integration. I do know there is a best practices suggestion from Ingo on Webi and the choice is to use queries so that we could leverage the functionalities of calculated key figures, exit variables and etc. But as I see from another website it claims that this will slow down the access of data using queries.
    Thanks
    David

    Hi Ingo,
    Is there any slide presentations from anyone that has that kind of information? We are in the midst of implementation right now and are selecting the method. I need to come out with pros and cons of the choices that we have in order for us to select the best one even though from my gut feeling I would still prefer the Queries.
    Especially it will also make use of aggregates and also data flow size might be fewer due to variable that exists. Compared to using MultiProvider, it might transfer the whole data lot and if we were to create parameter there in Crystal or something else it will filter data only from there onwards.
    Please correct me if I am wrong.
    Thanks
    David Yee

  • Problem with Date Parameter

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies
    are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John
    As I understand what you need to do is to just remove parameter from the dataset query for populating the date values and then it should work fine
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Data Sources , Data Providers to a Single WebI Report

    Hi Guru's ,
    I am a newbie..!!  I am going through the documents related to a creation of WebI Report and got to know that we can combine two or more data sources (or) two data providers(Queries) in creation of a single WebI Report . However,I am still confused with this incoming stuff for creating a WebI Report .
    Could some one explain me what type of combinations can give as an input for creating a WebI report ?
    For example, one can link two or more queries and create a single report by using merge dimension concept !! If so, Will WebI accept data coming from 2 different universes, data coming from 2 or more different data sources like SQL data and SAP ecc ?
    Please explain this as I am new to this !!

    Hi
    Common in the sense relevant data in the two objects with same data type.
    See chapter 24 in the attached pdf more on merge dimension and how it will work in webi.
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp4_ia_desktop_en.pdf

  • DATA AGGREGATION ISSUE IN REPORT

    Hi,
    when we were running query by selcting the the version  . the data is aggregation dono where it went rong
    Explanation :
    we  alredy loaded data with version for the year 2010.. we started laoding from April 2010 to March 2011.. as 12 fiscal periods, with 53 versiions.  here version means week(1to53 weeks for year ) but we started laoding from April means 14th week of year 2010. to March 2011. til here no probelm with data every thing is matching in the report/
    now the turn comes for laoding data from  April 2011..Again 14 version came which is alredy in system  for April 2010
    now what is happening ..
    when we laod data for 14 week of 2011 (April). data is Aggregating  or some mixxing up  with data..
    so what we had done is we had added calyear in the filter so that user can see only the data for version with respective year.
    even though data is Aggregation with previous year(2010) for the same version alredy in system ..
    nothing is working outt..
    can u pls sugest us , any probelm in the back end , need to do any changes for modelling ..
    till now what we had done is deleating the data from cube and dso for April2010  for 14 version  and laoding data for April 20110  with version 14 . which is toatlay new version in system.
    So this Keep on continuying every time..when data not matching.
    now for the Month May with version 20 we have to laod  the same probelm should not repeat .
    pls help with your valuable sugestion detailly.
    And this forecast summary report , we have data for next 2 years. planning is doing for every 2 years from currentt date
    Any queries pls let me know
    Edited by: afzal baig on May 11, 2011 4:00 PM

    Hi
    is your data stored in a cube or DSO? If it is DSO - is version and period / calmonth a key field?
    what type of key figure are you using and what is the aggregation rule for this key figure - in the infoobject definition and in the query definition?
    is there anything unusual in the definition of your version characteristic? any compounding?
    Why did you not use 0calweek?
    regards
    Cornelia

Maybe you are looking for

  • My Ipod Was Stolen, and now it won't restore!

    Dear whoever gets this desperate post, My ipod was stolen about 1 month ago. By some strange strokes of luck, I got it back from the police today. I am trying to restore it, thereby subsequently re-loading my songs on it. But I am stuck. I plug it in

  • Re-edit from IDVD's to Final Cut

    I have several DVD's made with IDVD. I would like to retrieve these back to Final Cut Express 4 for some further editing, but I do not have  any original video or audio sources except what remains on the DVD's! Is it possible to retreive these back t

  • Problem with the Forwarding agent in MIRO

    Dear Guys , i have created 2 POs with 2 vendors V1 and V2 . Now in both the POs, the Forwarding agent is the same  FA. We will maintain  FA in both the POs with relevent Freight condition types and amounts too .The FA charges 10 rupees for V1 and 3 r

  • Repository for Oracle RDBMS installation ports (Oracle 12c)

    Is there a repository for Oracle 12c where to find the configured ports after installation and above all after any change(s) in configuration? I think about: listener, OEM, EPG,... ports. Thanks and Regards.

  • I need individual serial numbers from my standard packet.(which I have purchased)..

    I have to reinstall all my software, but cannot find the cd's. I have downloaded photoshop, indesign and illustrator, which are all included in the packed I own. now the installer is asking for serial number but I only have the one for the whole pack