Issue updating a date

UPDATE environment_booker
SET expiry = '30/12/2006'
WHERE environment_name = 'Test name 1'
gives the error
ORA-01843: not a valid month. It is a format issue I guess.
This is the table
SQL> desc environment_booker;
Name Null? Type
ENVIRONMENT_NAME VARCHAR2(50)
DESCRIPTION VARCHAR2(50)
OWNERS VARCHAR2(50)
EXPIRY DATE
SQL>
Any help would be great ?

And here you should see the NLS_DATE_FORMAT.
SQL> drop table table1
  2  /
Table dropped.
SQL> create table table1(col1 date)
  2  /
Table created.
SQL>
SQL> insert into table1 select sysdate from dual
  2  /
1 row created.
SQL> insert into table1 values('30-dec-2006')
  2  /
1 row created.
SQL> insert into table1 values('31/12/2006')
  2  /
insert into table1 values('31/12/2006')
ERROR at line 1:
ORA-01843: not a valid month
SQL> commit
  2  /
Commit complete.
SQL> alter session set nls_date_format = 'DD/MM/YYYY'
  2  /
Session altered.
SQL> insert into table1 values('31/12/2007')
  2  /
1 row created.
SQL> insert into table1 values('30-dec-2008')
  2  /
1 row created.
SQL> commit
  2  /
Commit complete.
SQL>Cheers
Sarma.

