How to use Not Null in

Hi All,
I did one personalization which is related to DFF of an Item.
It is working partially but i need the perfect solution will u please resolve my doubts.
My requirement is as follows:
I have one DFF in Items page say attribute1 which has a maximum of 3 values i.e., 'A' or 'B' or 'C'
In my Purchase order Auto create form, when an select an requisition, the related lines are displayed for me.
When i select an line and if the line has an item which has an attribute values of either 'A' or 'B' or 'C'.
Then i need to display an error message.
For this I do the following steps.
In conditions tab i wrote the following condiitons:
Not Null IN ( SELECT attribute1 FROM mtl_system_items_b where segment1= :REQ_LINES.ITEM_NUMBER AND organization_id=FND_PROFILE.VALUE('ORG_ID'))
But my condition evaluates to false, even though i have values in attribute1---------------------- My question is will the above query is right or not. if not will u please provide me the correct syntax of how to use not null.
'A' IN ( SELECT attribute1 FROM mtl_system_items_b where segment1= :REQ_LINES.ITEM_NUMBER AND organization_id=FND_PROFILE.VALUE('ORG_ID'))
The above query is working fine. Please help me on this issue.
Thanks and Regards
Zaheer

Dear Zaheer,
you compare the organization with Operating unit, Please use
fnd_profile.value('MFG_ORGANIZATION_ID') inspite of org_id.
Tariq.

