Limit on number of records in alert?

Hi all
I have created a query which returns about 4.000 records. For reporting to an external party, I want these mailed once a week using regular e-mail. I've set up an alert, which basically works fine. However, the number of records in the e-mail seems to be limited to about 100 records (instead of 4.000).
When I send an internal alert I have the same problem.
How can I boost the number of records returned in the e-mail?
Thank you
Bram
Edited by: Marc Riar on Jan 29, 2008 9:57 AM

Hi Bram,
I already had the same problem. It's Sap B1 behaviour.
Se Sap Note 0000874145. I made Copy/Paste.
Best Regards,
Augusto
Queries in alerts may not return the full query result
Symptom
When a specific query is run from the 'Query Generator' the results are quite long. However when the same query is run as part of an alert not all of the results are displayed.
Other terms
alert, query, large query result, alerts and queries, query result, query generator, query analyser, query analyzer
Reason and Prerequisites
Application Functionality
Solution
An alert based on a query returning long results will not display the complete list should the result be over a certain size. This implies that a query which returns, for example only the invoice number, 200 lines in the query generator may only return 123 lines in the alert.
Workaround:
If possible limit the query in the 'where' condition.
For Example:
If the query in the alert returns all invoices that exist in the database. It may be pertinent to limit the display to those invoices added on that day only or to display only invoices that have the status 'Open'
E.G.
Instead of
select T0.docnum from oinv T0
Write
select T0.docnum from oinv T0 where datediff(day,getdate(),t0.updatedate) =0
To save the query in the query manager:
To save the query open the query generator (Reports -> query generator).
Press 'Execute' without entering any table information.
Click on the pencil icon to the left of the statement 'Select *' This opens the query for editing.
Delete the words 'SELECT *' and copy in the query below.
Now press 'save' and the 'Query Manager' opens.
Click on a title from the list displayed. In the 'Query Name' field type the name the query will be saved under.
Press Save and the query is saved in the query manager.
To create an alert:
Open the 'Alerts Management' (Administration -> Alerts Management).
Change to add mode by choosing Data -> Add.
Give the alert a name e.g. Invoice Document Numbers.
Select the 'active' option.
To select the saved query click on 'open saved query' and select the query from the query manager.
Under the heading 'Frequency' choose the desired timing for the reoccurrence of the alert e.g. "Every '1' 'Day'", "At '9:00Am'"
Choose "Add" to save the alert.
SAP Note Number  Display Print
Note Language    
Version    
Additional Information
RELEASE STATUS: Released for Customer
Released on: 18.04.2007
Priority: Recommendations/additional info
Category: FAQ
Primary Component: SBO-ADM-ALR Alerts Management
Secondary Components: SBO-ADM Administration
English


3

