4.0EA1 Entering date values in table editor

Hello out there,
I don't know if that has been reported already. So I'm doing it again.
I have a table containing a date column and set my NLS_DATE_FORMAT to 'DD.MM.YYYY HH24:MI:SS'.
In version 3.2, I could enter date values just by giving a date without time e.g. 29.08.2013. In the table editor of version 4.0, I'm forced to enter 29.08.2013 00:00:00 otherwise the field is cleared after leving it by pressing TAB.
Is there some new preference setting for that? I'm having another table where I want to enter date values with time though...
If that matters, I'm using SQL*Developer 4.0.0.12.27 with JDK 7.0_17 64bit on OpenSuse Linux 12.3 and connecting to Oracle 12.1.0.1.0 on Solaris 10 Sparc64.
As I'm writing the JDK version, could it be that a newer JDK solves that issue? I'll try that.
Regards,
dhale

I'm thinking that it should assume all zeros for the time portion in this scenario, since that's how sqlplus (and, I believe, previous SQL Developer releases) handles it.  For example:
SQL> alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
Session altered.
SQL> select to_date('2013-09-10') from dual;
TO_DATE('2013-09-10
2013-09-10 00:00:00

Similar Messages

  • What is the transaction code to enter data into mkpf table

    Hi,
    I want to enter data into mkpf table but through a transaction code.
    What is the transaction code?
    Thanks.
    deniz.

    Hi,
    Go to SE16N transaction code.
    Now you enter the table name ex: u201CMKPF u201C, if u wants to insert the values.
    in Command bar
    you enter the transaction code u201C &SAP_EDIT u201D. 
    Press enter.
    Then click on execute button. 
    Now here I would like to change some data.
    Here we can do any operation in application tool bar.
    Enter values
    And click on save button.  
    Regards,
    Sujit

  • How to populate date & time when user enter data for custom table in sm30

    Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
      Req is
      i have custom table and using sm30 user can enter data.
    after saving date i want to update date & time in table
    Pls let me know where to write the code?
    Thanks in Advance

    You have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
    FORM update_user_date_time.
      DATA: f_index LIKE sy-tabix.
      DATA: BEGIN OF l_total.
              INCLUDE STRUCTURE zztable.
      INCLUDE  STRUCTURE vimtbflags.
      DATA  END OF l_total.
      DATA: s_record TYPE zztable.
      LOOP AT total INTO l_total.
        IF l_total-vim_action = aendern OR
           l_total-vim_action = neuer_eintrag.
          MOVE-CORRESPONDING l_total TO s_record.
          s_record-zz_user = sy-uname.
          s_record-zz_date = sy-datum.
          s_record-zz_time = sy-uzeit.
          READ TABLE extract WITH KEY l_total.
          IF sy-subrc EQ 0.
            f_index = sy-tabix.
          ELSE.
            CLEAR f_index.
          ENDIF.
          MOVE-CORRESPONDING s_record TO l_total.
          MODIFY total FROM l_total.
          CHECK f_index GT 0.
          MODIFY extract INDEX f_index FROM l_total.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_USER_DATE_TIME
    Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated.

  • Enter Data from one table to two tables

    Hi
    I have three table one is master sale_order another is sale_order_detail(detail table) and the thirs is external table
    what i want the data from extenal table to my master and detail
    What i did for this i create a cursor and enter the data in master but what i need in detail i am able to insert but i am not able to understand how i will insert ID in detai my cursor and table codes are given below
    sale_order;
    Name Null? Type
    ID NUMBER
    SALE_ORDER_NO VARCHAR2(50)
    ORDER_DATE DATE
    PARTY_NAME VARCHAR2(100)
    DEL_DATE DATE
    COMMENT1 VARCHAR2(200)
    desc sale_order_detail;
    Name Null? Type
    ID NUMBER
    PROD_ID VARCHAR2(20)
    STYLE VARCHAR2(100)
    COLOR VARCHAR2(20)
    XS NUMBER
    S NUMBER
    M NUMBER
    L NUMBER
    XL NUMBER
    PCS NUMBER
    TOTAL_QTY NUMBER
    COMMENTS VARCHAR2(100)
    SQL> desc po_pending_csv;
    Name Null? Type
    P_O_NO VARCHAR2(20)
    PARTY_NAME VARCHAR2(120)
    PROD_CODE VARCHAR2(20)
    STYLE_NAME VARCHAR2(120)
    COLOR VARCHAR2(25)
    XS VARCHAR2(25)
    S VARCHAR2(25)
    M VARCHAR2(25)
    L VARCHAR2(25)
    XL VARCHAR2(25)
    PCS VARCHAR2(25)
    COMMENTS VARCHAR2(100)
    COMMENT1
    DECLARE
         v_p_o_no sale_oder.sale_order_no%type;
         v_party_name sale_order.party_name%type;
    CURSOR po_cursor IS
         SELECT DISTINCT(p_o_no),party_name FROM po_pending_csv;
    BEGIN
         OPEN po_cursor;
    LOOP
              FETCH po_cursor INTO v_p_o_no,v_party_name;
         EXIT WHEN po_cursor%NOTFOUND;
              INSERT INTO sale_order (id,sale_order_no,party_name,order_date)
              VALUES (sale_order_id_seq.nextval,v_p_o_no,v_party_name,sysdate);
    END LOOP;
    CLOSE po_cursor;
    END;
    DECLARE
    CURSOR c1 IS
         SELECT id from sale_order;
         v_id sale_orderdetail.id%TYPE;
         v_p_o_no sale_oder_detail.p_o_no%TYPE;
         v_prod_code sale_oder_detail.prod_id%TYPE;
         v_style_name sale_oder_detail.style%TYPE;
         v_color sale_oder_detail.color%TYPE;
         v_xs sale_oder_detail.xs%TYPE;
         v_s sale_oder_detail.s%TYPE;
         v_m sale_oder_detail.m%TYPE;
         v_l sale_oder_detail.l%TYPE;
         v_xl sale_oder_detail.xl%TYPE;
         v_pcs sale_oder_detail.pcs%TYPE;
         v_comments sale_oder_detail.comments%TYPE;
    CURSOR po_cursor_detail IS
    SELECT p_o_no,prod_code,style_name,color,xs,s,m,l,xl,pcs,comments
         FROM po_pending_csv;
    BEGIN
         OPEN po_cursor_detal;
         OPEN c1;
    LOOP
              FETCH po_cursor_detail INTO v_p_o_no,v_prod_code,
              v_style_name,v_color,v_xs,v_s,v_m,v_l,v_xl,v_pcs,v_comments;
    FETCH c1 INTO v_id;
         EXIT WHEN po_cursor_detail%NOTFOUND;
    EXIT WHEN c1%NOTFOUND;
              INSERT INTO sale_order_detail(id,prod_id,style,color,xs,s,m,l,xl,pcs,
              total_qty,comments)
              VALUES (v_id,v_prod_id,v_style,v_color,v_xs.v_s,v_m,v_l,v_xl,v_pcs,
              v_xs+v_s+v_m+v_l+v_xl,v_comments);
    END LOOP;
    CLOSE po_cursor_detail;
    CLOSE c1;
    END;
    plesae help me
    thanks and regards
    vikas singhal

    Try this:
    DECLARE
      TYPE t_sales IS RECORD(
        id         DBMS_SQL.NUMBER_TABLE,
        p_o_no     DBMS_SQL.VARCHAR2_TABLE,
        party_name DBMS_SQL.VARCHAR2_TABLE,
        prod_code  DBMS_SQL.VARCHAR2_TABLE,
        style_name DBMS_SQL.VARCHAR2_TABLE,
        color      DBMS_SQL.VARCHAR2_TABLE,
        xs         DBMS_SQL.NUMBER_TABLE,
        s          DBMS_SQL.NUMBER_TABLE,
        m          DBMS_SQL.NUMBER_TABLE,
        l          DBMS_SQL.NUMBER_TABLE,
        xl         DBMS_SQL.NUMBER_TABLE,
        pcs        DBMS_SQL.VARCHAR2_TABLE,
        total_qty  DBMS_SQL.NUMBER_TABLE,
        comments   DBMS_SQL.VARCHAR2_TABLE,
        flag       DBMS_SQL.NUMBER_TABLE);
      a_sales t_sales;
      TYPE t_sales_id_list IS TABLE OF SALE_ORDER%ROWTYPE
        INDEX BY PLS_INTEGER;
      a_sales_id_list t_sales_id_list;
      v_curr_id NUMBER;
      CURSOR c_sales IS
        SELECT *
          FROM (SELECT NULL id,
                       p_o_no,
                       party_name,
                       prod_code,
                       style_name,
                       color,
                       xs,
                       s,
                       m,
                       l,
                       xl,
                       pcs,
                       xs+s+m+l+xl total_qty,
                       comments,
                       ROW_NUMBER() OVER(PARTITION BY p_o_no,
                                                      party_name
                                             ORDER BY p_o_no,
                                                      party_name) row_number
                  FROM po_pending_csv)
         ORDER BY p_o_no,
                  party_name,
                  row_number;
      v_timestamp DATE := SYSDATE;
      v_array     NUMBER := 1;
    BEGIN
      OPEN c_sales;
      LOOP
        FETCH c_sales BULK COLLECT
          INTO a_sales LIMIT 100;
        -- Logic to populate ID
        FOR i IN 1 .. a_sales.id.COUNT
        LOOP
          IF a_sales.flag(i) = 1 THEN
            -- Only get nexval for distinct values of p_o_no, party_name
            SELECT sale_order_id_seq.NEXTVAL
              INTO v_curr_id
              FROM dual;
            -- Assign new id to a_sales
            a_sales.id(i) := v_curr_id;
            -- Populate a_sales_id_list
            a_sales_id_list(v_array).id := v_curr_id;
            a_sales_id_list(v_array).sale_order_no := a_sales.p_o_no(i);
            a_sales_id_list(v_array).order_date := v_timestamp;
            a_sales_id_list(v_array).party_name := a_sales.party_name(i);
            -- Increment counter
            v_array := v_array+1;
          ELSE
            -- Populate a_sales id with last value
            a_sales.id(i) := v_curr_id;
          END IF;
        END LOOP;
        -- Insert into Sales Order
        FORALL i IN 1 .. a_sales_id_list.COUNT
          INSERT INTO SALE_ORDER
            VALUES a_sales_id_list(i);
        -- Insert into Sales Order Detail
        FORALL i IN 1 .. a_sales.id.COUNT
          INSERT INTO SALE_ORDER_DETAIL
            (id,
             prod_id,
             style,
             color,
             xs,
             s,
             m,
             l,
             xl,
             pcs,
             total_qty,
             comments)
          VALUES
            (a_sales.id(i),
             a_sales.prod_code(i),
             a_sales.style_name(i),
             a_sales.color(i),
             a_sales.xs(i),
             a_sales.s(i),
             a_sales.m(i),
             a_sales.l(i),
             a_sales.xl(i),
             a_sales.pcs(i),
             a_sales.total_qty(i),
             a_sales.comments(i));
        -- delete array
        a_sales_id_list.delete;
        -- reset counter
        v_array := 1;
        EXIT WHEN c_sales%NOTFOUND;
      END LOOP;
      CLOSE c_sales;
      COMMIT;
    END;Cheers

  • Date format in Table Editor

    I am using Oracle 8.1.7. I tried to set the date format by setting the NLS_DATE_FORMAT variable, but it worked for sqlplus only. How can I set it for the Enterprise Manager's Table Editor? Thanks

    I guess you have to change that parameter in init.ora file of the database. According to what I know you can not set that format in OEM.
    Joel P�rez

  • Entering data into custom table programmatically

    Hi,
    I want to send data in internal table to a custom Z-table through a report program. How can I do this?
    Thanks in advance.

    Hi
    I have written this code:
    LOOP AT it_status INTO wa_status.
          IF wa_status-m_typ = 'E'.
            wa_ztable-mandt = sy-mandt.
            wa_ztable-aufnr = wa_status-aufnr.
            wa_ztable-objnr = wa_status-objnr.
            wa_ztable-charg = wa_status-charg.
            wa_ztable-matnr = wa_status-matnr.
            wa_ztable-autyp = wa_status-autyp.
            wa_ztable-auart = wa_status-auart.
            wa_ztable-m_typ = wa_status-m_typ.
            wa_ztable-msg = wa_status-msg.
            wa_ztable-user_id = sy-uname.
            wa_ztable-date_occur = sy-datum.
            wa_ztable-aufnr = sy-uzeit.
            INSERT into zqm_qn_testorder values wa_ztable.
            CLEAR wa_ztable.
          ENDIF.
        ENDLOOP.
    But the records are not appended.
    The database table zqm_qn_testorder doesn't have a table maintainence generator created.
    Is it require to create parameter transaction and then pass these vales by calling the transaction?
    Thanks.

  • Need help with entering data into a table.

    I just created a table, but I can't enter information.  I don't want the data linked to a datasource.  I just want it to save to the form like all of the other fields.

    Even when I create a simple table, no ability to enter information.  Please help.  I know this must be a simple answer, but surprised that there is no response.

  • Error Message when entering data into a table from an array

    When i use the following:
    stmt.executeUpdate("INSERT INTO Car " + "VALUES (" + temp + ", " + carData[0] + ", " + carData[1] + ", " + carData[2] + ", " + carData[3] + ", " + carData[4] + ", " + carData[5] + ", " + carData[6] + ", " + carData[7] + ", " + carData[8] + ", " + carData[10] + ", " + carData[11] + ", " + carData[12] + ", " + carData[9] + ", " + carData[13] + ", " + carData[14] + ", " + carData[15] + ", " + carData[16] + ", " + carData[17] + ", " + carData[18] + ", " + carData[19] + ", " + carData[20]+")");
    i get the following error message:
    SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Audi A2 (Standard & SE)'.
    where: 'Audi A2 (Standard & SE)' is the value stored in carData[4].
    Can anyone help?

    You need to enclose carData[0],carData[1] etc in single quotes, if they are String(s). Otherwise you can use PreparedStatement.
    PreparedStatement ps = con.prepareStatement("Insert into car values(22 questions marks)");
    ps.setInt(1,temp);
    for(int i=0;i<21;i++) ps.setString(i+2,carData[ i ]);
    int count=ps.executeUpdate();
    Sudha

  • 'Data Access Error' while trying to delete period using Table Editor in FDM

    Hi,
    I'm trying to delete a period that has been entered wrongly using Tools->Table Editor option.
    But when I try to 'Update Grid' after deleting the Period,I get 'Data Access Error'.
    Could any one let me know how to solve the error.
    Thanks in advance

    Hi Kelly,
    There is no data that is entered in that period.The data will be entered for that period next month.
    POV is also not set to that period,but still the problem persists.
    Thanks

  • Adding Drop Down List values from table fields

    Hi all,
    Recently we have switched from Microsoft's Infopath to Adobe's LiveCycle Designer.  In InfoPath i was able to allow a user to enter data in a table and then use that data as values for a drop downlist, which could in turn be used in another table.  Infopath made it relatively easy to do this, but I assume it requires scripting in LiveCycle.  Here is an example that make make it easier to to explain:
    Let's say we have a form with a table that has a colomn where the user can enter a value in a table let's say "Computer Name":
    Computer Name | IP | Vendor | Serial Number|
    PC 1
    ---------------------| 192.168.2.34| HP | US4839494
    PC 2
    PC 3
    PC 4
    Further down the form there is a nother table with a drop down list.  I want the values of the drop down list to be what ever values were entered for "Computer Name" in the previous table.  So in this case the table would look like this:
    Computer Name | Acquisition Date| End of Life Date
    <Drop DownList>|  07/21/2010 | 07/21/2014
    The drop downlist values would be "PC1, PC2, PC3, PC4"  or whatever values were entered in the previous table.  Essentially, I am trying to avoid from having users type in "Computer Name" data every time the "Computer Name" needs to be entered.  It would be so much easier to enter all "Computer Name" values and then use those values as part of a drop down list to avoid excessive typing.
    I hope this makes sense, it is fairly easy to do in InfoPath and I am sure there is a way to do this in LiveCycle.
    Let me know if my explanation is not clear enough.
    Thanks!

    Thanks for the feedback, but it doesn't seem to quite accomplish what I am trying to do. I've tried using global binding as you specified, but the outcome is not exactly what I want.  Perhaps this drawing can help depict what I am trying to do:
    http://imageshack.us/photo/my-images/153/dropdownlist.png/
    On the picture I manually defined the values for the drop down list.  Again, I want these values to be taken from "Computer Name" in the table above.
    Thanks!

  • How can I read the last cell of a JTable that a user Enters data

    I have a one column JTable with several rows that a user enters data to. Upon entering the last data, the user clicks a button to read all the data from the rows in the JTable and puts them in an arraylist. If the user does not click enter or navigates away from the last cell, then after clicking the button it does not read the last cell entered. Since the user is clicking on a button to indicate he is done entering data on the table, does he also have to hit the enter key to indicate he is done entering the data?
    The code below is my tablemodelListener:
    public class InteractiveTableModelListener implements TableModelListener {
    public void tableChanged(TableModelEvent evt) {
    if (evt.getType() == TableModelEvent.UPDATE) {
    int row = evt.getFirstRow();
    System.out.println("Update row:"+" "+row);
    jTable1.setRowSelectionInterval(row, row);
    }

    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    In the future, Swing related questions should be posted in the Swing fourm. (This question has been asked and answered dozens of times).
    But there is not need to repost because [Table Stop Editing|http://www.camick.com/java/blog.html?name=table-stop-editing] explains whats happening and give a couple of solutions.

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Need help in retrieving data from database table

    Hi ,
    I have a Ztable with primary key.The table gets automatically sorted on primary key
    But I want to retrieve the ztable data in the order in which i enter data in to table.
    EXAMPLE :
    I enter data as : mydata
                            action
                            welcome
    When i retrieve this data  internal table should be filled in the same order.
    Your inputs will be very helpful.
    Thanks in advance.

    You will need to change your table to use a number as the first key field (after the client) which you increase by 1 each time you make a new entry.  Alternatively you can add a data/time stamp to the end of your table and use this to sort your internal table once you've extracted the records.
    Regards,
    Nick

  • Insert,update and delete data in a table using webdynpro for abap

    Dear All,
    I have a requirement to create a table allowing the user to add rows in it and update a row as well as delete a row from that table.To do this I guess I have to make use of ALV.But using ALV I am not able to enter data to a table where as I can make a column editable delete a row etc. please guide me to perform these operations(insert,update and delete) on table.
    Thanks,
    Reddy.

    Hi Sridhar,
    By using ALV you can do all insert delete etc things. if you want to edit i mean you can yenter data in ALV.
    Check this...
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1
    Editing alv in web dynpro
    editing rows in alv reports
    Re: editing rows and columns in alv reports in webdynpro abap
    Cheers,
    Kris.

  • How to validate Date value in Text Column

    Hi All,
    I have entered DATE value in text item field(Char Data Type), Now how can i validate, the entered date is valid or not.
    Thanks in advance.

    Well, the easiest way would be to make the item of datatype DATE.
    Another possibility is to try to convert the given value to a date in the WHEN-VALIDATE-ITEM-trigger, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:BLOCK.ITEM);
      -- if code comes here, the date is valid
    EXCEPTION
      WHEN OTHERS THEN
        -- seems to be no valid date
        MESSAGE('Error');
        RAISE FORM_TRIGGER_FAILURE;
    END;Edited by: Andreas Weiden on 19.12.2010 12:23

Maybe you are looking for