Similar Messages

  • How to use "Notes" on my iPad with my existing iCloud address?

    How to use "Notes" on my iPad with my existing iCloud address? It asks me to create a new one...

    Did I overlook some critical info here? I'm having the same problem described by Henry5, but I'm signed in to iCloud with my AppleID which is not the same as my Mobile Me/iCloud email. I keep being asked to create an account (which it won't allow me to do since the account already exists) but no where do I see an option to use the existing account. I also tried logging out with my AppleID account, and using the iCloud email, but that doesn't work.
    I just want to sync my notes and mail... this is really irritating!

  • How to give not null value in a rule for a field

    hi,
    i want to create a rule through rule designer where i want a field say "country" should not be left blank. when i go to the rule designer and select country through attribute value i get 2 conditions "=" and "!=" what shoud i give the value as so that the country field is not null.
    TIA

    I don't think you can have null value in the rule designer , rather you can created one more UDF and populate this UDF with something based on the nulllness/not-null of the country field and use this new UDF in the rule .
    Hope this helps .
    Thanks
    Suren

  • How to use  'is null' in select statement of 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.
    SELECT * FROM mara INTO TABLE it_mara
          WHERE volum IS NULL .
    Can anyone resolve this.

    Hi PKB,
    Check the below thread for NULL and Space value in ABAP . It will help you
    NULL and Space value in ABAP
    Regards,
    Pawan

  • How to use Notes in Mail?

    .. e.g.
    1. Where are Notes saved on a MacBook after File > New Note ... write note ... File > Save?
    2. Can you write a Note in OS X Lion Mail / MacBook, and end up with it in Notes on an iPad/iPhone?
    The above covers it, the rest is a rant.
    First, when apps have generic names like Mail or Notes, it makes it difficult to search for anything useful about them .. got to live with this. I have a cold too .. got to live with that, but I mention it as I feel under the weather and am getting fed up trying to do something simple and having to trawl the Support Community and Web with searches about Notes in Mail, just to find out how I should make effective use of Notes in OS X Lion Mail.
    My question is in the heading. We all create Notes on our iPhone or iPad etc., and either end up with them in the Mail app on our Mac(Book) using IMAP or are using iCloud and can interact with the Notes there. However, I thought I'd try creating a new Note in the Mail app on my MacBook and push it the other way, to my iPad, or whatever. Although I'm using iCloud, my current set up uses IMAP to move my Notes around so forget iCloud for a minute. Great news in Mail, using File > New Note, was that the Note can have attachments, and if you attach a GIF say, you get the image in the Note - maybe everyone knows this and I'm the idiot.
    So, I create a Note with attachments and just want to save it so it will end up on my iPad etc. .. File > Save is available, simple. However, where is the Note saved? It looks a lot to me like it's not saved anywhere and if you close it, have fun trying to find it again.
    My research found a thread talking about making Notes searchable again by running the following Terminal command: mdimport ~/Library/Mail, but I really am not in the mood to press every button when all I am trying to do is basic functionality that I would expect to find in the "OS X Lion Applications User Guide" that other research here tells me doesn't exist (happy to be wrong).
    Sorry to go on but it is mildly theraputic. Back to where the Note is saved, I did find that if you hit Send on the Note and then hit File > Save, you do get a copy of your draft email with No Recipients etc., in Drafts. However, it's an email with a Note in it, not a Note as found under Reminders > Notes, that you get when syncing a Note from your iPhone/iPad - it's also not going to end up in Notes on the iPad. Hmmm, another way to put these questions is: How do you write a Note on your Mac and end up with it in Notes on your iPhone/iPad? This cold must be really bad because this has to be such a dumb question.

    I had the same issue. I found the answer on another thread written by an user named "hhoeksma". Here's what he/she wrote:
    "You may be able to retrieve your Notes. They are probably in your Home folder under Library/Mail/V2/Mailboxes/Notes.mbox. You should make a copy of this folder and save it elsewhere; then look through the folders within this mailbox for files with a .emlx suffix. These files are your actual notes. If you open them they will open in mail and look like messages. You can then copy the contents elsewhere.
    If your Library folder is not visible, go to the Finder, hold down the option key and select the Go menu--it will appear in the list.
    I still do not have a way to synchronize (without iCloud) the Notes on my iPhone with those on my Mac, but at least I have the Notes accessible on my Mac."
    hope it works for you too.

  • How to use not equal to in read

    Hi experts ,
    I have a read statement in which i am reading status internal table.
    read table it_jest into wa_jest where inact ne 'X'
    this inact ne 'X' is giving me an syntax error
    i tried
    inact eq ''
    inact eq ' '
    inact eq space'
    but nthng worked
    please guide me how i can write this code.

    Hi Abhinav Shahi,
    I think You can use only = in READ statement.. can't use NE with READ
    read table it_jest into wa_jest with key inact = ' '.
    Change Where to with key..
    also try with condition below
    inact is initial
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How to use not less than or equal to in condition

    I written a querry based on the below condition in sql querry
    b.key <= a.key
    Based on this it will return records.
    I need remaining records that not satisfy the above condition.
    That means not less than or equal to records...

    937506 wrote:
    I written a querry based on the below condition in sql querry
    b.key <= a.key
    Based on this it will return records.
    I need remaining records that not satisfy the above condition.
    That means not less than or equal to records...you mean
    b.key > a.key?

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to use constructor to create a null object?

    I am trying to extend java.sql.Timestamp class. However, I am not sure what to do with a null Timestamp object. The constructor of Timestamp always creates a valid Timestamp object. Anyone have any idea how to create a null object using constructor? Thanks.
    Julia

    when you create an object i.e., instantiate an object there are three steps that are followed behind the scene.
    1) Assign memory
    2) Allocate a reference
    3) constructor is called.
    Now there is no such thing as a null object as has been pointed out however in case you mean you just want to assign a null reference to a variable then you are not instantiating an object and not calling a constructor but you could simply do
    String sqlQuery = null;But keep in mind that the object has not been instantiated and neither initialized here. Constructors basically do the initialization.

  • How to combine two conditions :  Exists and Item not null ?

    Hello !
    I have a flash chart region that I would like to display only if two conditions are both true.
    The first condition is this one :
    Exists (SQL query returns at least one row) :
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')And the second condition would be :
    Item not null :
    P23_ACTIVITES_IDHow to combine these two conditions into one display condition ?
    Thank you .
    Christian

    Hello,
    The issue is that you're doing -
    TO_NUMBER(:P23_ACTIVITES_ID)When you leave the Null return value blank like that, you'll typically see '%null%' used in session state (i.e. it's not actually null). Obviously '%null%' can't be converted to a number, hence the error you're seeing.
    A simple solution would be to make your null return value -1 or some other value that is guaranteed not to be a valid id (and alternative is to convert the %null% to a real null via an App/Page process etc (if you search this forum you'll find a few examples on how to do that). Another alternative is to use a DECODE to detect the '%null%' etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    Did you try to open teh fle by double-clicking its icon? If the file was made with an older version of Office, you may get that message. Try opeing PP and, from its "File" menu, see if you can open the ppt. I've foundthat often gets around that message and then yo ucan save the file from the newer version.
    If that doesn't work, consider asking in the Microsoft Office: Mac forums here:
    Office for Mac forums
    PowerPoint is not an Apple product and it seems a lot of people around here avoid Office.

  • Oracle BPEL - Does not cater for not null columns and use of "default".

    Oracle BPEL - Does not cater for not null columns and use of "default".
    BPEL fails with message:
    ORA-01400: cannot insert NULL into ("EDDB"."SEISMIC_LINES"."COORD_SYSTEM_ID")
    But SQL*PLUS command works:
    INSERT into EDDB.SEISMIC_LINES
    (etc)
    regards
    Allan Ford
    Analyst / Programmer - IT Application Services, IT Services, Shared Business Services
    Santos Ltd
    Level 4, 91 King William Street, Adelaide SA 5000
    Phone: 08 8224 7944 Fax: 08 8218 5320
    Email: [email protected]

    note: BPEL keeps it's own "offline" copy of table and database items. A column that is marked not null in the database can be marked as nullable in this area. (if you kmow that a trigger is going to cater for this ..)
    One workaround is to use a trigger to provide value rather than use the column default ..

  • How To know Which Columns are not null and Which are null

    Hi Freinds,
    I want to Know ,How by Wrting a Query we can get the Names of The Columns from the Table which is set to not-null or null,
    Thanks
    Shoaib

    SELECT * FROM user_tab_columns
    WHERE table_name='Your_Table_Name'Check NULLABLE column.

  • MySQL using Is Null and Is Not Null

    Hi
    I am using mySQL and PHP to design a web site. On one of the
    pages I want to able to display a list of records based on a date
    field either having a date inputted or not having a date inputted.
    I want the user to be able to select these options on the page via
    a list box as below
    Label Value
    Open Is Null
    Closed Is Not Null
    However I can not seem to get this to work (sql below), is
    the syntax correct and should it be a GET or POST variable eg
    $_POST['ListBox']. Hope this makes sense.
    SELECT *
    FROM tbltable
    WHERE datefield variable
    Thanks

    Change the order of your conditions
    SELECT name,
           lname,
           CASE WHEN creditcard IS NULL AND credit_used IS NULL THEN
             'Sell both'
           WHEN creditcard IS NULL THEN
             'Sell Card'
           WHEN credit_used IS NULL THEN
             'Sell Credit'
           ELSE
             'No Action'
           END "Action"
      FROM customers;

Maybe you are looking for

  • Access to serial and ethernet port in FPGA for cRIO-9068

    hi i want to know if i can Access to serial and ethernet port in FPGA for cRIO-9068 like camera IP thanks for help

  • Macbook Pro OSX 10.7.2 and Oxygen61 Midi Controller Keyboard

    Question 1.  I thought this midi device (M-Audio Oxygen61 USB Midi Controller  was "Plug & Play"?  It does play but none of the keyboard's slides or knobs have any effect on adjusting anything,  I have attempted to "Download the Drivers" from the M-A

  • 30 fps to 25 fps

    Does anyone know what settings in PPCS4 would give smooth playback when converting 30 fps footage (from Canon 5D MK II) to 25 fps? Every setting I've tried gives jerky output. I also tried the ConvertXtoDVD program, and it works beautifully out of th

  • ERROR: subscription expired but didn't,  did it? ... WTF?!

    Hello Adobe Support Team When trying to start Photoshop CC a error message pops up telling me that theres a problem with my subscription / account so I cannot longer use photoshop cc. I need to do some stuff today/tomorrow. So F*CK!  ( did he just wr

  • Encryption and NTFS on Macbook Pro

    Hi, I intend to change across to Macbook Pro later this year and I have a couple of questions abot using MBP to run XP Pro SP2 + Apps. Can anyone help please? First, I have some good Windows XP encryption software (CRYPTAINER 6)that runs on NTFS form