Do not accept Null entry in a Query

I have this query that searches for an string within the description field and would like not to accept an empty entry, is there some code I can put to do this?
Here is the query;
SELECT T0.Comments,T0.DocNum, T0.DocDate, T1.ItemCode, T1.Dscription, T1.Quantity, T1.StockPrice FROM OPDN T0  INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry WHERE (T1.Dscription Like '%[%0] %'  OR T1.Dscription LIKE '[%0]%' OR T1.Dscription LIKE '%[%0]')

Morning M...
You could try adding another condition at the end of your query like (outside of the conditions in the parenthesis)...
T1.Dscription <> ' '
or maybe T1.Dscription > ' '
Hope that works...
Zal

Similar Messages

  • Terminal window blinking cursor will not accept keyboard entry

    Have SunBlade100 w/ Solaris8.
    This is probably a dumb beginner question...
    When I enter certain commands at the terminal window - in this particular case
    # cat /dev/cua/a
    and I hit <return> the cursor skips to the next line, and
    continues blinking , and will not accept any keyboard entries.
    1. What is the significance of this? Is the cursor waiting further action, and if so, what?
    2. How do I get back to the prompt?
    3. Under this condition, is it safe to exit the terminal window by closing from the Window menu? (I can't type "exit" because the cursor won't accept keyboard entries, and Help for "closing the terminal" warns against closing from the Window menu because any background processes will not be terminated (and this may cause problems).
    Thanks in advance for any info on this.

    Thanks again for the info. <control>+C was exactly what I was looking for. It's coming back to me now-- the last time I had contact w/ UNIX was back in '85 at UC Berkeley (no GUI's back then!).
    I'm assuming that <control>+C is a graceful (i.e. relatively harmless way to exit the command.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Using lion 10.7.4, can`t login as administrator or root (both enabled) at login screen. it shows other but when selected it will not accept correct entry.

    using lion 10.7.4, can`t login at login screen as administrator or root user, both properly enabled. the option other will not take the proper entry. it will accept the standard user login.

    Try resetting administrator password or resetting home folder ACL's for root user.

  • Aperture does not accept keyboard entry

    When I need to enter information by keyboard, Aperture does not see the letters or keys being typed.  All other applications on my iMac see the keyboard strokes with no issue.
    Never mind.  It seems to apply mainly to text entry when exporting a picture.  When you first open up the "Export" dialogue box, the text entry doesn't work.  If you click anywhere within the box and then in one of the text entry fields, it works.
    Sorry to bother everybody.
    Greg
    Message was edited by: catngreg

    I have had the same problem with Firefox in Ubuntu. However, a simple solution I use is to go to System->Preferences->Keyboard and type in some characters into the 'Type to test settings' edit box. This will bring back the ability to type characters into Firefox once again.

  • Junk Folder does not accept new entries

    I just upgraded to an Intel I MAC. The transfer of information from my old I MAC was easy but now the Junk does not work properly. When I put an email in junk it goes to the Junk folder that time but the same sender repeats on incoming mail. I tried using training but that did not help the situation.

    Ann,
    Welcome to the Discussions. What version of Mail did you use on the old iMac?
    Did you have additional Rules for Junk in use on the old Mac?
    Ernie

  • Challan Mapping - Alphabets in Cheque No -  Not accepting -Error

    Hi
    I have problem in Challan Mapping Utility (PC00_M40_CMAP) Program.  During the data entry in the field of Cheque /DD no  if we gives the cheque number  with alphabets  for eg.CK601203 the system is not accepting the entry and  giving an Error Message as Enter a numeric Value.  When ever TDS has remitted through Electronic method system will generate a number.  Alphabets prefixes the number.  This number is the substitute for the Cheque no.
    Request for the solution to the problem.  Any notes has released for this etc.
    Thanks & Regards
    EKP Yadav
    Mobile:9000184456

    Hi,
    U can just maintain the numeric no and the BSR code will determine the Bank & Branch code.
    We use to maintain the same the Numeric number only, as our client was also using electronic clearing .CK is the prefix.
    Else Pls. report this to SAP to realese a note or provide any other solution.
    Regards
    Hemant V. Mahale
    Edited by: Hemant Mahale on Mar 13, 2009 4:51 PM

  • Help help - my MacBook Air is in sleep mode and not accept my password

    My macbook air is in sleep mode now but i'm not able to open it!!
    the password dialogue would not accept any entries. It just beeped away at every key stroke but took nothing.
    I have not changed my password!

    The box just shakes when I type in the password. it doesn't give me the option to use guest login as I have changed the login setting to single user.

  • Query..for Field should not accept the manual entry

    i wann query for remarks Field in JE It should Not accept the manual entry it should accept only sys drop data.
    Thanks & Regards
    yogi

    For this field level authorization, you may only use SDK or SP to reach your goal.  SP would be difficult to use in this case.
    Thanks,
    Gordon

  • Adding a *Not* Null Entry to a Data-Bound Drop Down List

    How do I add a not null entry to a data-bound drop down list? I am supposed to have something like this:
    <html:select property="Korisnik1" >
    <html:option value="0000">
         (Not null value)
    </html:option>
    <html:option value="-1">
    (Null value)
    </html:option>
    <html:optionsCollection label="prompt" value="index" property="Korisnik1.displayData" />
    </html:select >
    In case the value 0000 is marked the value should be inserted in to the database. The code above displays the value but insert doesn't work.

    I think that in this case that article is not what's required Shay as the question related to a "No Null" entry. The answer would be to add it into the list that is used to populate the list in the first place - generally by adding a "union select from dual" to the query that generates the list values.

  • Service Entry sheet to be set as Not accepted status

    Hi
    After flagging the Transfer check box in the Settlement Tab in item details of shipment cost document(VI03), the Purchase order(ME23N) and Service entry sheet(ML81N) are automatically getting generated. PO and Service entry sheet numbers can be seen in Service Procurement tab.
    Question 1: When I separetely look into PO, I am unable trace back the flow. I mean, there is no reference  of Shipment cost number in PO.
    Question 2: I want the service entry sheet to get on hold/not accepted status so that i can add the list of services performed by the Forwarding agent / service agent mentioned in Shipment cost document.
    Question 3: I have made Release strategy for Service entry sheet which is properly working when i am accepting  the entry sheet manually. But it is not working when the shipment cost document is triggering PO and Service entry sheet automatically. Actually, It should hold the service entry sheet from not being accepted.
    Note: This subject is a mix of  Transportation (Logistics Execution) and  External Service Management (Materials management). The moderator of this forum can take a call on placement of this thread under suitable section.
    Thanks
    Maruthi Ram
    Edited by: MARUTHI RAM on May 26, 2009 9:31 PM
    Edited by: MARUTHI RAM on Jun 4, 2009 2:50 AM
    Edited by: MARUTHI RAM on Jun 5, 2009 8:29 PM

    not solved.

  • In Query mode, date items does not accepts more than 10 characters..Why?

    Dear All,
    In my form, While querying my date items, it does not accepts more than 10 Characters. Could it be changeable.
    Actually i want to search like greater than specified date( >01/01/2007 ).
    But i can specify like >01/01/07. After tabbing out from that item, it displays like >01/01/200.
    How to overcome this issue.
    Please help.
    Regards,
    Balaji

    You are absoletely correct Francois!
    Previously i have made a mistake that both of my maximum length and query length property to 20. That time it was not worked. Now i changed my maximum length to the old one like 11 and i changed only the query length to 20.
    Now it is working. I understood the concept wrongly.
    Thanks Francois!

  • Named query, primary keys must not contain null

    We have an question on the named query. Here is the scenario:
    Class JoinClassC (id, name, desc, comment) is mapped to two tables Join_Table_A (id, name, description) and Join_Table_B (id, name, comments); Join_Table_A is the primary table; two tables are associated via primary key.
    Defined a named query (findByName, ReadAllQuery/SQL) for JoinClassC descriptor. The sql is:
    SELECT a.ID,a.NAME,a.DESCRIPTION,b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME=#name AND a.ID=b.ID AND a.NAME=b.NAME
    Getting QueryException while executing the query. Here is the trace:
    [3/2/05 13:50:24:795 EST] f8b62aa SystemOut O 2005.03.02 01:50:24.795--ServerSession(738697921)--Thread[Servlet.Engine.Transports : 4,5,main]--Connection(1095574161)--SELECT a.ID,a.NAME,a.DESCRIPTION,b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME='persistence' AND a.ID=b.ID AND a.NAME=b.NAME
    2005.03.02 01:50:24.835--ClientSession(1127670417)--Thread[Servlet.Engine.Transports : 4,5,main]--Exception [TOPLINK-6044] (OracleAS TopLink - 10g (9.0.4.4) (Build 040627)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRow(
         USER04.JOIN_TABLE_B.ID =&gt; 2
         USER04.JOIN_TABLE_A.NAME =&gt; persistence
         USER04.JOIN_TABLE_A.DESCRIPTION =&gt; FJF Persistence Fram
         USER04.JOIN_TABLE_B.COMMENTS =&gt; The Persistence Fram)] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(com.ford.it.persistence.unittest.dom.JoinClassC)Local Exception Stack:
    Exception [TOPLINK-6044] (OracleAS TopLink - 10g (9.0.4.4) (Build 040627)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRow(
         USER04.JOIN_TABLE_B.ID =&gt; 2
         USER04.JOIN_TABLE_A.NAME =&gt; persistence
         USER04.JOIN_TABLE_A.DESCRIPTION =&gt; FJF Persistence Fram
         USER04.JOIN_TABLE_B.COMMENTS =&gt; The Persistence Fram)] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(com.ford.it.persistence.unittest.dom.JoinClassC)
         at oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:542)
    Adding b.ID to the sql select will solve the problem.
    Question: does the primary key must be present in the sql select to run this kind of query? Any way to work around the restriction?
    Your help would be greatly appreciated.
    Haiwei

    The problem is that you need to select both primary keys for the multiple table descriptor.
    i.e.
    SELECT a.ID,a.NAME,a.DESCRIPTION,b.ID, b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME=#name AND a.ID=b.ID AND a.NAME=b.NAME
    Your SQL needs to return the same data that TopLink would have selected, which includes the primary key for both tables. TopLink expects both a.ID and b.ID fields in the select, because your only select one and the field names are the same TopLink thought the ID field was for b.ID not a.ID, if you select both it will be ok.

  • Query not accepted by Record Group

    Hi,
    The below mentioned query is running in oracle 3.3.4.0.0.(which i'm using in my work) and toad also but in forms 5.0 it is not accepting this query.when i enter this query in existing record group then it shows the error ' error frm-12001'
    -- cannot create the rcord group (check your query).I have declared the variable in forms
    Can someone pls tell me whats wrong with this sql query ?
    Select Aim_Item_Desc.
    From Lib_Annexure_Item_Master A,DEP_STATUS_MASTER b
    Where Aim_Type_Id = (Select Atm_Type_Id
    From Lib_Annexure_Type_Master
    Where Upper(Atm_Type_Desc) = 'CONSTITUTION')
    And (Upper(Aim_Item_Desc) in('TRUST','H U F','SOCIETY','PROPRIETORSHIP')
    And :Global.Fv_C_Des_Ind='P')
    Or ( Upper(Aim_Item_Desc) in ('Public limited company','Private limited company')
    And :Global.Fv_C_Des_Ind ='Q')
    Or (Upper(Aim_Item_Desc) ='PARTNERSHIP'
    And :Global.Fv_C_Des_Ind ='R')
    Or (Upper(Aim_Item_Desc) ='Individual'
    Or :Global.Fv_C_Des_Ind ='S');

    Gowtham1232 wrote:
    Hi,
    The below mentioned query is running in oracle 3.3.4.0.0.Seriously? Is there really a computer left that can run a version of oracle that old?
    (which i'm using in my work) and toad also but in forms 5.0 it is not accepting this query.when i enter this query in existing record group then it shows the error ' error frm-12001'
    As it's forms you may want to ask in the forms forum.

  • Google doea not accept a new entry - I have to reopen it in a new tab. Otherwise it just repeats the last entry

    I am using using XP SP3
    G
    oogle doea not accept a new query - I have to reopen it in a new tab. Otherwise it just repeats the last query.

    What model MBP do you have? What OS are you trying to install? And, from where?

  • Iphone 5s calendar not accept entries after ios 7.1 update

    after ios 7.1 update the iphone 5s calendar not accept entries but will accept entries from sync with outlook connection via my MS desktop outlook

    So, sometimes you discover a "fix" totally by accident. I tried the following and it's worked for me 100% of the time so far. Any entries I make using this have appearded on my iPhone and on any device where I view my calendar. Hope this helps others: 
    Open your calendar and then view it in the "month view";
    Tap the hybrid view icon which is at the top to the left of the search icon at the top right of the screen; you'l see a list of the days activities at the the bottom of the screen.
    Now, tap the "+" icon at the top to the right of the search icon. This will allow you to type in the event, time, date, etc that you want to enter.
    Click "done" at the top right when finished. Now, you should see the event that you just entered at the bottom of the screen under the days activities. That should "stick" even if you close the calendar, or whatever. When I checked, it also showed up as it should on other devices. You can edit events, delete them, etc--it's worked for me.
    I'm not sure why this worked--or what it's the only way to be able to enter an event since the move to iOS 7.1--but it's working for me--so why ask why??

Maybe you are looking for

  • How to download the script data into pdf file

    how to download the script data into pdf file i have one option to download the script data to pdf file --->rstxpdft4 program. i have one doubt how to use this proogram.or any function module to download the script data to pdf file. Thanks and regard

  • How to unzip gz (gunzip ) file

    Hi Everybody,                          can anybody please tell me how to unzip file with gz (gunzip) extension.I have tried to unarchive by using powerarchive and unzip tools.I even tried gzip tool. Please help me . S. Singh

  • Very loud fan sound, can't get video, system still running...help?

    I can't seem to find an answer to this anywhere here or throughout google. Can't find a similar problem. We have a G4 tower here at work that we run FileMaker server on. It pretty much just sits there and we all connect to it remotely and use the Fil

  • Permanent humming noise on PowerBook aluminum 15

    since a few days my PB has a permanet high pitch humming noise. It is relatively high frequency noise (a bot like that of a mosquito or a fly, or one of those electric vibration noises... Can anybody help. It is so annoying, it makes it difficult to

  • ChaRM: Release transport Error

    Hi Team, I have configured ChaRM in my Sol Man system (EHP1, SP24). When i try to release the transport request in Sol Man, i ma getting below error: Error RFC destination SM_GDDCLNT300_TMW: Screen output without connection to user. In SM59, both con