Broadcasting queries with no data

Good morning everyone,
I'm trying to update my company's broadcast system, and I'd like to know if it's possible not to send broadcasts when queries return no data, using the new authorization concept (or not).
Thanks in advance.
BR,
Rogério

Yes..
When you schedule a broadcast job say run of settings with daily schedule at specific time, it runs a ABAP program (standard), which picks up all the settings and starts processing.
For ever setting, it needs to run respective queries, create the report and further deliver.
In this process after running the query, you can will be able to find the number of records returned.
Coz running a query is nothing but running bunch of SQL statements in backend. Definitely ABAP stack does it and you can as well see it in RSRT.
But debugging that level of code to get exact point and further customize it is great challenge even for skilled ABAPers.
I don't see any other way unless somebody responds.
Abhijeet

Similar Messages

  • Quering with sysdate function

    hi all ,
    there is a strange thing right here ,
    i set the where clause for my database block to , ( test_date = sysdate )
    then , query caused no records to be retrieved , and i am sure that the table has records with sysdate date .
    why does this happen ?
    even if i queried the table in the isqlplus ,
    select test_date from patients ; -- then queries with sysdate date are retrieved , but if i write
    select test_date from patients where test_date = sysdate . -- there is nothing to be retrieved .?
    help ?
    even i created a new table tt with one column(cc) , and inserted the value sysdate in it ,
    when i select sysdate from dual then it works 27-NOV-12 but
    when i select dd from cc where dd = sysdate then no rows selected
    Edited by: semsem on Nov 27, 2012 11:33 AM

    sysdate contains both date and current time elements, down to seconds. You will never find a match on sysdate, unless you hit the query at exactly the right time that matches some record in your table.
    Set your where clause to:
    ( trunc (test_date) = trunc (sysdate) )
    The "trunc" truncates (removes) the time element from your date values before doing the conditional test.
    when i select sysdate from dual then it works 27-NOV-12Do this in SQL Plus:
    alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';That will enable you to see the true date and time contained in your date datatypes. Here is an example:
    SQL> select sysdate from dual;
    SYSDATE
    27-NOV-12
    SQL> alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    11-27-2012 11:47:37Note in Forms, you can use two datatypes: DATE and DATETIME The both will query a date from the database, but the DATE datatype will remove the time element in the form, so a data change occurs. If you want to see the full date and time from the database column, use DATETIME, and set the Format Mask to something that will display everything.
    Edited by: Steve Cosner on Nov 27, 2012 11:42 AM

  • Current date in BO queries with Universe built on Infocube

    Hi dear experts,
    We are facing the following issue :
    - we built a universe on top of a multiprovider (with 2 infocubes) since we don't want to manage BW Queries.
    - we need to restrict data on WebI queries using current date or system date (to compare with a date from the universe)
    No options to do that seem to be available through MDX in the universe.
    Has anyone already solved such an issue and how do you proceed?
    Thanks for your help.
    André

    Hi Andre,
    I assume you are aware that you are losing items when connecting to the cubes directly, such as restricted keyfigures, calculated keyfigures, variables, structures, navigational attributes, and the option to use authorization variables.
    In the universe right now you don't have an option to reference something like a system data - that is done with an EXIT variable in the query.
    Ingo

  • 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

  • Queries with date functions using PreparedStatement for multiple DB

    I am developing application that uses DB independant queries. I am using preparedstatement to process the queries. I need to use date functions for query selection criteria.
    for eg.
    selecting the list of employees who had joined in the last 15 days
    selecting list of employees who had joined between two dates etc.
    where Date Joined field is a Timestamp value. To extract date no DB specific function can be used.
    If I use setMonth, setYear etc.. to set params in the pstmt the query becomes complex in the above case. Can any one throw some light on how to do the above in preparedstatement or any other better alternative.
    Tx a lot

    Hi,
    I did not mean that way. I presume that there is a timestamp value (may be a date too) column in the table. Then based upon your requirement (say before 15 days) pass the value as date (or time stamp) in the query as a parameter.
    String qry = "select * from myTable where join_date <= ?";
    stmt.setDate(1,myDate); // this is where you will have to manipulate the value to suit your DB timestamp or date value; you will have compatibility issues with util.Date and sql.Date so use Calendar class to satisfy.Feel free to mail me if you need further clarifications to [email protected]
    Cheers,
    Sekar

  • Merging queries with not exact matching data

    Hi fellow Webi and OLAP bods
    Does anyone know how I can merge data from 2 different queries where the data is not an exact match?
    I have one query where the key is
    001
    002
    003
    004
    etc
    and another where the key is
    AAA001
    AAA002
    AAA003
    BBB004
    etc
    basically they are the same thing but the second has this prefix in the data that I am not interested in.
    If it were on oracle or some other relationanl data source I could clearly create a new object in the universe that used substr(mykey,4,3) and they'd match fine but both queries are on SAP BW datasources and I wanted to know if I can do this anyway without having to wait for our BW team to create me a new object in BW.  I'm guessing my only options are with some neat MDX in the universe (I'm on xi 3.1) or with some clever stuff in the report......
    Maybe I'll just do it in excel with vlookup......(again!)
    Thanks
    Nick

    Since I don't have the same set of data that is why I cannot replicate on my system so don't take my answer as final answer.
    If both fields have the same data type then you can do and if you dont want to see the prefix then you can use formula and hide it.
    Let me know if it works.
    Bashir Awan

  • Possibility of combining exception broadcasting with master data bursting

    Hi Experts,
    We have a scenario where it is required to combine exception broadcasting with master data bursting.
    As per my understanding if you choose broadcast method as 'exception broadcasting', there is no option for choosing 'master data bursting'.
    Am I missing something or Is there a workaround or some method to achieve the same.
    Thanks
    Rajeev

    Hi,
        62 Scheduling: Master data inconsistent Check master data !
    Remove "In House Processing Time" from the Material Master MRP2
    view. Ensure that the Production Version & Routing are correct. Run
    MPS/MRP manually once corrected.
    Regards
    Sunil

  • 11i EBS XML Publisher Report with Multiple Data Source

    I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report.
    I am not allowed to create extract or use db links.
    My problem is how to create Data Source Connection using Java Concurrent Program.
    The approach I am trying is
    1. create Java concurrent program to establish connection to 10.7 instance.
    2. Will write the SQL queries in Data Tempalete with 2 Data Source 1 for 11i EBS and 2 for 10.7 EBS
    3. Template will show the data from both query in 1 report..
    Is there any other way to proceed using datasource API...
    thanks

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • Query Not reflected with Updated Data

    Dear Experts,
    I am facing a Problem in query data updation.    Data has been daily updating in infoprovider successfully ,But when user run query through Bex he is always shown old data.  Then I go to RSRT and generate the query and data got updated.
    Every Time for new data updation I need to Generate the query.
    What could be reason for this.  Is this related to cache data ?
    Any Advise .
    Thanks in Advance.

    Dear Michael,
    This problem is coming only for one Multiprovider.   Running this program would affect all other queries also . This will Delay the reporting.
    Any other reason why query is reflected with old data Though infoprovide is loaded with new data.

  • How to insert data in a column with uniqueidefier data type

    Guys,
    I need insert data in a column with uniqueidefier data type, when i am trying to that getting error.
    error message says: "Conversion failed when converting from a character string to uniqueidentifier."
    I have data in table a col1,col2,col3,col4 - col3,col4 has datatype as varchar and i am updating table b columns col1,col2 with table a col3 and col4.
    Please guide how to do it.

    Hi,
    Not any String can be convert to uniqueidentifier.
    1. you have to make sure u use a value which is fir to be uniqueidentifier
    2. Use convert or cast in the insert query in order to convert the string into uniqueidentifier
    insert X ... convert(uniqueidentifier, 'string which fit to be convert to uniqueidentifier')
    Please post DDL+DML for more specific help
    DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and reproduce the problem in our server. Without DDL no one
    can execute any query.
    How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
    DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
    sample data.
    If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
    to identify issues, clarify terminology and prevent incorrect assumptions.  Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
    [Personal Site] [Blog] [Facebook]

  • Reconcile Inventory BI Content Queries with ECC

    Hi Folks,
    I have a question regarding reconciling Inventory Management BI Content reports based on cube 0IC_C03 with ECC.
    We implemented IM in BI, and now try to reconcile the queries with ECC. Specifically, I have one query, 0IC_C03_Q0008 - Stock in Transit.
    We ran the report by Plant, in BI, it only showed one material with #, but people from ECC side use T-Code MB5T in ECC and saw many materials with Stock in Transit for that Plant; and for the material showed on BI report, the # doesn't match between BI and ECC.
    What is the right way to reconcile the report with ECC? is there any other report/Tcode in ECC we can use?
    Any insight ideas would be much appreciated!
    Thanks,
    Freda

    Hi Freda,
    For me, it is the typical nightmare to try to reconcile the cube to your ECC transactions since the cube summarizes and doesn't include your material documents.
    So, to make it a bit easier to match MB5T or MB51, add an ODS with a material document and Material item key and all of the fields and key figures necessary for reconciliation (I usually look at the datasource's delivered fields and add whatever sounds reasonable to look at).  To fill records in this ODS, only fill them from 2LIS_03_BF, because BX and UM do not contain material documents.
    While I was writting this, I think I realize what is happening in your situation.  If memory serves me correctly, MB5T is Cross-Company SIT, which is not part of the 2LIS_03* datasources.  They only account for Intra-Company (Plant-to-Plant within the same company code) SIT.  For that, there is a White Paper you can have an ABAP'er implement for you.
    Here are two good documents you should read and be familiar with:
    How to .... Report on Cross Company Stock in Transit: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92c0aa90-0201-0010-17b1-bf5b11c71257
    How to .... Handle Inventory Management Scenarios in BW: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Also, when comparing my cube data to ECC/R/3, I use transaction MMBE in the ECC to identify stock quantities and stock in transit (SIT).
    Brian

  • Problem with defaulted date but only in workbook

    Hi all,
    I have a weird date problem here. One of my queries has a "key date" which I default to the current date in the variable user exit. When I run the query, it works fine. However, when we run the workbook, things go wrong. With my date settings (DD.MM.YYYY), there is no issue, but the end users all have the American date setting (MM/DD/YYYY). Whenever one of them runs the workbook, we get an error before the variable screen is shown. The error message is as follows:
    Please enter value in permitted format for variable Key Due Date.
    Value "" for variable "" is invalid.
    Program error in class SAPMSSY1 method: UNCAUGHT_EXCEPTION
    System error in program CL_RSR_XLS_WORKBOOK and form SERIALIZE: 01 (see long text)
    As soon as I change the end user's date settings, the workbook runs fine.
    Any clue?
    RafB

    seems to be linked to user specific date settings... pretty weird as SAP should automatically convert according to the user settings

  • Running out of memory while using cursored stream with large data

    We are following the suggestions/recommendations for the cursored stream:
    CursoredStream cursor = null;
              try
                   Session session = getTransaction();
                   int batchSize = 50;
                   ReadAllQuery raq = getQuery();
                   raq.useCursoredStream(batchSize, batchSize);
                   int num = 0;
                   ArrayList<Request> limitRequests = null;
                   int totalLimitRequest = 0;
                   cursor = (CursoredStream) session.executeQuery(raq);
                   while( !cursor.atEnd() )
                        Request request = (Request) cursor.read() ;
                        if( num == 0 )
                             limitRequests = new ArrayList<Request>(batchSize);
                        limitRequests.add(request);
                        totalLimitRequest++;
                        num++;
                        if( num >= batchSize )
                             log.warn("Migrating batch of " + batchSize + " Requests.");
                             updateLimitRequestFillPriceForBatch(limitRequests);
                             num = 0;
                             cursor.releasePrevious();
                   if( num > 0 )
                        updateLimitRequestFillPriceForBatch(limitRequests);
                   cursor.close();
    We are committing every 50 records in the unit of work, if we set DontMaintianCache on the ReadAllQuery we are getting PrimaryKeyExceptions intermittently, and we do not see much difference in the IdentityMap size.
    Any suggestions/ideas for dealing with large data sets? Thanks

    Hi,
    If I use read-only classes with CursoredStream and execute the query within UOW, should I be saving any memory?
    I had to use UOW because when I use Session to execute the query I get
    6115: ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION
    Cause: An isolated query was executed on a server session: queries on isolated classes, or queries set to use exclusive connections, must not be executed on a ServerSession or in CMP outside of a transaction.
    I assume marking the descriptor as read-only will avoid registering in UOW, but I want to make sure that this is the case while using CursoredStream.
    We are running in OC4J(OAS10.1.3.4) with BeanManagedTransaction.
    Please suggest.
    Thanks
    -Raam
    Edited by: Raam on Apr 2, 2009 1:45 PM

  • Report Designer - Summary page based on 3 queries with dynamic hierarchy?

    Dear All,
    I am trying to build a workbook based on 3 queries with a summary page that pulls in the query data into one page.
    Each query is based on one key figure that is split by profit centre hierarchy.
    i.e.
    Turnover
    -Profit Centre Node A
    -Profit Centre Node B
    -Profit Centre Node C
    > Profit Centre C1
    > Profit Centre C2
    The user can dril-down into each query at whatever level of the PC Hierarchy they wish.
    My issue is trying to structure a dynamic summary page that pulls in all rows from the individual queries regardless of the number of profit centre hierarchies contained in each. i.e. The summary could have 5 PCs for queries 1,2 & 3 in one execution, but then 10 for all queries in another execution.
    Question:
    Can report designer be used to make a dynamic summary sheet that will capture all rows from the individual query? or would an excel macro summary be the only way of doing this?

    Hi Ingo,
    After much testing and looking into trace etc. we have got this thing to behave as desired. Basically, following two things,
    - no reference to CR Dynamic Hierarchy variable on report. There were places where this parameter was being refered and causing grief. We tested with brand new report.
    - making sure that on query Cost center restriction is placed in Characteristic Restriction area of Filter tab of query, as oppose to default value area filter tab.
    With above in place, the published report in infoview behave as desired, i.e. proper hierarchy structure in cost center prompt and group tree and only desired nodes showing on report.
    Thank you for all you pointers
    Regards
    IMS

  • Obiee with unstructured data source

    Hi,
    How to work with Unstructured data sources using OBIEE 11g?Anybody any idea?examples would really help.
    Is it also available in 10g also?
    Please Help.
    Regards,
    Krish

    Hi Krish,
    It's actually possible to use OBIEE with unstructured data.
    Even if you don't have real FK relations in your database and a proper model, OBIEE can create queries if you tell him where to find the joins and how they are defined.
    The Idea is to create you FK in the physical layer and try to have a 3FN schema (star schema with Dimension and Fact) as much as possbile in your Business layer.
    A very nice presentation is available on Mark Rittman webite:
    http://www.rittmanmead.com/files/3_Complex_Modeling_with_OBIEE_Elio_Idema.pdf
    Hope it will help you to start.
    Regards
    PS: Please don't forget to close the thread and assign points when your question is answerd

Maybe you are looking for

  • Automatic Outbound Processing

    Hi, I have a requirement for generating the outbound delivery for one item category whenever goods receipt happens for the inbound delivery of another item category of the same Sales Order. Could you please suggest me how we can achieve this. Is ther

  • RCVPOR is missing the Inbound IDoc

    Hi all, I am getting IDoc from the XI with the status code 56. I found that receipt port is missing in the control record. If I use sender partner type as LS, it is working fine. When I use the sender partner type as KU IDocs are not getting posted s

  • How to generate passwordDigest and nonce in VBA excel ?

    Hi All, I need to consumme a webservice in VBA Excel. I need to generate a passwordDigest in order to fill this XML: <SOAP-ENV:Header>X-WSSE: UsernameToken Username="MYUSERNAME", PasswordDigest="???PasswordDigest???", Nonce="???Nonce???", Created="20

  • Monitoring Stateful EJBs

    Hi, When monitoring Stateful EJBs the first column, "Cached Beans Current Count", assume negative values. Why this happens? Thanks, Denis Macedo

  • Adding Default Values to a Large Table in 11gR2

    All, For 11g, I understand that the way that we add columns with default values is different. I'm running 11.2.0.3 on AIX 5.3. For instance, if I do this: ALTER TABLE mark_heavily_used_table ADD random_field2 VARCHAR2(10) DEFAULT 'Seven' NOT NULL; In