Error i date format

Hi,
In my procedure i am using cursor in which i am using the date format TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi').
the default date format is 5/20/0010 12:00:00.000 AM.
when i am using the TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi') in individual select statement it is working fine but when i am running the procedure giving me invalid month error.
Please help me regarding this.
Thanks in advance.
Regards,
Sruthi.

I really suspect if thats the one causing the error. I tried this
alter session set nls_date_format = 'mm/dd/yyyy hh24:mi:ss'
create or replace procedure p
as
  cursor c is
  select TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi')
    from dual;
begin
  open c;
  close c;
end;
begin
  p;
end;
/And it woks properly for me. So just check if you are looking at the wrong place.

Similar Messages

  • Error in date format returned in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi Viji and thanks for your answer!
    I checked checked user default settings and we have the same date format as anther user who is working ok.
    Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
    Any other idea on this?
    Thanks!

  • Error in date format when  I load a CSV file

    I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
    When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
    I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
    I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
    Sincerely,
    Polonio

    See Re: Get error in date when I load a CSV file

  • JDBC Error with DATE format

    Hello,
    we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
    Also in response status we get the error "ORA-00917: missing comma ".  So plz let me know how to solve this issue.
    Thanks in Advance.

    Hi
    The date format for oracle is dd-MON-yyyy.
    Please refer to blog below
    /people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
    /people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
    Regards,
    Deepak.
    Edited by: Deepak  Shah on May 21, 2010 3:35 PM

  • Date Parameters and List of Values (error message date format cannot be nul

    I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
    select customer_nbr
    from ticket
    where center_cd = :center
    and trunc(trans_date) = :salesDate
    salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
    When I attempt to view my report after adding the LOV, I receive the error:
    Date format can not be null.
    What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate.

    "Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
    Page 4-9, Adding Parameters and Lists of Values
    Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01

  • Oracle Error 1801 - "Date format is too large for internal format"

    We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
    type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be?

    We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
    type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be?

  • Error 10000 Date format issue

    Hi all,
    Has anyone seen the following error please or has a troubleshooting hint: -
    "[NT AUTHORITY\SYSTEM (15/10/2012 18:35:12) - Service request cancelled due to an error.
    Error Code: 10000
    Error Description: Failed to create lease requisition.
    Fault code: soap:Server
    Fault string: Service Form Field: 'WarningDate2' has Date format issue.
    Fault details: REQ_0024Service Form Field: 'WarningDate2' has Date format issue.
    CIAC = 3.01
    Date and Time format on the CCP, CPO, vmware and SQL servers all Italian (dd/mm/yy)
    This only happens when we add a Lease Time on the request.
    Do they all have to be set to the US format for this to work?
    If this is a regional setting thing, do I have to change the format on all of the servers (CIAC components)?
    Cheers
    md

    This test program might help...
    import java.util.*;
    import java.text.*;
    public class ExpandYear
        public static void main(String[] args) throws ParseException
         SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
         SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
         String test1 = "3/21/00";
         System.out.println("test1: " + test1 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test1)));
         String test2 = "4/9/99";
         System.out.println("test2: " + test2 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test2)));

  • Error in date format. using 'BAPI_FIXEDASSET_OVRTAKE_CREATE'.

    Dear Expert,
    I am uplaoding Asset master data using BAPI  'BAPI_FIXEDASSET_OVRTAKE_CREATE'.
    But my problem is BAPI takes capitalization date in 'YYYYMMDD' FORMAT.
    I am uplaoding in server which is having date format 'DDMMYYYY'.
    Due this error i  am unable to upload the data in asset master.
    Please give some solution for this.
    Regards.
    Mohsin S.

    Dear Reddy
    My excel contain date format 'YYYYMMDD'
    But the server in i am uploading data having date format 'DDMMYYYY'.
    bapi also having date format YYYYMMDD.
    BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
    Due to this format it is giving error.

  • Error in date format while downloading it into excel

    Hi Experts,
    I created a report and when i download date from report to excel the date format is getting reversed.
    FOR example   Date in REPORT : 07//2010
                                        IN EXCEL: 201007
    Kindly give some idea to resolve this issue.
    Regards,
    Vishwa

    hello,
    Please change the data type of date field to Character (C).
    and pass the required date value.
    It shouldl make correct output to excel...
    Thanks.

  • Sql loader error with date format

    Hi everyone,
    I have table and have a data in one coulmn RECORDED_DATE like '20090224' and my client is asking me to load this coulmn data in 'yyyymmdd' format.I am strucked up with my ideas.I used to_date('20090124','yyyymmdd') in control file.but it is also not working Here it is my control file
    LOAD DATA
    INFILE 'C:\xxxx\SQLLDR\HE data\HE_data_Feb.txt'
    BADFILE 'C:\xxxx\SQLLDR\HE data.bad'
    DISCARDFILE 'C:\xxxx\SQLLDR\HE data.dsc'
    INTO TABLE LSCCMGR.FASTPAY_HE_DATA
    REPLACE
    fields terminated by X'09'
    TRAILING NULLCOLS
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    AGENT_ID
    MEASURE
    TRANSACTIONS
    FEES
    If i excute like this i am getting the error like
    Record 1: Rejected - Error on table LSCCMGR.FASTPAY_HE_DATA, column RECORDED_DATE.
    ORA-01843: not a valid month
    Getting for all records,what i need o change to get the RECORDED_DATE as dateformat.Ple any one help me in this issue to resolve
    How can we perform this using sql loader pls let me know,Thanks in advance.
    Sravan

    Hi,
    >>(RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    *Change this line to*
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'yyyymmdd')"Regards,

  • Error in date format in lsmw recording

    Hi all,
    I am uploading condition records using recording..I have two date fields DATAB
    and DATBI which are of data type dats...I have defined the corresponding source fields as char8...Now in the last step when i am processing the batch input session
    error is occuring while loading the date screen fields..Error message is 'Invalid Date'....Please suggest me how to rectify this error...

    U need to reverse the date in SAP i.e YYYYMMDD..you need not create any 10 size fields but the date must be of this format...
    use off sets to do that
    santhosh
    Message was edited by:
            Kaluvala Santhosh

  • Different Date Formats on CRM and BI Client

    Hi,
    When trying to run the CRM Interactive Report "Accounts with Open Activities", I receive the following error:
    Different date formats on CRM and BI client 01/13/2009 13.01.2009 SC5CLNT200
    Does anybody know how to resolve this error?
    Thanks

    Hi Peter,
    As far as i remember, I had the same issue.
    Once I matched the date format in reporting client using SU01 on default tab with CRM date format, I did't see the error again.
    Did you try restarting the Browser & also relogin GUI.
    Else lets see what else can be done.
    Best Regards
    Shiven

  • Date format in user master record cannot be interpreted

    When running an Infopackage from BW to an R/3 customer extractor, the R/3 job cancels with this error message, "Date format in user master record cannot be interpreted". I can restart the R/3 job program from the ABAP editor screen using the same variant that BW issued and the job runs without cancelling.
    NOTE: This process runs without any errors on our QAS system.
    Any idea what causes this error message and how I can fix it?

    Hi Alan,
    I have resolved this issue by myself. Same just like yours mine is also a custom Datasource.
    Solution for this is go to source system check your Background user id i.e like BWALEREMOTE or ALEREMOTE which ever id you have created for setting up RFC connection between R/3 & BW. Check your Date format which has been set for your background user. Use the second format mm/dd/yy. Then run your extraction you will not face any problem.
    If you still have any problem do let me know. If this solution helps you assign points.
    Regards,
    Bhuvana.

  • Wrong date format in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi,
    Try debugging the FM and check at which point the wrong date is passed on to OBEG export parameter.
    There is a piece of code available in FM -
    obeg  = temp_buffer-begda.
    May be some problem can occur fetching from buffer.
    Harish

  • Invalid date format after APEX upgrade

    We are currently working on upgrading our applications from 1.6 to the new APEX 3.2 version. After the upgrade of one of our systems I have a tabular form that is returning the error 'Invalid date format found'. The date that is getting entered into the system is being displayed and choosed via a sql popup. The code for the pop up is
    SQL CODE
    create or replace view next_weeks as
    with t as (
    select
    trunc(sysdate) + (rownum - 1) / 2 d
    from
    dual
    connect
    by rownum <= 28)
    , call_info as (
    select
    c.call_identifier, c.callback_date, c.callback_cancelled
    from uid_csr_schedule c
    select
    to_char(d, 'fmDy MM/DD/YYYY AM') l
    , to_char(d, 'dd-mon-yy hh:mi:ss AM') v
    ,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
    from
    t
    where
    ((select count(callback_date) from call_info ci where ci.callback_date = t.d
    and (ci.callback_cancelled is null or ci.callback_cancelled !='Y'))) <
    (select csr_calls_per_period from uid_sch_system_default)
    minus
    select
    to_char(d, 'fmDy MM/DD/YYYY AM') l
    , to_char(d, 'dd-mon-yy hh:mi:ss AM') v
    ,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
    from
    t
    where
    (select count(callback_date) from call_info ci where ci.callback_date = t.d
    and (ci.callback_cancelled is null or (ci.callback_cancelled !='Y')))
    =(select override_amt from uid_sch_call_override
    where (to_char(begin_date,'dd-mon-yy') || ' ' || upper(period)) = to_char(t.d, 'dd-mon-yy AM'))
    union select
    to_char(d, 'fmDy MM/DD/YYYY AM') l
    , to_char(d, 'dd-mon-yy hh:mi:ss AM') v
    ,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
    from
    t
    where
    ((select count(callback_date) from call_info ci where ci.callback_date = t.d
    and (ci.callback_cancelled is null or ci.callback_cancelled !='Y'))) >=
    (select csr_calls_per_period from uid_sch_system_default)
    and
    (select count(callback_date) from call_info ci where ci.callback_date = t.d
    and (ci.callback_cancelled is null or (ci.callback_cancelled !='Y')))
    <
    (select override_amt from uid_sch_call_override
    where (to_char(begin_date,'dd-mon-yy') || ' ' || upper(period)) = to_char(t.d, 'dd-mon-yy AM'))
    order by o
    The form then has the item set as a popup with a date format mask of dd-MON-yy hh:mi:ss AM. The popup displays fine and the date is shown in the field but the error is received when I try to save the information. If I change the application global setting of date format mask to dd-MON-yy hh:mi:ss AM then this error goes away however, it creates problems on all the rest of my pages that use this date in the where clause of the queries. Is there a way to solve the problem above without having to change the globalization parameter or do I need to change this parameter and then redo those queries?
    Thanks for your help!
    Amber

    Amber,
    It's interesting that the problem goes away if you set the global date format to be the same as the column level. The column level should trump the global setting. What process is returning the error? Are you sure it's the MRU or could it be something custom?
    You could consider adding a process before the MRU fires that uses alter session to change the date format.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

Maybe you are looking for

  • IChat video no longer working after Leopard upgrade

    I always used to be able to video chat with everyone and then after my Leopard upgrade, no such luck... I looked through the user tips and here is what I have done. 1) Have you done the Quicktime Streaming setting ? Yes, I have it set 2) Are you runn

  • How can I save my photo books from IPhoto to my computer?

    How can I save my photo books from IPhoto to my computer? because I made two of them and after 2 prints I can open it again to sent it to print. Also I atarte one more and just gone I can find it anymore. I made one more and I sent it to print It is

  • Creating customised swf files using CF?

    Hi all. This is a bit of an integration question. Marketing create wonderful swf brochures using InDesign to let them have those cool page turning features. They embed urls into the document to invite the reader to "click to make a booking". Fine so

  • Unable to create index

    Hi All, I have a 8.1.7.4 database with oracle text installed. I try to create a index and get the followin error: create index quick_text on quick ( text )indextype is ctxsys.context; ORA-29855: error occurred in the execution of ODCIINDEXCREATE rout

  • How to embed applet in swings

    hi i developed a program for timer in applet, i want to include it in to jFrame,can some one help me,i am developing program in netbeans