Record Selection Issue

I have the following record selection formula:
not ({TransDetailCustomerView.Route} in [199, 299, 399, 499, 599, 699, 799]) and
(not HasValue({?SUPPLIER}) OR {TransDetailCustomerView.VendorNo} = {?SUPPLIER}) and
not {TransDetailCustomerView.VoidFlag} and
{TransDetailCustomerView.InvoiceDate} = {?DATE RANGE} and
{TransDetailCustomerView.ChainCode} <> 395 and
(if {?LOCATION}= "ALL LOCATIONS" then TRUE
else
{@LOCATION NAMES}={?LOCATION}) and
{TransDetailCustomerView.ServiceType} in [1, 5]
However, when I refresh and preview the report, I get records that are in other service types than 1 or 5.  Does anyone know why this would happen?

Hi Gayle,
What I would try, is create a formula, with just part of your select statement in it.
Then create another formula that has more of the select statement.
say something like this.
not ({TransDetailCustomerView.Route} in 199, 299, 399, 499, 599, 699, 799) and
(not HasValue({?SUPPLIER}) OR {TransDetailCustomerView.VendorNo} = {?SUPPLIER}) then '1'
or this
not ({TransDetailCustomerView.Route} in 199, 299, 399, 499, 599, 699, 799) and
(not HasValue({?SUPPLIER}) OR {TransDetailCustomerView.VendorNo} = {?SUPPLIER}) and
not {TransDetailCustomerView.VoidFlag}  then "2"
Then maybe an additional formula like this.
{TransDetailCustomerView.InvoiceDate} = {?DATE RANGE} and
{TransDetailCustomerView.ChainCode} 395 and
(if {?LOCATION}= "ALL LOCATIONS" then "3"
clear out your selection criteria, so that you return all records.
Then drop your new formulas in to the details section.
Hopefully it will be easy to determine where the select is getting the error.

Similar Messages

  • Record selection issue in cross tab.

    Hello!
    I have a record  filtering problem. I tried many scenarios, and searched this forum but I cannot find an solution.
    I have a sub-report that contains a cross tab that provides a few summarized fields.
    I have two tables: a table with category of events : (field catID and Catname) and an event table with a CatID, a date field and others number field I use in the cross tab.
    I want my cross tab to show one row per category. The Catname and the summaries.
    Now all is working fine but for one issue. I need to select my event according to a time bracket.
    So I created two time parameters (start and end) and select the event dates between these two dates.
    Now, when selected, any category that does not have an event between these dates are not displayed. I would like them to be shown with "o" values.
    There must be a way of doing this. I just cannot find it.
    Esther

    In order for Crystal to show data, it must be given data to show!
    You will need to base your subreport on an SQL Command.  In that command, put the current SQL used by the report.  To this, do a UNION to a select that selects the category name, and a zero for each field that you are summing in the crosstab.
    As a simplified example, suppose the original SQL was (MS SQL):
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    This would be changed to
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    UNION
    select c.catname, 0 as Quantity
    from categories c
    where c.catid = {?catid parm}
    This will return an additional zero record, regardless of what data the original query returns, thus giving Crystal the data needed to display.  Note that the zero value will not affect the results in any way, except causing a zero to be displayed if no data is returned from the original query.
    Just remember that the second SELECT in the UNION has to have the same number of fields, of the same data type, as the first SELECT.
    HTH,
    Carl

  • Record selection issue in same table

    Hi All
    I have the following table
    with emp as (
               select '11' A,'aaa' B, '40' C from dual union all
               select '11','bbb', '40' from dual union all
               select '33','ccc', '30' from dual union all
               select '44','ddd', '20' from dual union all
               select '11','eee', '10' from dual
              )My expected results should be
    A           B        C
    11        aaa      40
    11        bbb     40     
    11        eee     10Basically requirement is when select different combination of values in column 'B' need to find out what is the 'A' value (this has to be same for all three records)
    Hope this make sense.
    Cheers
    Shabar

    Hi all
    Sorry for confusing you guys.
    Basicall for the following data
    {codes}
    with emp as (
    select '11' A,'aaa' B, '40' C from dual union all
    select '11','bbb', '40' from dual union all
    select '33','ccc', '30' from dual union all
    select '44','ddd', '20' from dual union all
    select '11','kkk', '20' from dual union all
    select '10','eee', '20' from dual union all
    select '11','eee', '10' from dual
    I expexted results as11     aaa     40
    11     bbb     40
    11     eee     10
    Ganesh Srivatsav : In your query results are bit different. Sorry I guess its my bad explantion
    Cheers
    Shabar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Issue using a parameter twice in record selection

    Setup:
    1) Crystal Report: (Client, Start Date, End Date) parameters linked to the Sub reports
    2) Four sub-reports: (All open issues), (Oldest issue), (Average age of open issues), (Average age of closed issues)
    I need to report on issues based on Customer types of "Company" and "Customer."  All of the records I'm reporting on are in the same table (Subset), but the "Client" parameter I'm using exists in two different columns depending on the Customer type.
    ie. My paramter for "Client" is "ABC"
    "ABC" is found in Subset.Sitename for (Company records)
    "ABC" is found in Subset.Companyname for (Customer Records)
    My record selection formula is:
    {Subset.Companyname}={?Pm-?Client} or {Subset.Sitename}={?Pm-?Client}
    Showing the SQL query shows both values filled in correctly, and if I paste the query in SQL, I get the correct result set.  But if I use any kind of "Running total", "Average", "Maximum", etc... functions, Crystal doesn't include my Company records in its evaluations.  It only evaluates Customer records.
    Does anyone have a work-around for this?  Is this is a limitation?

    All Open Issues -- My work-around was:
    1) Running total (count) of open Customer issues
    2) Running total (count) of open Company issues
    3) Formula (sum) function of 1 and 2
    Oldest Issue -- No workaround yet; Parameters listed above are in the Record selection
    1) Datediff between Received date and Current date
    2) Maximum of the Datediff results
    Average Open - No workaround yet; Parameters listed above are in the Record selection
    1) Datediff between Received and Current Date
    2) Average of Datediff results
    Average Closed - No workaround yet; Parameters listed above are in the Record selection
    1) Datediff between Received Date and Closed Date
    2) Average of Datediff results

  • Program RFFOAVIS_FPAYM: No records selected (F0073)

    hi everyone
    im having a nasty issue when trying to output payment advices
    no matter what usual way i try, i get the following message:
    F0073
    Program RFFOAVIS_FPAYM: No records selected
    im using RFFOAVIS_FPAYM as print program, which is standard - nothing has been changed in it
    and tried outputing the paymend advices through F110 aswell as RFFOAVIS_FPAYM directly
    both results in the same message
    after a while of searching i found note 503945
    unfortunately it applies to release 4.6C while we are using ecc6
    neitherless i found REGUH-XAVIS interesting, as in our case they also seemed to be all space.
    so i tried setting the CHECK REGUH-XAVIS... in the report to 'X' which gave me an output in some cases,
    in others still the same message. and in the cases where it worked, some forms came out with lots of 'XXXXXX' where other values where supposed - probably because those wherent intended to be output in the first place?
    we have also doublechecked the customizing with a different system, where it works
    and couldnt find any assimilarities
    has anyone experienced this issue too? or know anything that might help?
    thank you!
    PS: it seems to be the same problem with report RFFOAVIS too

    F0073
    Program RFFOAVIS_FPAYM: No records selected
    If I am correct, the issue is when you were executing F110 where system will throw the above error if you have not maintained the payment method.  Check in F110 under "Parameter" tab, whether you have maintained Payment Methods for your company code.
    thanks
    G. Lakshmipathi

  • Program RFFOUS_C: No records selected

    Hello Experts,
    I'm having issue cannot assign cheque in payment run.
    Currently I'm using outsource bank to issue cheque. When I do payment run, it will send the data through EDI to the respective bank.  In future, I want to have 2 method, outsource and internal cheque payment.
    When I do F110, and I create payment medium for program  RFFOUS_C - variant (check form = Z110_PRENUM_CHCK) , I always get this error.
    Program RFFOUS_C: No records selected
    The following documents were not processed since they will be sent by EDI
    Is it possible to have both ways of payment ? using EDI and also cheque number assignment in SAP ?
    I can do 2 times, 1 time for EDI and next time for the internal cheque number (I maintained my check lot number already).
    Can anyone help me ?
    Thanks,
    Melissa

    Hi Kenghua,
    are you saying that when I fill in the parameter for F110, I should maintain the variant for program RFFOEDI1 instead of RFFOUS_C ?
    Is this means that the data will be send to bank and also update my cheque number assignment ?
    I think this would cause duplication.
    what I meant is .. sometimes I will use F110 to send data to bank, and sometimes I will only use F110 to create payment with my cheque number I maintained in FCHI.
    Just want to clarify are we having the same thoughts ?
    Thanks,
    Melissa

  • Program RFZALI120: No records Selected

    Hi,
    This is Jyothi.  I am not able to see the Proposal list after creating the Parameters.  I am getting a message : "Program RFZALI120: No records Selected". I have records in the vendors.
    Can anyone help me with this issue.
    Thank you
    Jyothi

    HI ,
    create teh Parameters & save .
    then run the proposal & save it.
    then you go for view the list.
    chandra

  • Database DLL error on editing the record selection formula?

    Post Author: Aravind
    CA Forum: Older Products
    Hi All,I recently edited the record selection formula of an old report and since then the report is issuing me an "Error detected by database DLL" error.The report was running fine earlier and still continues to run fine if I undo the changes. Earlier, the records were selected based on a 'date' field and I edited the formula to select records based on another date field, but the report doesn't work.The report runs fine on my local PC using Crystal Reports, but web based reporting fails with the error message. The data is selected from a view and the date parameters I talked about are the fields in the same view.This view has around five date parameters and the report runs fine for all of them, except one date field.Any pointers are appreciated.Crystal reports version is 8.5. Regards,Aravind.

    Post Author: DPowell
    CA Forum: Older Products
    Ah, yes, the good old generic date error.
    The problem is likely an invalid date value in one (or all) of your records with that field.  You don't say what database engine you are connected to or which driver you are using for the report, but I'll give you some "pointers".
    Basically, the SQL fetch has encountered an error in your date field and the driver you are using in the report can't handle it.
    A null date could cause that problem.  Also a date-time field with an invalid value or truncated time value.  A robust ODBC driver, like one of the Microsoft drivers might be able to overcome it.  Likewise, vendors frequently release updated drivers to improve error handling just like this.
    1.  Analyze your data, specifically the contents of the "new" date field you are using for some kind of invalid date.
    2.  Experiment with different ODBC drivers by creating alternate ODBC connections to the same database using different ODBC drivers.
    3.  Browse and experiment with options in Crystal Reports Properties that allow you to specify data conversions for NULLs and Dates.
    Good luck !

  • Record Selection Formula and Parameters

    We've currently upgraded from Crystal Reports 9 to Crystal Reports 2008 (SP3).  In our legacy reports, we use the "record selection formula editor" to filter the results of our report.  This is an example of one of our formulas:
    {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE} and {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE}
    In this formula, we pass in the FROMDATE and TODATE from our .NET applicaiton to filter on dates.  After upgrading to Crystal Reports 2008 (SP3) this no longer works.  I get an error "Error in formula Record_Selection".  It looks as if it was having issues parsing the formula.  If I replace my parameters (?FROMDATE/?TODATE) with hard coded dates it works fine (It also worked fine in Crystal Reports 9) so from what I can tell adding the parameters causes parsing errors. Also in the error it shows the formula and it's defintily messed up:
    ((( NOT {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE}) AND ( NOT {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE})))
    I'm not sure why it is adding the NOT to the formula or the extra brackets...
    Any suggestions?
    Regards,
    Mike

    David,
    First off, the way I determined it was the beta dlls was that I installed CR 2008 SP3 runtimes fresh and ran my report.  I didn't experience any issues.  I then took the beta dlls and replaced the originals, rebooted and ran my report again.  The report failed to execute as I described above.  I then took my backup of the SP3 dlls and replaced the beta dlls, rebooted and tested again.  I worked fine with the original dlls. 
    The formula that I was passing into that report was a bit more complex than I first described.  I had a few other conditions in the formula that checked for a project ID.  I tested it with just the dates and there wasn't any issues (as in your example), as soon as I added additional parameters that's when the "NOT"'s were included.  Could you try your test again with a few additional parameters?  Here is an example of what I was passing into the report:
    ((({DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE}  )   AND   ( {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE})))  AND (({%PROJECT_ID}=99 OR {%PROJECT_ID}=113 OR {%PROJECT_ID}=112 OR {%PROJECT_ID}=103 OR {%PROJECT_ID}=107 OR {%PROJECT_ID}=111)))
    Mike

  • Record selector dont work for specific record selection

    Hi,
       I have a issue with the record selector in a spotlight.
    I want to select specific record, but when I select the check the record don't go in the selected record tab!
    the files dataservice.json and endecaBrowserService.json are correctly configure I think. I did compare with the Discover app. but I don't see want would be the issue! not that the dynamic record selection work correctly
    endecaBrowserService.json
        "host": "W177",
        "port": "15101",
        "recSpecProp": "Product_SKU",
        "recAggregationKey": "Endeca_Rollup_Id",
        "recFilter": "",
        "recImgUrlProp" : "URL_Thumbnail1",
        "recDisplayProps": [ "Brand","Category_EN","Product_SKU"],
        "textSearchKey": "interface_EN",
        "textSearchMatchMode" : "ALLPARTIAL"
    dataservice.json
        "jcr:primaryType": "endeca:unstructured",
        "host": "W177",
        "port": "15101",
        "recordSpecName": "Product_SKU",
        "aggregationKey": "Endeca_Rollup_Id",
        "recordFilter": "",
        "wildcardSearchEnabled": false,
        "recordNameField": "product_name_en",
        "fields": {"Brand" : "", "Category_EN":"","Product_SKU":""}
    any Idea
    thanks

    Hi TimK,
          actualy I dont have space in the record spec, but it look like this 8-474F9138-409-2. I assume that '-' wore bad character like your space.
    when I transfore the record spec to 8_474F9138_409_2. the record selector work perfectly
    thanks TimK for leading me to the solution
    good day

  • Cannot use Is Null in record selection

    I cannot use Is Null in a record selection expert.  I use the same wording in excel and SQL QA with no issues.
    I need all records that are not '5 - Project' including Nulls.  Once I put the criteria of '5 - Project' it excludes the null records.
    {@dtCompleted} = {?Completed_Date_ Range} and
    {TASKS.TYPE} = "Information Technology" and
    {TASKS.PRIORITY} <>'5 - Project'
    This does not give me the nulls for the Priority field.
    The one I use in QA or in Excel is
    {@dtCompleted} = {?Completed_Date_ Range} and
    {TASKS.TYPE} = "Information Technology" and
    ({TASKS.PRIORITY} <>'5 - Project' or {TASKS.PRIORITY} is null)
    This gives me the "The ) is missing" error.  Help!

    (isnull({TASKS.PRIORITY}) or {TASKS.PRIORITY} <>'5 - Project')
    and
    @dtCompleted} = {?Completed_Date_ Range} and
    {TASKS.TYPE} = "Information Technology";
    Make sure that under File | Report Options or under File | Options the the box next to "Convert Database Null values to default' is NOT checked.
    {TASKS.PRIORITY} NOT EQUAL TO '5 - Project'.  Use the Greater than and less than symbols.
    Edited by: Sanjay Kodidine on Feb 27, 2009 8:49 PM

  • 0 data records selected  - error while extracting rsa3-0CRM_SRV_PROCESS_H

    Hi,
    In SAP Solman-Solution manager
    rsa3 -> for data source 0CRM_SRV_PROCESS_H -> Execute
    Following error comes
    " 0 data records selected "
    Regards
    PK

    Hi,
    With SAP_ALL authorization it works.
    Then issue is related to Authorization.
    Regards
    PK

  • Opening updated report fails because record selection filter is invalid

    I am trying to update a report stored in BOE XI.  The report has been modified and the main part of the report has been moved to a subreport.   I first replace the .rpt file with the updated report.  Then I attempt to open the report using the code below it, but it throws an error and complains about an unknown field being mentioned in the filter
    oReportAppFactory = (IReportAppFactory) es.getService("", "RASReportService");
    oReportClientDocument = oReportAppFactory.openDocument((IInfoObject) oReport, 0, Locale.ENGLISH);
    ERROR MESSAGE: Cannot open report document. --- This field name is not known.
    Details: errorKind
    Error in File /opt/bobje/bobje/tmp/{F395AC11-26FC-11DF-A70C-00065B8B38B5}.rpt:
    Error in formula  <Record Selection>.
    '// Filter on desired date range
    This field name is not known.
    Details: errorKind
    If I manually delete the record selection filter in CMC before upgrading the report all works fine.  So, do I need to remove the filter before attempting to open the report or is there another step I'm missing to refresh the report using the newly updated .rpt file? 
    thanks,
    Brett

    The relevant part of the stacktrace is below.  
    java.lang.UnsupportedOperationException
            at com.crystaldecisions.sdk.properties.internal.AbstractSDKList.remove(Unknown Source)
            at java.util.AbstractList$Itr.remove(AbstractList.java:436)
            at com.crystaldecisions.sdk.plugin.desktop.common.internal.i.do(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.f(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.f(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.refreshProperties(Unknown Source)
    The context is the same as the original post...
    An existing report is being updated.  The original report uses a single view and has a record selection filter.  The updated report uses the same view in a subreport, and the main report has no record selection filter.
    .rpt file is updated using IReport.replaceUnique(int, File).  
    Changes are committed to IInfoStore -> iStore.commit(IReport)
    Refresh options are enabled
    IReportRefreshOptions refreshOptions = oReport.getReportRefreshOptions();
    refreshOptions.removeOption(IReportRefreshOptions.CeRefreshOption.TITLE);
    refreshOptions.removeOption(IReportRefreshOptions.CeRefreshOption.DESCRIPTION);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.PROMPT_VALUES);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.RECORD_SELECTION_FORMULA);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.GROUP_SELECTION_FORMULA);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.PRINTER_OPTIONS);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.DEFAULT_LOGON_INFO_VALUES);
    Properties are then refreshed using IReport.refreshProperties() which throws the UnsupportedOperationException
    changes are again committed.
    thanks,
    Brett

  • Record selected in the table control

    Hi All,
      How do i know the line no of the record selected in the table control.I have declared a table control CONTROLS : t_control1 type tableview using screen 200.But in t_control1-current_line the line no that is stored is always 1.
    Thanks,
    Rakesh.

    in table control property window you have to set that suppose you have set itab-mark as the sel field then it will always be X if you select the field ...
    regards
    shiba dutta

  • Record Selection doesn't work with VS 2005 & CR 2008

    Hi all,
    Recently I installed CR 2008 with Service Pack 1 and integrate with Visual Studio 2005. I converted all the CR reports to CR 2008 while opening the VS project which was created earlier.
    My problem is when I load the Crystal report via created application, record selection formula doesn't work instead it shows all records. But in designing time it works fine. Reports which designed with SQL Server Stored Procedure working fine. But reports which designed by adding Tables don't work. It shows all the records without record selection.
    I used simple Record selection formula without using any parameter fields. like this
    tTransactionDetails.acid} = 1
    . still it didn't work.
    When I put break point and see assigned values in Report Document object. It shows
    Function evaluation timeout
    . and then run, it do the record selection. I did this several times, all the time if I see assigned values in Report Document object then the report showed the selected records only otherwise it shows all the records.
    I tried this just running the application exe, still the problem remaining.
    I have saved the reports without the data, so that it will always load the data from the SQL database.
    Please help me to solve this problem.

    Sorry i couldn't do search before I posted the thread. After posted, I just did a search and found the solution by reading [this thread|https://forums.sdn.sap.com/click.jspa?searchID=20348355&messageID=6774564|https://forums.sdn.sap.com/click.jspa?searchID=20348355&messageID=6774564].
    As it has suggested, I just delete the existing Crystal Report Viewer Control from the form and add it again by clicking on CrystalReportViewer version 12.0.2000.0. It worked.