Similar Messages

  • IDoc issue - update address data vendor

    We make use of iDocs to interface our vendor master data from an AS/400 system to SAP ERP.
    But we now have an issue with the address data updates of the vendor.
    If we check the vendor with XK03 - Environment - Field Changes:
    Date: 12/02/2010
    Field: City
    New: LOUISVILLE KY 40290-1076
    Old: CINCINNATI OH 45274-0124
    But in XK03 the field city still contains: CINCINNATI OH 45274-0124 (and not the new updated city)
    Table LFA1:
    LFA1-ORT01: LOUISVILLE KY 40290-1076
    LFA1-MCOD3: LOUISVILLE KY 40290-1076
    Table ADRC:
    ADRC-CITY1: CINCINNATI OH 45274-0124
    ADRC-MC_CITY1: CINCINNATI OH 45274-0124
    If we check WE05 ---> green flag, so no error while updating vendor master data (+ correct city is in E1LFA1M)
    This is not always an issue - so not all vendors have this issue.  If we reinterface the same vendor later, the address data is upated without any issue.
    How can this be solved?
    Kind regards,
    Lieselot...

    Check if there is some custom code concerned or not.
    If not, check sap notes, then ask sap support to help you solve the issue.
    Otherwise custom code may handle incorrectly something, but I can't tell you what!

  • Password change issue when updating user data in SAP ABAP system

    Hi Guru's,
    One of my reconciliation tasks part of the reconciliation job I've created is doing some strange password updates.
    As you can see below the task selects all users part of my identity store that are part of the account attribute of the particular ABAP system.
    Once these users are selected the task updates different data like username, validto, ... but the task is updating a lot of other things that are not part of the destination tab. What is causing the biggest issue is the password fields that are updated in the ABAP system like, password, productive password, ...
    Can you please advise if I missed something and how to solve?
    Thanks a lot,
    Laurent

    Hello Steffi,
    Yes in the ABAP systems they have the same timestamp. No other jobs are running at the same time.
    It is only happening to a few users depending on the ABAP system. On some ABAP systems there are only a few users for which the PW is reset and other systems 300.
    Example below of a system where I updated all user. In my pass only the following attributes should have been pushed thru to the ABAP system.
    However the valid from, accounting number and password have been updated as well.
    Thx,
    Laurent

  • Issue with field data type NUMBER(22,5) while updating field data.

    Hi,
    I have a field with data type NUMBER(22,5).
    While inserting or updating field data it should take 17 digit and after decimal point 5 digit total 22 digit.
    I set 22 for maximumLength property of messageTextInput field.
    While updating field I am getting following problems,
    1) I provide the value as 1234567890123456789012 (22 digit) and click apply button.
    then I got error message as
    Error
    मैकेनाइजड दो पहिया/तीन पहिया वाहन - Value 1234567890123460000000 exceeds the maximum allowed value (NUMERIC (22, 5))
    2)then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)
    The I tried with simple SQL insert statement to insert data and it successfully insert 12345678901234567.12345 value.
    Any item property I missed here to set?
    Please suggest.
    Thanks & Regards,
    Sagarika

    hi
    according to
    " then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)"
    this statement ,it seems that it is definitely applying round or somthing like that function in the code before inserting value in the table("try with select round(12345678901234567.1234 ) from dual u will get the same result = 123456789012345600 ") ,
    bcz u r able to insert the same directely into the table using insert statement so kindely have look on the code if something like this is not happening there.try to check code in related EOimpl class
    try to to use debugging mode ,and the 23 char problem is related to maximum lenghth of text box make it 23 it will get resolved and u will be able to enter 17 digits with 5 digits after decimal point
    thanx pratap

  • Data load issue with export data source - BW 3.5

    Hi,
    We are facing issues in loading data with the help of export data source.
    We have created export data source of 0PCA_C01 cube. With the help of this export datasource,  we are loading data to other custom cube. Scenario is working fine in development server.
    But when we transported objects to quality server data is not getting loaded to custom target cube.
    It is extracting zero records.  All transports are ok and we have generated export datasource in quality before transports .Also regenerated export datasource after transport and activated infosource, update rule via RS* programs.  Every object is active but data is not getting extracted.
    RSA3 for 80PCA_C01 datasource isn't extracting any record in Quality. Records getting extracted in development.   We are in BW 3.5 with patch level 19.
    Please guide us to resolve the issue.
    Thanks,
    Aditya

    Hi
    Make sure that you have relevant Role & Authorization at Quality/PRS.
    You have to Transport the Source Cube first and then Create a Generate Export Data Source in QAS. Then, replicate data sources for BW QAS Soruce System. Make sure this replicated Data Source in QAS. Only then can transport new update rules for second cube.
    Hope it helps and clear

  • Can't update the data of my credit card

    My credit card information was changed. Now I can't update this data on my account since days. Any idea, why?  the error message is 'Card is invalid, please check card details'. thanks

    Hi up1975.
    Please contact our chat support: http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html#Contact_us as they can provide you personalised experience in getting your issue fixed.
    Regards,
    Romit Sinha

  • How To... Update Master Data during upload of transaction data

    Can anybody let me know how this can be achieved.
    I have datasource (Legacy not R3) where I am getting both master data and text for number of infoobjects.
    I dont want separate datasources.
    The datasource is actually transactional datasource.
    I dont need text in the cubes or DSO I need the text tables of the infoobjects to be updated.
    I could find this on SDN but do anyone have document based on the below link.I was not able to find it.
    How To... Update Master Data during upload of transaction data
    Thanks.

    Dear Praveen
    I guess yr req is demanding the knowledge of Data Unification and Synchronization whose scope is a bit outer the area of BW.( its MDM actually )
    In BW we could very well fetch data out of different data sources (even across the different system) with no issues so why not u trying that. if there is any issue implementing that then please specify what kind of trouble you are interfacing...
    I got the below link which may be helpful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7bd6389-0a01-0010-eb95-d45835d446a8

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

  • Update scheduling data in material master

    Hi,
    How to update scheduling data from Process order to master recipe in mass. As I can schedule recipe in C202 and update the sceduled data in material master by CA96 & CA97 transactions. But i wants to schedule master recipe in mass. Is there any way to mass update it ?
    Regards
    Amit

    Hello
    I have tested in my internal test systems and system correctly updated the material master using CA97, without aky kind of previous scheduling of the master recipe.
    Can you please provide a more detailed description of the issue? What is happening if you try to run CA97 without running the scheduling of the mater recipe? How are you running CA97?
    You may also try CA97N, which is a newer version of CA97.
    BR
    Caetano

  • Has anyone had issues with Administration\Data Import/Export\Data Import???

    Has anyone had issues with Administration\Data Import/Export\Data Import???
    I have a client who has recently upgraded from V2007 to V8.81. They were succesfuly  using this standard function to import supplier prices to their master price list, but now it has failed?
    I have looked at the file they are importing and it appears to be fine.
    On closer inspection, it did contain approx 46,000 entries, so I took the first 1,000 and created a test file, which imported fine.
    The only issue I found was Speed, with the test file of 1,000 records taking about 30 Mins to import. This appeared to get slower and slower the further through the file it got!
    Based on this, I have estimated that the whole file would takle about 13 hours to import. The client say that when they used to run it on version 2007 it was far quicker?
    In practice, it does appear to run, but the speed is the issue. Having said this, I set the whole file to run last night (over night)and this morning it had appeared to hang after about 2,307 rows, with nothing else being updated.
    Has anyone any ideas or is aware of performance issues like this?
    Thanks,
    Ian

    Always an option, but would you give your clients access to this tool?
    Not sure really.
    I have uploaded a copy of their database onto my test system and run the same routine. Its equally as SLOW
    I can't gauage if its an issue with 8.81 that 2007 didn't have, as I only have the client's word on it, however I have no reason to disbelieve them.
    Kind regards,
    Ian

  • Idoc failed but updated the data

    Hello Gurus,
    I have a issue where the inbound idoc has failed but it has updated the data in the scheduling agreement.
    Kindly let me know how it is possible to update scheduling agreement when Idoc has status 51 ie failed.
    Helpful answers will be rewarded
    Thanks
    Suresh

    Hi,
    I am also surprised data is updated when idoc is failed.
    Please throw some thoughts on this.
    Thanks
    suresh

  • Inventory 0IC_C03, issue with historical data (data before Stock initializa

    Hi Experts,
    Inventory Management implementation we followed as bellow.
    Initailization data and delta records data is showing correctly with ECC MB5B data, but historical data (2007 and 2008 till date before initialization) data is not showing correctly (stock on ECC side) but showing only difference Qunatity from Stock initialization data to date of Query.
    we have done all the initial setting at BF11, Process keys and filed setup table for BX abd BF datasources, we are not using UM datasource.
    1 we loaded BX data and compressed request (without tick mark at "No Marker Update)
    2. initialization BF data and compressed request (with tick mark at "No Marker Update)
    3 for deltas we are comperessing request on daily (without tick mark at "No Marker Update).
    is this correct process
    in as you mentioned for BX no need to compress ( should not compress BX request ? )
    and do we need to compress delta requets ?
    we have issue for historial data validation,
    here is the example:
    we have initilaized on may 5th 2009.
    we have loaded BX data from 2007 (historical data)
    for data when we see the data on january 1st 2007, on BI side it is showing value in negative sign.
    on ECC it is showing different value.
    for example ECC Stock on january 1st 2007 : 1500 KG
    stock on Initialization may 5th 2009 : 2200 KG
    on BI side it is showing as: - 700 KG
    2200 - (-700) = 1500 ,
    but on BI side it is not showing as 1500 KG.
    (it is showing values in negative with refence to initialization stock)
    can you please tell, is this the process is correct, or we did worng in data loading.
    in validity table (L table) 2 records are there with SID values 0 and -1, is this correct
    thanks in advance.
    Regards,
    Daya Sagar
    Edited by: Daya Sagar on May 18, 2009 2:49 PM

    Hi Anil,
    Thanks for your reply.
    1. You have performed the initialization on 15th May 2009.
    yes
    2. For the data after the stock initialization, I believe that you have either performed a full load from BF data source for the data 16th May 2009 onwards or you have not loaded any data after 15th May 2009.
    for BF after stock initialization delta data, this compressed with marker update option unchecked.
    If this is the case, then I think you need to
    1. Load the data on 15th May (from BF data source) separately.
    do you mean BF ( Material movements) 15th May data to be compressed with No Marker Update option unchecked. which we do for BX datasource ?
    2. Compress it with the No Marker Update option unchecked.
    3. Check the report for data on 1st Jan 2007 after this. If this is correct, then all the history data will also be correct.
    After this you can perform a full load till date
    here till date means May 15 th not included ?
    for the data after stock initialization and then start the delta process. The data after the stock initialization(after 15th May 2009) should also be correct.
    can you please clarify these doubts?
    Thanks
    Edited by: Daya Sagar on May 20, 2009 10:20 AM

  • Viewing via 'date modified' & opening a folder updates its date... help!!

    Hi,
    So I am trying to be organized, and am sorting through some old files, all arranged as a bunch of files and subfolders within project folders. I sort these project folders by date, with the oldest at the top of the window. I open the oldest folder (with the triangle, not in a new window) to see whats in there, do the same with any subfolder that may be there, close them again, and a few seconds later the main folder date updates to the current date and jumps to the bottom of the list. This is infuriating me!, I now have projects that haven't been opened since 2001, inside a folder showing 'date modified' as 5 minutes ago.
    It appears that opening a subfolder will update the date of the folder it is in. This is ridiculous!! you try to be organised with your filing and that's the thanks you get! now when i view all these projects by date, I wouldnt have a clue how old they were unless I open the folder. stupid!
    I have noticed this with 2 macs, can anyone help, this can't be normal procedure. note, I havent opened, let alone saved anything, just viewed the contents of folders.
    help!!

    Hi folks,
    This issue has been driving me crazy, and I've been searching everywhere for a solution... today I am happy to report that I found one!
    Limit Point Software has just released a great utility for dealing with this issue where folders have their "Date Modified" altered after you just opened the folder.
    It is called "SyncFF" and you can download at:
    http://www.limit-point.com/Utilities.html
    Here is the product description:
    SyncFF is a drop utility for setting the modification and creation date of folders to the latest modification date of their contained files. This way the modification date of the folder matches the modification date of the "oldest" file it contains. The process is recursive, which implies all subfolders are processed too. Universal Binary, Mac OS X 10.4 and above.
    It works wonderfully, and it is so nice to have the proper modification dates on my folders and projects again.
    I should also say that the developer is very helpful and responsive to feedback.
    Zed

  • Flexible update master data inconsistencies

    Dear experts,
    I have the following issue with flexible update master data for 0employee.
    0employee is getting loaded from 3 different sources. here is the example below;
    employee  address   phone compcode
    1                germany   123     
    1                denmark                001
    1                UK
    here employee is a key for 0employee what happens to above data after attribute change run.
    can any one let me know what will be final results.  my requirement is i have to get company code at any circumstances. it there a proper sequence of load to be followed in this case. your inputs is highly appreciated with points.
    Cheers,
    VSN

    If 0employee gets data from 3 different sources it will overwrite the existing records when same employee '1' is coming from Germany , Den , UK .. Only the recent record will be availble in MD tables..
    You need to add SOURCESYSTEM as compounding object to 0EMPLOYEE.
    Put constant GE for 0SOURCE SYSTEM in transformations
    constant Den for 0SOURCE SYSTEM in transformations
    constant UK for 0SOURCE SYSTEM in transformations
    when you execute MD
    Source system ...employee address phone compcode
    GE.............................1...................... germany.... 123
    Den.............................1...................... Denmark.... 123
    UK.............................1......................UK .............. 123

  • Problem with updating pricing date using BAPI_SALESORDER_CHANGE

    Hi,
    I need to update pricing date on sales order (but only on item level).
    I have been trying to use  BAPI_SALESORDER_CHANGE but nothing changes.Bapi returns no errors, ends with success.
    I hoped that bapi would change not only pricing date but also recalculate things the date affected.
    Here is my code:
    ls_head_inx-updateflag = 'U'.
    ls_bapisdls-pricing = 'C'.
    ls_item-itm_number = sales_order_posnr
    ls_item-price_date = new_price_date
    APPEND ls_item TO lt_item.
    ls_item_inx-itm_number = sales_order_posnr
    ls_item_inx-updateflag = 'U'.
    ls_item_inx-price_date = 'X'.
    APPEND ls_item_inx TO lt_item_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
              EXPORTING
                salesdocument     = sales_order
                order_header_inx = ls_head_inx
                logic_switch         = ls_bapisdls
              TABLES
                return                 = lt_return
                order_item_in     = lt_item
                order_item_inx   = lt_item_inx
    Thanks & Regards,
    Mario

    Mario,
    I run same code as yours and work for me fine, able to update ITEM pricing date.
    I suppose you are using BAPI_TRANSACTION_COMMIT after your BAPI call, then only it will work.
    Also note that VBKD table stores this date for header and item. In my system, there are generally only header rows in that table, but a new item row gets generated when I change the item date with the BAPI to some other date. Also, this BAPI sometimes issues a W message instead of ERROR for something like non-existing items, so carefully check your RETURN table too.
    'Item 000002 does not exist' as WARNING message, so might be considering it as a success.
    If nothing works, try to do the same thing for the same data using VA02 and check . If that works, BAPI will work surely.
    Regards,
    Diwakar

Maybe you are looking for

  • ALV Grid sub total issue

    Hi SAP Experts, Currently I have ALV Grid table as below as example : FIELD1 FIELD2 Account Amount 1. Rev 1.Rev Acct1 100.00 1. Rev 1.Rev Acct2 50.00 Subtotal FIELD2 (1.Rev) 150.00 Subtotal FIELD1 (1.Rev) 150.00 2. Cost 2.1 Cost1 Acct3 100.00 2. Cost

  • Battery Care and Cable for Internet and Keychain  :-)

    I commend you people for helping out, so thanks! I have a used sMBP I recently purchased. I noticed that the battery cannot be removed easily like the old MBP I had. Does Apple still recommend letting the battery go all the way down and right before

  • Inventory collection fails on LMS4.0 with ASA5510

    Hello, We have added the ASA5510 and 5505 manually to LMS4.0. After doing an inventory discovery the result is it fails...so we can't continue doing anything with it in LMS. Has anybody of you been able to add the ASA to LMS4.0?? If yes any advise yo

  • How can i found Oracle student guides

    Hello gurus, Can someone provide me the Oracle student guides (oracle internal & oracle academy use only) link for Oracle-Hyperion material. thank you in advance........... Edited by: user11688070 on Jul 14, 2011 10:48 PM

  • Goods receipt items cannot be entered

    Message no. RU426 Hi,     I am getting error during the Confirmation in the Mov Type 531 and p62 at the time of Goods Receipt through Tcode CO11. The 101 is OK and accepting. Please suggest me how i can rectify it. Thanks Rahul Edited by: sharmasappp