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

Similar Messages

  • Can we use is null in our select statement in ABAP program

    hi,
    I want to use 'is nul' or 'not null' in select statement of my ABAP program for any field. I have written below query but I am getting sy-subrc = 4 and getting no data. Can anyone resolve this.

    Hi,
    I think you've posted your question on the wrong forum. This is the SAP Business One development forum which is not part of ERP and doesn't include any ABAP or Netweaver programming.
    For a list of forums please see here:
    http://forums.sdn.sap.com/index.jspa
    Kind Regards,
    Owen

  • Using dynamic array as record selection criteria-performance issue

    Hi All,
    I have successfully passed an array to my subreport and using it as selection criteria. This subreport is embedded in a group and prints data recursively. Problem is the selection is happening locally which causes all the records to be brought and then filters them. Any solution/help will be greatly appreciated.
    Thanks, in advance.
    -Vishal

    Thanks Vinay. But I think I found my answer actually at the selection criteria I was creating an array from string as follows,
    stringvar array ConjugateLots = split( str, ",")
    in ConjugateLots* //this was causing the local fitration and then I switch to
    * in split( str, ",") // which worked.
    But once again thanks. But now I have another issue, I want the records to be sort in the array items. Any help with that also greatly appreciated.
    Thanks,
    -Vishal

  • Single Date Parameter, but using a date range for selection

    Post Author: fireman204
    CA Forum: Formula
    I'm fairly new to Crystal Reports, so be gentle with me.  I have a report that has 4 parameters.  The report asks for data for a specific month, the YTD data to the end of the selected month, and the same data from the previous year.  It seems there should be a way to enter a single parameter (ie., 2007-4-1), and off that date select all the data for the month, the current year to the end of that month, and then the data from the previous year for the same period.  I know this will be a formula field needed to select the data, but not sure how to get there from here.  Any ideas?  Thanks in advance!

    Post Author: SKodidine
    CA Forum: Formula
    It should be possible for you to create just one parameter to have the user input a single date and then create formulae to create the begin and end dates for the month, YTD and PYTD.  You can then use these formulae for record selection criteria.
    For example, if the user inputs a date of 2007-04-01 for the single parameter then create formulae such as:
    beginmonth
    datevar beginmonth;
    beginmonth := date(year({?My Parameter}),month({?My Parameter}),01);
    endmonth
    datevar endmonth;
    endmonth := cdLastDayOfMonth ({?My Parameter});
    To use the cdlastdayofmonth function, In the formula workshop window, click on "Repository Custom Functions" then under CRYSTAL and DATE right click on cdlastdayofmonth and click on ADD TO REPORT.  Once that is done, then create the above "endmonth" formula.  You should see this new function in your formula workshop window in the FUNCTIONS window under CUSTOM FUNCTIONS.
    beginytd
    datevar beginytd := date(year(currentdate),01,01);
    endytd
    datevar endytd;
    endytd := cdLastDayOfMonth ({?My Parameter});
    beginpytd
    datevar beginpytd := date((year(currentdate)-1),01,01);
    endpytd
    evaluateafter({@endytd});
    datevar endytd;
    datevar endpytd;
    endpytd := date(year(endytd)-1,month(endytd),day(endytd));
    In your record selection criteria, you can use the above formulae like this:
    in {@beginmonth} to {@endmonth}
    or
    in {@beginytd} to {@endytd}
    or
    in {@beginpytd} to {@endpytd};
    This is one way of doing it, perhaps others might pitch in with a more efficient way.

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables

    Dear ALL,
    My O/S is Redhatlinux 5.2 and i had Migrated my Oracle databse to 11g2. But after that while i am retrieving records through dblinks from one of my other Oracle 9.2.0.8 databse it's throwing the error : PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables.* This error i am getting in TOAD as well as SQL Developer.
    Can anybody tell me how to fix this error ? Because am not able to get the records.
    Also am getting another error during retrieving data from some of my tables after migrating i.e the table which having CLOB data type while am accessing to retrieve the records using select query it's throwing the error :
    +(The following error has occurred:+
    A query with LOB's requires OCI8 mode, but OCI7 mode is used.)
    If anyone having any idea kindly share.
    Thanks and Regards
    Biswa

    Hi,
    Ya what u sent that is fine. But already am using one procudure which is accessing LOB data from another databse through DBlink and working fine. But there Both the databse are 9.2.0.8.
    But while am executing the same procedure in oracle 11g where the Dblink accessing the data from Oracle 9i , there am getting this error.
    Kindly tell if u know any resolution.
    Thanks

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Cannot change tools and cannot use selection or crop tools

    I am using Photoshop Extended CS6.  A new problem has started to occur recently.  I can select a tool, but I can't change the tool type. For example, I can select the Lasso Tool and when I right-click the tool fly-out appears, but I cannot select a tool from the fly-out to change the tool type.  The editing tools, at least the ones I can select, still work except for the selection and crop tools.  For the crop tool, the crop lines appear at the edge of the image but they cannot be moved.  For the selection tools, nothing is selected.  I can still use menu commands such as Canvas Size.
    This happens when I open a file or start a new file.  I have Windows 7, 4G memory and nothing else running.  I have tried 32-bt and 64-bit versions.
    This has happened intermittently for a month or two.  In the past, freeing up space on a hard drive seemed to help.  But now I have 50G free on one drive and 30G free on another so I don't see how that could be the problem.  Rebooting allows me to use the crop tool once, but then the problem reoccurs.
    Ideas, anyone?

    No keyboard macro programs installed.  Microsoft Security Essentials is installed.  It says it is up to date and there are no problems.  A keyboard test program found no problems. I have tried two USB keyboards with the same results  I have 10% free on my system drive: and 15% free on my second drive.
    More clues:
    If I open Photoshop by opening a file, the problem immediately occurs. If I open Photoshop and then open a file, it works until I press a key as described above.
    The problem only occurs in Photoshop. I’ve tried lots of other programs, including Premiere, Audition and Illustrator; they all work correctly.
    The problem can occur without a keyboard attached.  As I described above, if I switch to another application (Windows Explorer in my test) and then switch back, the problem occurs.  This is true even if there is no internal keyboard and no USB keyboard.

  • Cannot use alias for dynamic column name in SELECT statement

    Hi,
    I want to retrieve values from several tables by using dynamic column & table name as below:
    DATA: tbl_name(30) TYPE c VALUE '/bic/tbi_srcsys',  " staticly initialized for this example
               col_name(30) TYPE c VALUE '/bic/bi_srcsys'.  " staticly initialized for this example
    SELECT (col_name) INTO CORRESPONDING FIELDS OF TABLE it_values FROM (tbl_name).
    The internal table "it_values" does not contain a field named "/bic/bi_srcsys", instead it has another generic field "value" so that the above code can be applied to other tables. I tried to use alias (AS) as below:
    SELECT (col_name) AS value INTO CORRESPONDING FIELDS OF TABLE it_values FROM (tbl_name).
    But this cannot work. I know that there are other ways to solve this problem, such as by using a single field in SELECT .. ENDSELECT and subsequently appending it to the work area and internal table as below:
    SELECT (col_name)  INTO (lv_value) FROM (tbl_name).
      wa_value-value = lv_value.
      APPEND wa_value TO it_values.
    ENDSELECT.
    Just wonder if there is any other more elegant workaround, because I might have several other fields instead of only one?
    Thanks.
    Regards,
    Joon Meng

    Hi Suhas,
    thanks for the quick reply.
    Sorry that I have not well described the structure of the internal table "it_values". This internal table contains several other fields (key, type, value, etc.).
    I guess that the following code
    SELECT (col_name) INTO TABLE it_values FROM (tbl_name).
    works if the internal table only has one field (value) or the field "value" is in the first position, right?
    In this case, I need to fill the "value" field of internal table it_values (ignore the other fields like type, key) with values retrieved from (col_name) of the DDIC table.
    Looking forward to your reply.
    BR,
    Joon Meng

  • Display all record in case of null parameter OR selecting "ALL"

    hi all,
    I want to show the all records in the report in case the user give empty parameter Or "ALL" from the parameter list.
    I used such the way in the query:
    select item
    from item_master
    where ITEM_ID = NVL(:P_ITEM,ITEM_ID);
    its working good but now I want to give the "ALL" in the list of parameter form. so when the user select the "ALL" then the all items to be displayed.
    thanks
    Muhammad Nadeem
    [email protected]

    Hello,
    You can use the following SQL Query :
    select item
    from item_master
    where (:P_ITEM='ALL' or ITEM_ID = NVL(:P_ITEM,ITEM_ID);)
    as long as :P_ITEM has a "type" compatible with a string ...
    Regards

  • 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

  • Create a RowCounter as cannot use rownumber as select has orderby

    Say I have a select statement
    Select employee_no,salary,dept
    order by salary
    which would give the result
    Employee_no Salary dept
    2045 1000 G
    3067 2000 A
    1089 3000 P
    i want a counter in the next column to read 1,2,3 i.e
    Employee_no Salary dept CNTR
    2045 1000 G 1
    3067 2000 A 2
    1089 3000 P 3
    I cannot use rownum beacuse once you use orderby the rownums are all mixed up
    any ideas anyone
    thanks in advance
    Cheers
    Chris

    Either
    Select employee_no,salary,dept, row_number() over (order by salary)
      from some_table
    order by salaryor
    select a.*, rownum
      from (Select employee_no,salary,dept
              from some_table
             order by salary) ashould work. I would prefer the former, but if you are using a particularly old version of Oracle, you may not have analytic functions.
    Justin

  • Fiscal week offset in crystal report record selection when using BW

    Hello:
    I have a report that is based on BEX Query.
    The data model has 52 weeks (fiscal week) worth of information.
    I would like to limit the results sets to pull back the last 12 fiscal weeks.
    Is there a way to setup in crystal record selection and "OFFSET" to evaluate on execution time?
    CR2008 SP3
    BOE XI 3.1 SP3
    SAP IK 3.1 Sp3
    BW 7.0

    Hi Dwayne,
    that is something that can be done as part of the BEx query using EXIT variables.
    Ingo

  • Shared Variable used for Subreport Record Selection

    I have a couple of shared variables created in the main report. But I get an error message "Shared Variable can only be used WhilePrintingRecords" when I try to incorporate them into the subreport's record selection formula. Any suggestions?
    Thanks,
    Art

    the report to capture the values should use
    whilepritingrecords;
    shared nubmervar x:= x + field;
    the one to display (your sub shared variables)
    whileprintingrecords;
    shared numbervar x;
    x

Maybe you are looking for

  • How to restore a 5s backup to a new iPhone 6

    I lost my 5s at the bottom of a lake. I've been limping along with a dumb phone for the few weeks before the new iPhone 6 ships. I have a backup from right before I lost the 5s. I'm planning to buy an iPhone 6 right away. My question: Since my backup

  • Bank Account Program (using netbeans)

    Can someone please help me with this program I'm trying to create, I'm new to java and am a bit stuck .. I created a BankAccount class and want the following capabilities. The bank will be charging a fee for every deposit and withdrawal. Supply a mec

  • Macbook pro water damege...

    Water damage on my mbp. Dried it the best i could. When the chargers in the orange light comes on and just stays orange and when i press the power button the sleep light flickers a little... Is it fully broken or what? Im not sure how to find out wha

  • How to avoid error while install oracle developer suite10g(forms & reports)

    hi dear all in recent times i am trying to install oracle developer suite 10g to learn forms and reports in my lap having windows 7 ultimate version ,32 bit,2.56 GB of ram .I downloaded two files ds_windows_x86_101202_disk1 and ds_window_x86_101202_d

  • Calling multiple API for AP invoices

    Hi I want to invoke the AP_INVOICES_INTERFACES AND AP_INVOICES_LINES_INTERFACE from bpel. I have coded the transformation for the header part that is ap_invoices_interfaces and have sucessfully invoked it. Now how to invoke the ap_invoices_lines_inte