Similar Messages

  • ABAP Query - Want to limit the number of records to 5

    I have a query based on a a table join (MKPF with MSEG) infoset. I want to limit the number of records to first five.
    How to deal with it?

    select data from tables using join and where conditions....into internal table....
    now move the first 5 records to second internal table and use them...
    or else in ur select statement u can use...
    select  data from tables <join condition> upto 5 rows.
    Message was edited by:
            Ramesh Babu Chirumamilla

  • Limit the number of record to download to excel from a report

    I am just wondering if there is a way to limit the number of rows that I want to download to excel from a report in apex, right now when I click download to excel it downloads all records. If I am displaying 15 records on report page I want the ability to download only those records.
    Any help with that would be appreciated.
    Kind Regards,
    Sofia.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • Limit the number of records in result list cartridge

    Hi experts
    I want to use result list cartridge for displaying some products but also want to limit the returned results to some max records.
    Is there any way i can limit the number of results in result list cartridge?
    Thanks

    Results list has a 'recordsPerPage' property that will limit the number of records on the page.
    Are you looking to limit it at some other place?
    HTH,
    Pankaj.

  • Limit the number of records per page in webi

    Hello All,
    How do i limit the number of records per page in webi?
    i was asked to have not more than 20 records per page.
    In " NUmber of Vertical records per page"(Quick display mode) the default value was 100, i am trying to set it to 20 ...but its not updating....its still taking 100.
    I am on BO XI 3.1 Sp2 fix pack 3
    Please let me know a way to accomplish this.Any inputs appreciated
    Thanks

    It can be done as follows:
    1. create a variable at report level as:
            v Test = Floor(RowIndex()/20)
    2. Added this variable in the Block as a new column.
    3. Select the v Test column, Right Click and set as section (also you can apply break).
    4. Go to structure mode select section\break and go to properties tab and select the property "Start on new page".
    Regards,
    Rohit

  • How to limit the number of records in WebI Report

    Hi,
    I have a requirement where I need to display the WebI Report data only if the number if record is less than 65k.
    Incase if the records are more than 65k then the report should be blank and a text message needs to be displayed.
    The client dont want to set the number of records either in universe or at the edit query at the report. They want to limit once the report is executed.
    Please let me know if its possible to do it at the report level.
    Thanks in advance!!
    Best Regards
    SAP BO

    Optional prompts are not a problem.
    Assuming you first query uses the following SQL statement
    select a,b,c from t where x=y and z=@prompt(...)
    The query for checking the number of rows should use the following SQL code
    select count(*) from t where x=y and z=@prompt(...)
    The original query should be modified as follows
    select a,b,c from t where x=y and z=@prompt(...) AND (select count(*) from t where x=y and z=@prompt(...)) < 65000
    Regards,
    Stratos

  • Spry Data Set - Possible to limit number of records show

    Hi,
    I am totally new to Spry in Dreamweaver.  I tried searching the forums for an answer but I could not find anything on how to limit the number of records shown.
    For example - I have 100 rows of information in my table.  When I do the Spry Data Set and use the Master/Detail page I only want 20 records to show.  Otherwise the page looks very long and odd.  Is it possible to just show the first 20 records and the ability to scroll or link the next 20 and so on?
    If you have a link to a tutorial or more information that would be greatly appreciated.
    Thank you,
    Kathy

    have a look here http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html

  • Is it possible to limit the number of returned Records by SQL ?

    Hello all together,
    i want to limit the number of records fetched by a sql-query
    to a fixed maximum for example 200.
    is there a way to do this like
    SELECT * FROM CUSTOMERS FETCH FIRST 200
    under 8.1.6 EE ?
    thx for any idea
    Lutz

    Use ROWNUM ...
    WHERE ROWNUM < 201
    There are a few "gotchas" with rownum, such as "rownum >
    20 and < 201" not working. Search the forum or see the
    documentation for more detail.

  • How to limit the no of records per page in crystal reports 2008

    I have to limit the number of records =10 per page in crystal reports 2008.
    Any help appreciated.

    Hi,
    1. Open the report in Design View
    2. Right click on the Details section and select Section Expert
    3. Make sure the Details section is selected in the Section Expert dialog box. goto paging tab
    Check the box that says u201CNew Page Afteru201D
    4. Click the formula editor button to the right of the checkbox.
    5. Enter the following formula
    if Remainder (RecordNumber, 10) = 0 then true else false
    6. Click Save and Close and then click OK.
    If you run the report it should break after each 10 rows.
    @Sri
    Edited by: Sri kamesh on Jun 22, 2011 1:50 PM

  • Is a subquery in a BO report limited to a max number of records???

    Here's my problem:
    I recieved an excel sheet with 700 records of customers from a client who wants me to to create a report with specific data for these customers in my Business Objects universe (BO6.5 on SQL Server).
    So I created a dataprovider with query 1, i.e. the requested data of customers. Then I created a second dataprovider, query 2, based on 'personal files', i.e. the excel sheet. In query 1 I added to the conditions that each customer should be in (sub)query 2 (CustomerId In list of the query result ('query2.CustomerId').
    the syntax I have used for this seems OK.
    However, I recieve the following error: "Too many selected values (LOV0001)". I know this error has to do with parameter MAX_INLIST_VALUES, which is limited by default to 99 and can be extended to 256 max. But I thought it refers to the max number of items in lists of values.
    When I limit the number of records in the excel sheet to 99 the result is perfect (proof that I got the syntax right!). I can upgrade the parameter to 256, and can split the excel sheet into three, but that will not be useful when next time my client sends me 10.000 customer records.
    Can I make reports in BO which use subqueries that result in more than 256 records at all? (hardly imaginable).
    What is the best way to do this?
    Thanks in advance!

    Hi Lucas,
    Following is the information regarding the issue you are getting and might help you to resolve the issue.
    ADAPT00519195- Too many selected values (LOV0001) - Select Query Result operand
    For XIR2 Fixed Details-Rejected as this is by design
    I have found that this is a limitation by design and when the values exceed 18000 we get this error in BO.
    There is no fix for this issue, as itu2019s by design. The product always behaved in this manner.
    Also an ER (ADAPT00754295) for this issue has already been raised.
    Unfortunately, we cannot confirm if and when this Enhancement Request will be taken on by the developers.
    A dedicated team reviews all ERs on a regular basis for technical and commercial feasibility and whether or not the functionality is consistent with our product direction. Unfortunately we cannot presently advise on a timeframe for the inclusion of any ER to our product suite.
    The product group will then review the request and determine whether or not the functionality/feature will be included in a future release.
    Currently I can only suggest that you check the release notes in the ReadMe documents of future service packs, as it will be listed there once the ER has been included
    The only workaround which I can suggest for now is:
    Workaround 1:
    Test the issue by keep the value of MAX_Inlist_values parameter to 256 on designer level.
    Workaround 2:
    The best solution is to combine 'n' queries via a UNION. You should first highlight the first 99 or so entries from the LOV list box and then combine this query with a second one that selects the remaining LOV choices.
    Using UNION between queries; which is the only possible workaround
    Please do let me know if you have any queries related to the same.
    Regards,
    Sarbhjeet Kaur

  • Maximum number of records to 'BAPI_PIRSRVAPS_SAVEMULTI'

    Hi All ,
    Could anybody tell me maximum number of records that can be passed to BAPI
    BAPI_PIRSRVAPS_SAVEMULTI.
    This BAPI is used for forecast upload to SNP planning area (which can be seen in product view: /sapapo/rrp3).
    Win full points for the resolution...
    Thanks in advance...
    Chandan Dubey

    Hi Chandan - There is no simple answer to this question.
    BAPI_PIRSRVAPS_SAVEMULTI has a built in package (number of records to process) counter which sends packets of data to livecache for creating data. By default this BAPI will process all records at once but there is a BADI in this BAPI that allows you to set the package size as well as many other things. The performance will depend upon things like your system,  environment and volume of data. There are 2 limitations in 1) the prereading (retrieval of matlocids, matids, locids, pegids, etc.) which happens prior to the livecache call and 2) the livecache call itself. The prereading can cause a memory overload but that is less likely to happen compared to a livecache problem. The proceduress that call livecache can run out of more likel than the ABAP tables and cause the program to dump as well and the dump may be hard to understand.
    What I have done with many programs is to add a wrapper around a livecache BAPI (or FM) call and use my own counter to send blocks or packets of data to the BAPI. For example loop through records in a program and call the BAPI for every 1000 records accumulating the return info in an internal table. The number of records in each packet or block is driven by a parameter on a selection screen or value in a ztable so the number can be tested and adjusted as needed. The reaction of livecache BAPIs will differ from system due to things such as hardware configuration and volume of data.
    If you do not code to call the BAPI as I have described above, place code in the BADI to set the packet size or limit the number of records being input some other way, then you are taking a risk that one day a specific number of records will cause a dump in this BAPI.
    I would think you would be safe with 500-1000 records but you should really test in your system and consider the options for packeting the number of records.
    Andy

  • Limitting the number of records in query

    I like to limit the number of records retrieved in the query. I set Query All Records block property to NO, Query Array Size to the number I want to retrieve. Before doing that, I set form Preference - Array Processing checked. The result is form always retrieves all records meets the search condition. Could someone tell me what's wrong with it?

    I do not understand why and what exactly you want to do. The query array size defines the number records your form should fetch at a time, i.e. if you have 100 records in the database and you set the array size to 20, forms will perform 5 fetch cycles to retrieve all records. However, this is transparent to the user and he will see all 100 records. This property is used for performance tuning when working with a large volume of records.

  • DB Adapter : How to limit number parent records in select query.

    Hi All,
    I am querying a master-detail tables from a database.
    I want to limit the number of parent records to 15.
    Ex: Resources is parent table. It has two child tables "Skills" & "PersonalDetails".
    Resources table has 1 to many relationship with above tables.
    When i use rownum <= 15 in the where clause i am seeing different results each time.
    Sample query is as below.
    select distict t0.resourceName , t1.skillName , t2.location
    from .table_names
    where .....join between tables..
    and rownum <= 15
    Note : I selected the checkbox "Use outer joins to return a single result set for both master and detail tables" in DBAdapter wizard.
    Let me know if i am missing anything important.
    Thanks,
    Sid.

    Hi,
    You can set the "Max Rows" at the DBAdapter wizard ("Advanced Options" step).
    Regards,
    Daniel

  • Alerts not retrieving the correct number of records

    Hi,
    I have created alerts to run plans. These plans are getting records from DB and populating the ADC. The alerts are getting executed but are not retrieving the correct number of records.
    I have created 5 alerts to run 5 plans all in the same time. The error at the "Data Flow service status" window is :
    CACHED RESULT
         REQUEST ID: {4EB6B955-96B3-4AF2-B836-6C9F417D47A6}
         EXECPLAN ID: {11372B4D-9ACE-4CFB-831F-11028FF996D5}
         EXECPLAN NAME: xxxx
         FIX COUNT: 0
         START TIME: 6/8/2006 12:00:01 PM
         EXECUTION TIME: 0:00:00
         Sink Records Blocks Disk Blocks Fix Count Hit Count Execution Status
         0: 0 0 0 0 0
    Complete - ERROR Error while processing the data for the step 'SQL Query'
    This error is seen for 2-3 plans .......
    But if i execute the plan manually from design studio there is no error.
    So
    1. Do i need to change anything in the config files to increase the MAx memory block?
    2. Is there any way, the plans can be run one at a time i.e. configure alerts in such a way that if one plan finishes the other one starts automatically? Currently i have scheduled the plans to run at the same time using Alerts..
    Please help...
    Thanks

    Here is one 'culprit' you can verify. Open DesignStudio. You should "--not--" see any grids or icons on (near) the botton status row. If you see them - right click and delete them. These are plans with same_names put in 'locked' state. After you do this. close your design studio.
    Note- if you ever open a plan in designstudio, always "save" it and close it (exit). Donot click on window [x] mark to close the appl.
    After above verifrication -- restart EnterpriseLink and restart PlanMonitor, verify if everything runs fine.
    --sanjeev                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to limit the number of seleted records?

    Hi,
    I have a performance issue in the context of SQL .
    I used JDBC to excute a select statement. The number of found records might be too large (e.g. 10000). To display them, I set a marge (e.g. 50 ) It is fine for display purpose.
    However, the execution of select statement took long time although I only needed 50 of them.
    Is it possible to make the execution of SQL select statement only work until it found 50 records?
    it seems that i dreamed. But maybe there is a walk around.
    Regards,
    PY

    You could also try calling the Statement (or
    PreparedStatement etc.)'s setMaxRows() method.when using Oracle, does it use the "ROWNUM < maxRows" to limit the number of entries or does it actually retrieve all the data from the database and only then limit the result to the requested amount?
    THX

Maybe you are looking for

  • Lookup in transformation not fetching all records

    Hi Experts, In the routine of the transformation of a DSO (say DSO1), i have written a look-up on other DSO (say DSO2) to fetch records. I have used all the key fields of DSO2  in the Select statement, Still the look-up is not fetching all the record

  • How to show connection errors?

    Hello, When my user in the backend system is locked and I call RFC’s in VC concerned this system I don’t get any results as well as no information about the connection problem. Is there any possibility to make these connection errors visible to the u

  • Can I use album artist rather than Artist on my iPod160?

    The Artist selection on the iPod has its problems as "Album Artist" is not always the same as "Artist". I know I can correct the Cover Flow problems with Artist View by use of the Sort Artist option but I do have a few questions. I would rather displ

  • ITunes 10 - artwork back for all songs in list view!

    Hi Everyone, iTunes 9 had an option in list view, were you could see the album artwork for all song on the left. iTunes 10 do not have this option or you can see them only for albums in the album list view. Apple say, it is good for saving space. But

  • Placement Algorithm wanted

    Folks'es, i need to write an application that displays the objects of a database in a nice tree/graph style. i have everything i need, except for a neat placement algorithm, that puts the object icons nicely on the screen. anybody implemented somethi