Maybe you are looking for

  • Wierd monitor compatibility problem

    Hi all, Got a wierd monitor compatibility problem. G3 works fine on a sony 21" CRT. Connected it to a Daytec 15" CRT which works fine with a windows 98 PC. With the G3 I get the apple and the spinning up logo then the screen just goes blank. Is this

  • Music repeats in slideshow when it's not suppose to...?

    Hi After searching the iPhoto and iDVD forums and not finding the answers to my problems, I thought I'd start anew. This will be posted in both forums. Situation: Creating slideshows with multiple songs within iPhoto, then sending it over to iDVD eit

  • On Windows XP?

    At first, I saw that 7 doesn't list Windows for an install platform. But then I looked at JES, and it includes Portal and installs on Windows. So, I installed that, and it says that it was going to be installed, and created a directory C:\Sun\PortalS

  • Buying TV shows from iTunes USA

    I live in Canada and I really want to download some shows from iTunes(USA). Am I able to do it just by using those pre-paid cards that they sell at Best Buy? Or do I have to give them a credit card number? Can someone help me??? Dubular

  • List of 3rd party hdds/ssds that do/do not work in the MacBook Pro

    Hi everyone, so after following the discussion(s) regarding the problems with hdds in the MacBook Pros after the firmware update I decided to start this thread with the hope that we can create a list of hdds/sdds that do or do not work in the MacBook