Case sensitive field in to_date function

update "Ab_Order" set "OrderDate" = to_date("Order Date String", 'yyyy/mm/dd)
Here the OrderDate column is of type Date
"Order Date String" is varchar2. Iam trying to copy the data from "Order Date String" which contains data in this format '2011/04/24' to OrderDate column to perform some date functions
when I try to run this query it gives a error: ORA-01830: date format picture ends before converting entire input string
So I tried to run this query by creating a test table wit 2 columns : update testtable set column1 = to_date(field1, 'yyyy/mm/dd')
where column1 is date field and field1 is varchar2 and this worked.
So Iam assuming this is the problem with case sensitive fieldnames . As far as i know we should include case sensitive fields in double quotes. Is there anything else to do wit the to_Date function. Can anyone please let me know how to do that.

Hi,
Welcome the the forum!
882431 wrote:
update "Ab_Order" set "OrderDate" = to_date("Order Date String", 'yyyy/mm/dd)It looks like you're missing a single-quote right before the last ')'.
Here the OrderDate column is of type Date
"Order Date String" is varchar2. Iam trying to copy the data from "Order Date String" which contains data in this format '2011/04/24' to OrderDate column to perform some date functions
when I try to run this query it gives a error: ORA-01830: date format picture ends before converting entire input stringThat error occurs when when you have characters in the 1st argument that do not correspond to anything in the 2nd argument. For example:
TO_DATE ( '30-Aug-2011 12:00'
     , 'dd-Mon-yyyy'
     )In this example, TO_DATE doesn;t know what to do with the ' 12:00' at the end of the 1st argument. According to the 2nd arguemnt, there's only supposed to be 11 characters in the string. So it raises the ORA-01830 error.
So I tried to run this query by creating a test table wit 2 columns : update testtable set column1 = to_date(field1, 'yyyy/mm/dd')
where column1 is date field and field1 is varchar2 and this worked.
So Iam assuming this is the problem with case sensitive fieldnames . As far as i know we should include case sensitive fields in double quotes. Is there anything else to do wit the to_Date function. Can anyone please let me know how to do that.Case sensitive column names are a bad idea because they cause so amny problems, but I don't think this is one of those problems. It's more likely that you need to use SUBSTR (or some other string manipulation function) on "Order Date String" before using it in TO_DATE.
Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables, so people can re-create the problem and test their ideas.
Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
Always say which version of Oracle you're using.

Similar Messages

  • Making search non case sensitive

    Hi,
    I have implemented a search help which I have copied from standard help ‘PREM’. I have created a Database view, taking that View I have created an Elementary search help and I have assign the elementary search help in the collective search help ‘ZPREM’ which is copied from ‘PREM’.  In the search help I have two fields (NACHN, VORNA), which are case sensitive fields.
    How to make it Non Case Sensitive?
    Regards,
    Jitendra

    Hi ,
    without checking  "Lower Case" ,  any  case(upper/lower)  u are entering will be  converted to upper case internally and the respective data will be displayed .
    With checking the lower case check box in domain  , u will get the  exact  case  data  in which u have entered .
    but if ur requirement  is like ,   if u enter   a*  in VORNA  FIELD  and it should display
    a*
    A*     - ie. all the names starting with the both 'a'  or  'A'   ,   then
    You can go for Search Help Exit . Inside the function module catch the  entered  name and select  required records from DB as per ur requirement and insert  result  into  RECORD_TAB[]  internal table  , having  standard search help result  list .
    Regards
    DJ

  • Acrobat Reader 8, problems on case-sensitive HFS+

    Hi,
    I hope this is the right forum. I have formatted my Macbook to use case-sensitive HFS+ volumes, because I regularly use Unix programs (many of which have a built-in assumption that file names are case-sensitive) and now some functions of Adobe Acrobat Reader 8 don't work properly (e.g. printing and Updater). Since above formatting is the only change from my older installation, I assume it's because of the different HFS+ format. So I propose you test Adobe Reader on a Mac with case-sensitive volumes sometime.
    Regards, Thomas Jahns

    This forum is for FULL Acrobat - Reader forum is
    http://www.adobeforums.com/webx?13@@.3bbf42f7

  • Installation of Photoshop CS6 (Extended) on Case-Sensitive Drives

    I understand that under the "system requirements" the Adobe website says that you can't install PS CS6 (Extended) on case-sensitive drives (I'm using a MacBook Pro, OS X v. 10.7.4).  This seems to have been the case at least since CS5.
    I didn't see this, and I bought (quite excitedly) the update from CS PS5 (Extended) to PS6.  I had NO PROBLEM installing PS5 on this drive. 
    Of course, as other users have indicated, the installer refuses to let you install on a case-sensitive drive (e.g., no options to install on another disk).  There is also no mention that CS6 must be installed on the boot drive.
    Requiring installation on the boot drive has serious implications for those of us who require case-sensitive drives for other work; I don't want to have to reboot from another drive when I use PS, and switch back and forth -- that's simply foolish.
    From my point of view (as a user, granted), this is lazy programming, and this needs to be fixed ASAP.  At least in my case, I have a $400 lump of software just taking up space, when I want to be up to my eyeballs enjoying PS6 in all it's glory.
    Outside an Adobe fix, I don't see a solution to this problem.  If I wipe my drive, format it as not case-sensitive, then I lose functionality for other critical work.  Further, I'm not sure that the process of  wiping the drive, formating it as non case-sensitive, and restoring everything from TimeMachine would even work (since the backup material is coming from a case-senstive drive and trying to go to a drive that is not case-sensitive).
    The REALLY frustrating part is that I've installed Photoshop 3, 4, and 5 (and from much, much further back) on case-sensitive disks -- all with no problems.  It's only now that the issue smacks me in the face.
    There's got to be a work-around, if not a "real" solution.
    Whatever help you might be able to offer would be greatly appreciated; details can be sent to cdretk at gmail dot com.
    I have hope, and I thank you in advance.

    Whether it is Apple or Adobe's work flow isn't the issue.  Between the two
    of them, if they are going to support both naming variants, then at both
    Adobe and Apple:
    1.  You MUST use the same case file names.  (E.g. FrameWorks and not
    Frameworks) EVERY time.  And refer to them in your programs and
    configuration files the same way EVERY time.
    2.  You may NOT in your development code use different but case invariant
    file names for different files.
    3.  Your libraries must do the Right Thing.
    What gets me is that few others seem to have this problem.  Perhaps Adobe
    needs to abandon Apple development software, and roll their own outside the
    standard system libaries.
    Further searching shows that it is not a problem unique to Adobe.  The
    games BeJeweled, and BZFlag have this issue, as does the Steam game support
    systems.
    In every case I've run down to date, it has been a violation of #1.
    Now there are workarounds:  A script that creates appropriate symlinks on
    case sensitive file systems would be fairly easy.   It would impose some
    minor amount of extra overhead.
    I bought a copy of Adobe Creative Suite.  I returned it unopened.  You lost
    a sale.  Furthermore, until it is fixed, I will mention this at every
    opportuity as an exampled of a combination of sloppy workmanship, and
    customer indifference on the part of Adobe.
    Tell your bosses, Chris, they need to fix this.
    Respectfully,
    Sherwood of Sherwood's Forests

  • Mac OS Extended (Journaled) Case sensitive

    Hi.
    What is the difference between *Mac OS Extended (Journaled)* and the same format +*'case sensitive'*+ please?
    Is there a recommended link I may follow to find the answer?
    Thank you in anticipation.

    In other words, if I reformatted, say, my external HDD as 'case sensitive' what difference in functionality would I notice (if anything)?
    Having it on provides the ability to store items in the same folder with names that differ only in letter capitalization. Some applications may not work correctly with a disk in that format.
    (40369)

  • Oracle date field not comparing properly with to_date function

    Hi, i'm facing a very weird problem. I'm triyng to retrieve a range of records in between two dates. However, it doesn't seem to understand. What am i doing wrong?
    let's say my table (MYRECORD) has this (where id is varchar and date is DATE and not timestamp) :
    ID DATE
    1 22-JAN-08
    2 22-JAN-08
    3 21-JAN-10
    4 11-FEB-10
    5 11-FEB-10
    So, let's say iwanna get the records from 21st Jan 2010 :
    select
    date as ori_date from MYRECORD where
    date = to_date('21/01/2010','DD/MM/YYYY')
    1.)
    it is not returning any record at all. I'm having problems with between dates and the to_date function as well,
    so i'm trying to get the 'equal' part working first. I can't use to_char because at the end of the day,
    i need to compare between dates.
    what am i doing wrong? has this got anything to do with what kind of format is set up on the oracle server?
    running :
    SELECT value FROM v$nls_parameters WHERE parameter ='NLS_DATE_FORMAT'
    returns DD-MON-RR
    2.) how do we compare dates from the table according to our own specified format from our passed string? I only have READONLY access to this database
    so i can't set anything up.

    please run this
    select To_date(date, 'DD/MM/YYYY HH24:MI:SS') as ori_date from MYRECORDprobably you have hour minute second info in your table, to_date('01012010','DDMMYYYY') means hour, minute and second is 00:00:00 so it wont be equal.The database field type is actually 'DATE' and not datetime. I've also ran the sql you provided to show its timestamp, but it's not showing anything as far as timestamp is concerned. It's showing only the date. So does this mean it's a real date only information?
    However, it might be more efficient to do two comparisons, especially if there's an index on dt:
    WHERE   dt >= TO_DATE ('21/01/2010', 'DD/MM/YYYY')
    AND     dt <  TO_DATE ('22/01/2010', 'DD/MM/YYYY')
    Ok. If we change the range to compare it on the same day, it won't work;
    WHERE   dt >= TO_DATE ('21/01/2010', 'DD/MM/YYYY')
    AND     dt <=  TO_DATE ('21/01/2010', 'DD/MM/YYYY')this also happens if we're using BETWEEN
    this is real weird. It's supposed to work...i don't recall having this kind of issue on other databases. If that's the case,
    each time a user passes me a date string i have to somehow add another day onto its 'to' comparison date in order for things to work.
    but..i don't want to since i don't want to accidentally include the extra day's results!
    Edited by: 803998 on Oct 21, 2010 8:14 PM
    Edited by: 803998 on Oct 21, 2010 8:33 PM

  • Are idoc fields case sensitive?

    Hello, there has been an error during idoc processing. The trading partner field was filled in lowercase and this is bringing me error      Message no. FB279  ' Company dp0017 is not defined'. The other idocs had DP0017 filled in and were processed fine.
    Any input on this? thx.
    Edited by: Antish  Awootar on Jun 7, 2011 8:02 AM

    Hi Antish,
    It actually depends on the value that is stored in the IDOC, if the IDOC has company code in lower case then that is exactly how it will be used in the program for all purpose and no automatic conversion is applied. The below message is thrown in the FM - FI_COMPANY_CHECK This FM will look up the table T880 - If you check the entry in this table will be DP0017 and not dp0017. Hence it is throwing the error message.
    If your question is it works fine when i try in SE37 with the FM "FI_COMPANY_CHECK" or if i input "dp0017" in  WE19 or in SE11 against T880, then the reason for that is a conversion is applied automatically and it is changed to DP0017.
    To answer your question "Are idoc fields case sensitive?", it depends on the context, does it retain the case when it is filled in, yes it does.
    Regards,
    Chen
    Edited by: Chen K V on Jun 7, 2011 4:10 PM

  • SOAPAction Header field case sensitive

    Hi gurus,
    I am trying to consume a webmethods java webservice via XI/PI NW2004 and when I send a request, PI send the soapaction field in uppercase.
    POST http://webservices.kuehne-nagel.com/HelloWorld_test HTTP/1.0
    Accept: /
    Host: https://webservices.kuehne-nagel.com/HelloWorld_test
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: <soap-4C4DF1260912013BE10080009E344EB9sap.com>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 316
    SOAPACTION: "http://webservices.kuehne-nagel.com/helloWorld/hello"
    It should be like SOAPAction : "http://webservices.kuehne-nagel.com/helloWorld/hello"
    How can I set/change it on XI/PI ?
    Regards,
    Rodolfo Miã

    Gourav,
    This is W3 Standard:
    HTTP verbs are case sensitive. (http://www.w3.org/TR/wsdl)
    In my case, the webservice provider was implemented in JAVA code and in Linux server. Java and Linux are case sensitive.
    I agree with you if we are working with .NET implementation.
    I  already have tried to consume a .Net asmx webservice and works fine.

  • Change Case-sensitivity of field ASKTX in Search Help ASMD

    Hi experts,
    In Collective Search help ASMD, there is a elementory search help /SAPBOQ/ASMD_MITEM where field ASKTX is Case sensitive.
    How can I remove the case-sensitivity of this field ?
    Thnks in advance,
    Goutam

    owngoal wrote:
    You say your "backups still turn up corrupted now and then" - how do you know? Is it only when you try to access them that you will know this?
    Sometimes a backup will fail, sometimes you can't access them, sometimes you'll get this message:
    See #C13 in Time Machine - Troubleshooting for details.
    And by this stage is it too late to recover anything?
    Sometimes.    Sometimes they can be repaired by Disk Utility.  Sometimes only a heavy-duty 3rd-party disk repair app like DiskWarrior ($100) can fix them.  Sometimes nothing can.  Sometimes you can restore some individual items, sometimes not.  Sometimes you can do a full system restore from some backups, other times not.
    does it help that I am using a Gigabit WIRED connection between iMac - 10/100/1000 switch - Airport Extreme Base Station?
    Probably -- you won't have WIFI interference.
    But if you have an iMac, why not just connect the external HD directly to your Mac?  That's much faster and more reliable (and supported).
    You'd need to erase the disk in that case, since Time Machine won't bother with a sparse bundle at all on a direct backup.  Just format the disk as GUID, with Mac OS Extended (Journaled) and let 'er rip!

  • ALV grid case-sensitive edit field

    Hello,
    i've a editable field on a alv grid.
    The field is case-sensitive in the domain.
    But when i enter a field an click rturn, the letters get uppercase.
    What's the problem?
    Best regards,
    TomSd

    Hi,
    Add the attribute  lowercase = 'X'  while preapring field catalog for this field.
    Regards,
    Gopi.
    Reward points if helpfull.

  • Case sensitive in Function Module

    Hi experts,
    we created  the custom table  and maintaining the data.we saved the data with key as case sensitive which we selected at domain level .we created custom function module in that we have written SELECT statement with where clause .when we are testing the function module in SE37 ,if i enter lower case value in the exporting parameters and  after executing the F.M the input values are changing into upper case. so i am getting wrong data.please help me.

    Hi Vinod,
    I have given interface import parameter reference Z-data element which is already used in the Z-table.For example In the FM
    iv_name type zz_name.
    zz_name is a data element and ZZ_NAME1 is domain name and where i selected the check box as lower case and upper case.
    Please any one help me.

  • Calling a function module in Case Sensitive mode

    Hi,
    How to call a FM from a report so that the values that character values that are passed to FM are NOT automatically converted to Upper case instead the entries are case sensitive.
    Like when we execute the FM from SE37 There is a checkbox
    Uppercase/Lowercase  at   Test Function Module: Initial Screen.
    Thanks,
    Anubhav
    Sorry If this is a basic question, I searched but could not find relevant thread.

    You don't need any additional coding for this. If you pass a case senistive text to a FM (in a report) the text remains case-sensitive.
    The "Uppercase/Lowercase" checkbox is applicable for direct testing via SE37.

  • How do I make the my login page username field not case-sensitive?

    Can anyone tell me how to make my username field not case-sensitive?
    This is my code
    <html>
    <body>
    <%@ page import="java.sql.*" %>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection login = DriverManager.getConnection("jdbc:odbc:Testing","abc","abc");
    Statement stmtLogin = login.createStatement();
    String sqlLogin = "SELECT UserName, UserPassword FROM Users WHERE UserName='"+username+"'";
    ResultSet rsLogin = stmtLogin.executeQuery(sqlLogin);
    while(rsLogin.next())
    String suser = rsLogin.getString("UserName");
    String spass = rsLogin.getString("UserPassword");
    if(username.equals(suser) && password.equals(spass))
    HttpSession mysession = request.getSession(true);
    mysession.setAttribute("username",request.getParameter("username"));
    response.sendRedirect("hello.jsp");
    else if(!(username.equals(suser) && password.equals(spass)))
    response.sendRedirect("index.jsp?message=Invalid%20Username%20or%20Password");
    login.close();
    %>
    </body>
    </html>

    if(username.equalsIgnoreCase(suser) && password.equals(spass))Hope this helps!

  • Onetime vendor-will the sensitive field functionality work

    In case of Onetime vendor,even though sensitive fields are defined will it not ask for confirmation on changing the bank adress during  the invoice.

    Define Sensitive Fields for Dual Control (Vendors)
    in tcode SPRO:
    BSEC-BANKS
    BSEC-BANKL
    BSEC-BANKN
    A.

  • Case sensitivity for text fields

    Does anyone know how to turn off case sensitivity for a text field??
    Your help is appreciated.

    Do you recommend another field type that can be used that does not use case sensitivity?
    Thank you

Maybe you are looking for

  • Use of field exit for validation of KNTTP in ME51N

    Hi All, I've a client who is still running on SAP 4.6C.  There is a requirement to validate the Account Assignment Field KNTTP based on the document type, and if the validation fails, to raise an error message.  As there is no standard user exit that

  • Integrating WCS 7.0 with ACS 5.1

    Has anybody got any experience with trying the config as depicted in the WCS 7 config guide? I have tried today to integrate WCS 7 with ACS 5.1 and got a partial success.  I have created a unique Shell Profile that invokes for the WCS only which cont

  • Remote Connection to CRM database possible?

    Hi folks,   I normally connect to MySQL databases remotely to build and construct fields, etc.   Is such a thing possible for BC?   Perhaps that is forbidden for safety's sake.  

  • No 2 way connection between printer and computer HELP HELP going nuts!!!

    On the hp website in downloads for hp officejet 6500 series for windows 7 is "additional information' for installing that particular printer for that windows 7, now under  "printer setup not complete" it says how to bypass the problem I have though t

  • KEYNOTE on YOSMITE(10.10.10) not opening some files

    An important KEYNOTE presentation I created 2 months ago on Yosemite Keynote, now won't open.  Nor will its back up files.  They were saved on my company's WIN based system.  KEYNOTES made with older software and opened on my older MBP i5 work fine.