Stopping Crystal Printing Too Many Records

I have a report in crystal.  It is showing some details held on our Case Management System.  If people merge in the template twice they end up with a set of 8 blank details in their case.  This in turn forces Crystal to print many rows for each of these cases as it prints ever possible combination of answers for each detail.  As a result I had 540,000 records instead of 1 this morning.
Does anyone know if there is anyway to stop this happening, an option to stop Crystal printing more than say 100,000 records?
Thanks,
Alastair

Use the Record count in the record selection forumla or use a stored procedure.

Similar Messages

  • Function error:  Too many records

    I have writing a function that needs to return the total count of a sql statement. It will divide two calculated columns to get an average. I have two versions. Version 1 compiled successfully and I am trying to either run it in Reports or in the database and call it. I get an error stating that the function returns too many records. I understand that is a rule for stored functions but how can I modify the code to get it return one value for each time it is called?
    Here is the main calculation. SUM(date1-date2) / (date1-date2) = Avg of Days
    version1:
    create or replace FUNCTION CALC_OVER_AGE
    RETURN NUMBER IS
    days_between NUMBER;
    days_over NUMBER;
    begin
    select (determination_dt - Filed_dt), SUM(determination_dt - Filed_dt) into days_between, days_over
    from w_all_cases_mv
    where (determination_dt - Filed_dt) > 60
    and ;
    return (days_between/days_over);
    END CALC_OVER_AGE;
    version2:
    CREATE OR REPLACE FUNCTION CALC_OVER_AGE (pCaseType VARCHAR2)
    RETURN PLS_INTEGER IS
    v_days_between W_ALL_CASES_MV.DAYS_BETWEEN%TYPE;
    v_total NUMBER;
    days_over NUMBER;
    i PLS_INTEGER;
    BEGIN
    SELECT COUNT(*)
    INTO i
    FROM tab
    WHERE case_type_cd = pCaseType
    AND determination_dt - Filed_dt > 60;
    IF i <> 0 THEN
    select SUM(determination_dt-Filed_dt), days_between
    into v_total, v_days_between
    from tab
    where determination_dt - Filed_dt > 60;
    RETURN v_total/v_days_between;
    ELSE
    RETURN 0;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN 0;
    END CALC_OVER_AGE;

    Table Structure:
    WB_CASE_NR NUMBER(10)
    RESPONDENT_TYPE_CD VARCHAR2(10)
    INV_LOCAL_CASE_NR VARCHAR2(14)
    CASE_TYPE_CD VARCHAR2(10)
    FILED_DT DATE
    FINAL_DTRMNTN_DT DATE
    REPORTING_NR VARCHAR2(7)
    INVESTIGATOR_NAME VARCHAR2(22)
    OSHA_CD VARCHAR2(5)
    FEDERAL_STATE VARCHAR2(1)
    RESPONDENT_NM VARCHAR2(100)
    DAYS_BETWEEN NUMBER
    LAST_NM VARCHAR2(20)
    FIRST_NM VARCHAR2(20)
    DETERMINATION_DT DATE
    DETERMINATION_TYPE_CD VARCHAR2(2)
    FINAL_IND_CD VARCHAR2(1)
    DESCRIPTION VARCHAR2(400)
    DETERMINATION_ID NUMBER(10)
    ALLEGATION_CD VARCHAR2(1)
    ALGDESCRIPTION VARCHAR2(50)
    Output is for Reports, I am trying to get the last calculation, which is the Average Days. The reports is grouped on Case Types and has several bucket counts for each like this.
    Case Type Count All Completed Pending Over Age Avg Days
    A 5 3 4 2 15
    Z 10 7 6 3 30
    4 8 3 5 4 22
    To get the Avg Days, the Over Age calculation is used as well as the Days Between (Determination_Dt - Filed_Dt). That is the (date1-date2) example that I gave in my first post. So the calcuation would be the SUM(Days_Between) / Days_Between.

  • Final Cut Express keeps stopping and saying "Too many files open"

    Final Cut Express keeps stopping and saying "Too many files open". I don't see how this is the case as I only have the one project open...

    Try here:
    http://www.fcpbook.com/Misc1.html
    Al

  • Report timing out, "Too many records"

    I am using CR XIR2 with a univers that I created to run an inverntory report. The report works fine in the designer but when I go to run it from the CR Server It times out. (Very quickly).  If I put filters and only pull a subset of the data the report works fine. This issue is there should not be too many records. Where can I check to make sure that there are no limitations set and I can get all of the records? I have set the parameters for the Universe to no limit records or time to execute. Is there any place else I can check? or any other ideas?
    Thanks

    What viewer do you use?
    If the viewer is ADHTML, you are using the RAS (Report Application Server). In that case, you need to set the number of (db) records to read in the RAS properties on the CMC.
    If the viewer is DHTML, Java or ActiveX, you are using the CR Page Server. You will need to set the number of db records to read in the Cryatal Reports Page Server properties on the CMC.

  • How do I stop unwanted and too many friend request...

    I started receiving way too many contact requests from unknown men, usually all military, Which I have been consistently blocking, but I want to know if my account has been jacked or what is going on and how to stop this, please. Anyone???

    just some clarifications changing your privacy settings will only prevent unwanted calls and/or IMs from people who are not in your contact list.  It will not prevent other users, both legitimate and potential scammers/spammers, from sending your contact requests.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Special Ledger Roll up: too many records created in receiver table

    Hello,
    When I execute roll up from 1 special ledger to another special ledger (leaving out a number of fields) 4 records (postings) are selected but in the receiver table there are 92 records created (4*23) so 88 records too many. For each selected record in the sender table 7 records contain only 0 amounts and have an incorrect RPMAX value (starting with 16 till 336). The 8th record has an amount and has the correct RPMAX value: 352). In Sender and Receiver Ledger fiscal year variant Daily Balance is assigned (= each day is a period). Any hint how to prevent the empty records?

    Installing the patch, re- importing the SAP Provisioning framework (I selected 'update') and recreating the jobs didn't yield any result.
    When examining pass 'ReadABAPRoles' of Job 'AS ABAP - Initial Load' -> tab 'source', there are no scripts used .
    After applying the patch we decided anyway to verify the scripts (sap_getRoles, sap_getUserRepositories) in our Identity Center after those of 'Note 1398312 - SAP NW IdM Provisioning Framework for SAP Systems' , and they are different
    File size of SAP Provisioning Framework_Folder.mcc of SP3 Patch 0 and Patch 1 are also exactly the same.
    Opening file SAP Provisioning Framework_Folder.mcc with Wordpad : searched for 'sap_getRoles'  :
    <GLOBALSCRIPT>
    <SCRIPTREVISIONNUMBER/>
    <SCRIPTLASTCHANGE>2009-05-07 08:00:23.54</SCRIPTLASTCHANGE>
    <SCRIPTLANGUAGE>JScript</SCRIPTLANGUAGE>
    <SCRIPTID>30</SCRIPTID>
    <SCRIPTDEFINITION> ... string was too long to copy
    paste ... </SCRIPTDEFINITION>
    <SCRIPTLOCKDATE/>
    <SCRIPTHASH>0940f540423630687449f52159cdb5d9</SCRIPTHASH>
    <SCRIPTDESCRIPTION/>
    <SCRIPTNAME>sap_getRoles</SCRIPTNAME>
    <SCRIPTLOCKSTATE>0</SCRIPTLOCKSTATE>
    -> Script last change 2009-05-07 08:00:23.54 -> that's no update !
    So I assume the updates mentioned in Note 1398312 aren't included in SP3 Patch 1. Manually replaced the current scripts with those of the note and re- tested : no luck. Same issue.
    Thanks again for the help,
    Kevin

  • How to stop generation of too many RFCs after CCMS setup

    Hello,
    Recently we have set up CCMS configuration for Portal.After the server is enabled for alerts in R3, we are receiving too many RFCs.Do any one of you please advise what might be the reason for many RFCs and how can we stop this.
    Regards,
    Aparna

    > Recently we have set up CCMS configuration for Portal.After the server is enabled for alerts in R3, we are receiving too many RFCs
    What do you mean by "receiving too many RFCs" ? Where do you see the problem exactly. Can you please specify?
    Regards,
    Jazz

  • Photosmart C6180 prints too many copies of PDFs and HTML-documents

    Hi,
    My Photosmart C6180 prints multiple copies of documents even if I haven't asked for it. This seems to only apply to PDFs and HTML-documents, I haven't seen it happen with Word/Excel. It's not consistent, it happens most of the time but now always for these documents. When I look at the console, when it has started printing I see shortly the status "Printing - Restarting". That's probably when it starts the 2nd copy. Sometimes it stops by itself, other times it seems to be looping and I have to turn the printer off and delete the document from the queue.
    HP solution center SW is updated, I run Vista with latest service packs on a Thinkpad T400s.
    Any ideas?
    Thanks!

    My C6180 printed multiple copies of any document from my Vista OS laptop ( wireless connection ), but not from my
    XP OS desktop ( USB connection), even though I selected 1 copy on the print menu. Unchecking "Enable bidirectional support" in the Properties / Ports dialog box solved the problem. Hope this helps someone too.

  • ABAP - CUA : Initial load : too many records in the CUA?

    We are running :
    SP03 for IDENT. CENTER DESIGNTIME 7.1 Patch 0
    SP03 for IDENTITY CENTER RUNTIME 7.1 Patch 1
    SP03 for NW IDM IC UIS 7.00 Patch 1
    We have connected our customer's CUA system to IdM : we created an Identity Store called 'SAP_Master', created the CUA repository, defined the required attributes as defined in the guide 'IDM 7.1 - IdM For SAP Systems - Configuration 7-3.pdf', created the jobs based upon the templates etc. The dispatcher used has 'run provisioning jobs' disabled.
    On our sandbox server, when we connect to our sandbox CUA system (CUA_YS5_200), everything is ok, the 'AS ABAP - Initial load' job with only 'ReadABAPRoles' enabled, runs fine.
    On our QA system, when we connect to our 'production' CUA system (CUA_YP0_400), the 'AS ABAP - Initial load' job with
    only 'ReadABAPRoles' enabled, finished with message 'could not start job, rescheduling'. Since there is a huge number of records (we looked it up in the system : 311.679 records), we decided to switch on parameter 'bootstrap job'. Now the result is that it takes forever, after half a day the job is still running. In the database, table 'sapCUA_YP0_400role' is still completely empty (no records). Therefore, it seemed interesting to connect our QA IdM system to our development CUA system (CUA_YS5_200). After a while, the exact same job has finished and table 'sapCUA_YS5_200role' contains 18.580 records.
    After some additional testing, we might have discoved the cause of the issue could be that the number of records in our CUA is too big.
    In the java code of the fromSAP pass there are 2 calls to the SAP system for reading the roles into Idm. The first one reads table USRSYSACT (311.000 records), the second one reads table USRSYSACTT (1.000.000 records). All these records are stored into a java hashmap - we think that 1 million records exceeds the hashmaps capability, although no java error is thrown.
    When we debug the functionmodule RFC_READ_TABLE and change the rowcount to 100.000 then everything works fine. When we set the rowcount to 200.000 the java-code does not generate an error but the job in idm never
    ends...
    When running functionmodule RFC_READ_TABLE in the backend system the 1.000.000 records are processed in less than one minute. So apparently, the issue is related to the processing in the Java code.
    Java Dispatcher heap size is set to 1024.
    Anybody already came accros this issue?
    Thanks & best regards,
    Kevin

    Installing the patch, re- importing the SAP Provisioning framework (I selected 'update') and recreating the jobs didn't yield any result.
    When examining pass 'ReadABAPRoles' of Job 'AS ABAP - Initial Load' -> tab 'source', there are no scripts used .
    After applying the patch we decided anyway to verify the scripts (sap_getRoles, sap_getUserRepositories) in our Identity Center after those of 'Note 1398312 - SAP NW IdM Provisioning Framework for SAP Systems' , and they are different
    File size of SAP Provisioning Framework_Folder.mcc of SP3 Patch 0 and Patch 1 are also exactly the same.
    Opening file SAP Provisioning Framework_Folder.mcc with Wordpad : searched for 'sap_getRoles'  :
    <GLOBALSCRIPT>
    <SCRIPTREVISIONNUMBER/>
    <SCRIPTLASTCHANGE>2009-05-07 08:00:23.54</SCRIPTLASTCHANGE>
    <SCRIPTLANGUAGE>JScript</SCRIPTLANGUAGE>
    <SCRIPTID>30</SCRIPTID>
    <SCRIPTDEFINITION> ... string was too long to copy
    paste ... </SCRIPTDEFINITION>
    <SCRIPTLOCKDATE/>
    <SCRIPTHASH>0940f540423630687449f52159cdb5d9</SCRIPTHASH>
    <SCRIPTDESCRIPTION/>
    <SCRIPTNAME>sap_getRoles</SCRIPTNAME>
    <SCRIPTLOCKSTATE>0</SCRIPTLOCKSTATE>
    -> Script last change 2009-05-07 08:00:23.54 -> that's no update !
    So I assume the updates mentioned in Note 1398312 aren't included in SP3 Patch 1. Manually replaced the current scripts with those of the note and re- tested : no luck. Same issue.
    Thanks again for the help,
    Kevin

  • Am I trying to print too many Contacts at once?

    I have over 2000 contacts in my Address Book, and when I try to print I get the "Preparing" window forever. I can break it down to smaller groups, but I'm wondering if there's a limit to how many contacts Address Book can print in one pass. Any ideas?

    You really can't. Try downloading them on your computer and sync. Next try restoring from backup.

  • RFC_READ_TABLE (too many records)

    Hi,
    I am trying to download a massive amount of records from table CDPOS using VBA and the SAP.Functions library.  It works fine for other tables.  It also works if I limit the records to be obtained using "OPTIONS". However, if this criteria covers a high number of records or if I don't define a criteria at all then I get a "SYSTEM FAILURE" message.  I have a simiar problem when useing SE16 and the number of records is too high.
    Any ideas on how to deal with this?  There is not a date field in CDPOS for me to extract by date ranges and sometimes there is a high number of records associated to a single document number.
    Thanks in advance,

    Hi!
    I haven't been working with this table myself so I might be drawing incorrect conclusions here but I when a had a look at the table I noticed there is a field called CHANGENR. When checking the data in this field in my system I notice it's escalating and maybe you can use this to fetch all the records in smaller loads.
    Lets say you start by calling RFC_READ_TABLE with a CHANGENR interval set to min 0 max 9999999 and then you restrict the number of hits to an appropriate value. This would result in records with the smallest number from changenr up to a number where the max records hits. After that you could just take the last received CHANGENR value and use it as min in your interval redo the search and then continue this until the returned number of records is less then "maximum number of hits" which would indicate that you've extracted all the data from the table.
    Concrete example:
    Search criteria CHANGENR 0 to 99999999 with maximum number of hits set to 6 (lets make it low for the sake of argument):
    1500000
    1500001
    1500002
    1500002
    1500002
    1500003
    Redo search with search criteria CHANGENR 1500003 (yes we want this one again) to 99999999
    1500003
    1500003
    1500003
    1500004
    1500005
    1500006
    Now we would like to withdraw the number of 1500003 we received in the previous search (1) from the "top" to avoid duplicates, in this case we would have 5 usable records in search batch 2. Then just continue like that until records returned is less then maximum number of hits or equal to zero.
    Maybe the CHANGENR isn't as fixed as this, just a thought when I read your question:)
    Hope it helps!
    Regards, Ernst.

  • Printing too many copies

    I have a g5 printing to an HP 5550 with OS X 10.3.9. I've downloaded the most recent driver from hp and installed it after removing the printer.
    The g5 prints the same copy over and over to the printer, but doesn't do that with any other printer. No other client, mac or pc, prints multiple copies when attempting to print one.
    Please let me know if you have any troubleshooting thoughts on this. Other than removing and re adding the printer do macs cache other printer information that I can reset?
    Thank you

    No good, Jack!
    You could try this little utility and see if it can reset what you need. It can empty a cache and do a few other things besides.
    Printer Setup Repair
    regards roam

  • SQL Query criteria eliminates too many records

    This SQL query results in zero out of 268 records due to the criteria of (((Products.ProductFamily)<=0))
    SELECT images.url_img, images.alt_img, images.productid_img, Products.ProductFamily, Products.ID
    FROM images LEFT JOIN Products ON images.productid_img = Products.ID
    WHERE (((Products.ProductFamily)<=0));
    However, if you change the <=0 to >0, the correct 140 out of 268 records show up. So if 140 records are greater than zero, shouldn't the remaining 128 records be less than or equal to zero? How do I get the results that are <=0 to show up?
    FYI - Products.ProductFamily data type is numeric, field size is integer, decimal places is auto, default value is 0, required is No, indexed is No

    Yes, but can you still answer the question? I am trying to determine if the problem is in the join or the where clause. What happens if you remove the join and still include results from the product table? Can you give an example of data for a few rows (both tables) that are not working as expected?

  • Prints too many pages

    I told the printer to print 10 copies from The Print Shop 23.1 and I removed the paper after printing 30 copies. Deleted the print job. If I copy the document, it prints the correct amount.  Any ideas??

    > However, I don't seem to have the Tiling option in my Print Dialog box, in the Scaling menu.
    This option is available in Adobe Acrobat, not Adobe Reader.

  • Help with optimization -- too many records being inserted

    hi..
    I am doing this project. This project is as a part of a project competition, and hence the analysis part is already done.I am not supposed to make any changes in the design and the database part.In this project, I have to make an entry form for entering information for schools.
    The project is web based, JSP+DB2. There is only one single form and that contains 30+ fields, and there are around 7-8 tables. Form is submitted only once, and on that submission 280 records have to inserted into the database. Problem is I cannot change any of the design, form or database. If on a single submission, if such a large amount of records are inserted, and that to considering its a website, then the response would be extremely slow. So can anyone of you help me with ideas that I can implement, so that any optimization can take place.
    Thanks in advance.

    As I told this project is of a competition, and has to be implemented in rural areas, hence I cannot be sure as to what will be the server and client configuration. What i want to know is that is there a way that I do not have to insert 280 records in one go. May be insert data in some temporary tables, and then transfer it to the final tables at the time of successful completion. Is this solution feasible, and are there any other such solutions available??

Maybe you are looking for

  • What are the major differences between the 4.7 and ECC5 or 6   ?

    Hi Abapers,                         Can anyb one answer this question .... what are the major differences between the 4.7 and ECC5 or 6    ? Thank's, Siri

  • Oracle XE on Win32 XP Pro

    Hi, I am able to install Oracle XE on win32, windows XP Professional SP3. I can access the apex home page when I am not connected to the network. I connect to a wireless network and everything works fine if I am not connected to a network. The moment

  • Turn off cloud music in genius

    After upgrading to iTunes 11, Genius Mixes began using music in the cloud, instead of just the music on my laptop. The reason I don't have music on my laptop is because I don't want to listen to it, but I'm not willing to delete it form the cloud (ju

  • I cant figure out how to sign up for one to one appointment

    I would love some direction on how to sign up for a one to one session or something like that, im working on an iphoto project involving garage band and im needing help.  this project is due fri morning I desperately need help

  • Remove gaps when drawing custom items into column data browser

    I am drawing custom controls in a column-view data browser, and find that there are margins on each side the drawing region. This is especially annoying when I need to draw the highlighted background for selected items because then the selection bar