Insert Year in F4 help

Hi Guys,
I have a requirement to add only year(Like 2000,2001,2002..) to one of the field. Whenever user clicks on F4, the Year list should populate and the mentioned year is entered in the field. Is there any way to achieve this?
Cheers:)

Issue has been resolved.
In PM01, I have added the field as year and selected as the mandatory field.
Having said that, I have not used the F4 help for inserting the year.

Similar Messages

  • How do I pay for my storage plan when I don't have a credit card? Last year I used an iTunes voucher but can't find that option this year. Please help!

    How do I pay for my storage plan when I don't have a credit card? Last year I used an iTunes voucher but can't find that option this year. Please help!

    Create an iTunes credit by redeeming a gift card and it will be charged to your credit.  From http://support.apple.com/kb/ht4874:
    "payment methods accepted include iTunes store credit, credit cards, and debit cards"

  • I am an MBA student , doing a research project on e-learning authoring tools, would like to find out no. of licences sold/active to date for adobe captivate. how many get sold every year. any pointers/help is appreciated. cheers.

    I am an MBA student , doing a research project on e-learning authoring tools, would like to find out no. of licences sold/active to date for adobe captivate. how many get sold every year. any pointers/help is appreciated. cheers.

    I doubt you'll get an answer in a user forum, sorry. This forum is meant for users to help other users when they have problems that have to be solved. You should contact Adobe itself.

  • Hi I bought this Friday a 10 GB storage plan, but I received an email than I need to pay it every months how I can cancel this contract Becouse I don't able to pay it every years somebody can help and explains it to me please thanks you

    Hi I bought this Friday a 10 GB storage plan, but I received an email than I need to pay it every year how I can cancel this contract Becouse I don't able to pay it every years somebody can help and explains it to me please thanks you

    From this page http://support.apple.com/kb/TS4009 :
    iOS 5
    From your home screen, tap Settings > iCloud.
    Tap your iCloud account at the top of the screen.
    Select your iCloud Storage plan.
    Tap Downgrade Options and follow the prompts.
    There are also instructions for Windows and Mac OS X on that page

  • I try to connect my iPhone to my mercedes 2008 e 350 and it said insert phone would anybody help me out?

    i try to conect my iphone to my mercedes 2008 e 350 and it said insert phone would anybody help me out ?

    same problem here as well

  • My iphone 4 is getting stuck during gaming when sim card is inserted. Call anyone help me out to solve this problem?

    My iphone 4 is getting stuck during gaming when sim card is inserted. Call anyone help me out to solve this problem?

    That doesn't make any sense to me at all, unless the games you're trying to play have some sort of online connection/capability and you're in a weak signal area, thus the games can't make the required online connection. What happens when you turn cellular data off in settings: Settings>General>Network>Cellular Data>Off.

  • TS1717 all of a sudden, iTunes has stopped asking me if I want to import when I insert a cd.  Help!

    all of a sudden, iTunes has stopped asking me if I want to import when I insert a CD!  Help!

    See: Replace Your Preferences

  • Problem in reading Data and Inserting...Urgent help..

    INITIALIZATION.
      AUTHORITY-CHECK OBJECT 'ZZABAP'
               ID 'ZZABAP' FIELD 'ZCOU2006'
               ID 'ZZAKTI' FIELD '1'.
      IF sy-subrc <> 0.
        MESSAGE e001(zm) WITH text-001.
      ENDIF.
    *... Selektionen .......................................................
      PARAMETER:
        bu AS CHECKBOX,
        p_vtweg LIKE zknvh-vtweg OBLIGATORY.           ".. Update JA/NEIN ?
    START-OF-SELECTION.
    *... Löschen ZKNVH .....................................................
      IF NOT bu IS INITIAL.
        DELETE FROM zknvh WHERE hityp = 'A'.
        IF sy-subrc GT 4.
          ROLLBACK WORK.
          MESSAGE e001(zm) WITH text-002.
        ENDIF.
      ENDIF.
    *Select the Vtweg and perform based on the Vtweg..
    *Running two Variants in the BG processing..
      IF p_vtweg EQ 'MZ'.
        PERFORM form_06.
      ELSEIF p_vtweg EQ 'AU'.
        PERFORM form_04.
      ENDIF.
          FORM form_06                                                  *
    FORM form_06.
    *... Fuellen LKNVH ....................................................
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor = '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
    *... Fuellen Knoten KKNVH .............................................
      SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
    *... Aufbau BU_ZKNVH ..................................................
      LOOP AT lknvh.
        CLEAR: bu_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO bu_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          bu_zknvh-hier05 = lknvh-hkunnr.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. bu_zknvh-hier04 = kknvh-hkunnr.
              WHEN '04'. bu_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. bu_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. bu_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND bu_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_06
    Form_4 looks exactly like form_6 just the table name changed and Hier05 and Hier04 fields are Blanks..
    INSERT zknvh from Table bu_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
    INSERT zknvh from Table au_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
    1) When I select VTWEG 'MZ' everything is working without anyproblem...
    2) When I select VTWEG 'AU' I can see only one RECORD.. where as their are around 41,000 records.. in this Selection..
    Normally with this prog the ZKNVH table should be filled with the specified fields..
    Only if the VTWEG is AU the Hier05 and Hier04 is Blank and others are filled with data.. bcoz in the Customer Hierarchy of AU has only 4 levels...
    and if VTWEG is MZ all the fields should be filled with data as the Customer Hierarchy of Mz has 6 levels..
    Please check the prog and suggest me how I can Fill append the table ZKNVH with data when I select AU..
    Thanx in advance...
    Preethu
    Message was edited by: Preethu

    HERE IS THE FULL CODE:: please help
    REPORT zcou2006.
    TABLES: zknvh.
    *... Datentypen ................................
    TYPES:
         BEGIN OF t1_knvh,                 "... Knoten
            mandt LIKE knvh-mandt,
            hzuor LIKE knvh-hzuor,
            hityp LIKE knvh-hityp,
            kunnr LIKE knvh-kunnr,
            vkorg LIKE knvh-vkorg,
            vtweg LIKE knvh-vtweg,
            spart LIKE knvh-spart,
            hkunnr LIKE knvh-hkunnr,
            hvkorg LIKE knvh-hvkorg,
            hvtweg LIKE knvh-hvtweg,
            hspart LIKE knvh-hspart,
            grpno LIKE knvh-grpno,
            bokre LIKE knvh-bokre,
            prfre LIKE knvh-prfre,
          END OF t1_knvh,
          t2_knvh LIKE knvh,
          t3_zknvh LIKE zknvh,
          t4_zknvh LIKE zknvh,
        t1_hknvh TYPE HASHED TABLE OF t1_knvh WITH UNIQUE KEY
                  mandt hzuor hityp kunnr vkorg vtweg spart.
    DATA:
      lknvh TYPE t2_knvh OCCURS 0 WITH HEADER LINE,
      bu_zknvh TYPE t3_zknvh OCCURS 0 WITH HEADER LINE,
      au_zknvh TYPE t4_zknvh OCCURS 0 WITH HEADER LINE,
      kknvh TYPE t1_hknvh WITH HEADER LINE,
      flag(1) TYPE c,
      help_hzuor LIKE knvh-hzuor,
      zaehler TYPE p.
    INITIALIZATION.
      AUTHORITY-CHECK OBJECT 'ZZABAP'
               ID 'ZZABAP' FIELD 'ZCOU2006'
               ID 'ZZAKTI' FIELD '1'.
      IF sy-subrc <> 0.
        MESSAGE e001(zm) WITH text-001.
      ENDIF.
      PARAMETER:
        bu AS CHECKBOX,
      p_vtweg LIKE zknvh-vtweg OBLIGATORY.          
    START-OF-SELECTION.
      IF NOT bu IS INITIAL.
        DELETE FROM zknvh WHERE hityp = 'A'.
        IF sy-subrc GT 4.
          ROLLBACK WORK.
          MESSAGE e001(zm) WITH text-002.
        ENDIF.
      ENDIF.
      IF p_vtweg EQ 'MZ'.
        PERFORM form_06.
      ELSEIF p_vtweg EQ 'AU'.
        PERFORM form_04.
      ENDIF.
    FORM form_06.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor = '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
      LOOP AT lknvh.
        CLEAR: bu_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO bu_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          bu_zknvh-hier05 = lknvh-hkunnr.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. bu_zknvh-hier04 = kknvh-hkunnr.
              WHEN '04'. bu_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. bu_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. bu_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND bu_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_06
    FORM form_04.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LE '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
      LOOP AT lknvh.
        CLEAR: au_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO au_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          au_zknvh-hier05 = '          '.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. au_zknvh-hier04 = '          '.
              WHEN '04'. au_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. au_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. au_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND au_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_04
    END-OF-SELECTION.
      INSERT zknvh FROM TABLE bu_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
      INSERT  ZKNVH FROM TABLE AU_ZKNVH.
      MESSAGE I002(ZM) WITH TEXT-006 SY-DBCNT.
      IF SY-SUBRC <> 0 OR BU IS INITIAL.
        ROLLBACK WORK.
        MESSAGE E001(ZM) WITH TEXT-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
      CALL FUNCTION 'Z_SELECT_OPTIONS_PRINT'
           EXPORTING
                irepid  = 'ZCOU2006'
                ausgabe = ' '
           EXCEPTIONS
                OTHERS  = 1.
    Message was edited by: Preethu

  • Inserting data with the help of nested table...!!!

    The following block is giving error
    ORA-06502: PL/SQL: numeric or value error
    the signature and signature_bkp have the same structure
    So, can anybody help me out to solve this issue :
    for copying records from one table to another table
    Thanking You advancely
    DECLARE
    CURSOR c1
    IS
    SELECT *
    FROM signature
    WHERE creation_time > TRUNC ( SYSDATE ) - 100
    AND ROWNUM < 102;
    TYPE sig_typ IS TABLE OF signature%ROWTYPE;
    sig_t sig_typ;
    BEGIN
    OPEN c1;
    FETCH c1
    BULK COLLECT INTO sig_t;
    CLOSE c1;
    FORALL i IN sig_t.FIRST .. sig_t.LAST
    INSERT INTO signature_bkp
    VALUES sig_t ( i );
    COMMIT;
    END;
    --DKar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Or whether a INSERT statement with SELECT clause will do that for youby using this technique, it took 47:08:45 to copy 7252 rows
    and by using a cursor for loop took 49:03:23 to copy 13567 rows
    So there was appox. 40% increase in performance by using pl/sql. I thought it could be even faster using the bulk-bind ing features and nested tables.
    OR i just want to know ....how to correct the block of code that was given in my 1st msg without changing its logic.
    Thanks
    --DKar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Black screen on bootcamp after a year of use help please

    i have a macbook pro and I installed bootcamp  on the partition i made. after a little bit less then a year it crashed and gave me a black screen when i turned it back on after a improper shut down i need help please if some one can help me i would be most greatful. 

    https://discussions.apple.com/community/windows_software/boot_camp
    The gurus are there.

  • Bulk insert of text file Help PLEASE!

    Hello,
    I am trying to insert the following data into a sql server table.
    11470012 31020141100AMFI2              TENTATIVE APPOINTMENT SET FOR 03/17/2014 AT 10:00 AM
    11470012 31720141000AMFI7              INTERVIEW COMPLETED.
    I am using the following code.
    Bulk Insert dbo.Totalnt
    From 'c:\totalnt.txt'
    with (rowterminator = '\n');
    I get the following error.
    Msg 4866, Level 16, State 7, Line 4
    The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.
    Msg 7399, Level 16, State 1, Line 4
    The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
    Msg 7330, Level 16, State 2, Line 4
    Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
    Please help,
    M. Wilson
    M. Wilson

    Here is the create table statement.  I appreciate your assistance.  I have never imported a file into sql server.
    USE
    [2013ProductionData]
    GO
    /****** Object:  Table [dbo].[Totalnt]    Script Date: 03/31/2014 21:24:17 ******/
    SET
    ANSI_NULLS
    ON
    GO
    SET
    QUOTED_IDENTIFIER
    ON
    GO
    CREATE
    TABLE [dbo].[Totalnt](
    [Cluster] [nvarchar]
    (2)
    NOT
    NULL,
    [Project] [nvarchar]
    (3)
    NOT
    NULL,
    [Case] [nvarchar]
    (2)
    NOT
    NULL,
    [RecType] [nvarchar]
    (1)
    NULL,
    [ContactDateM] [nvarchar]
    (2)
    NULL,
    [ContactDateD] [nvarchar]
    (2)
    NULL,
     [ContactDateY] [nvarchar]
    (4)
    NULL,
    [ContactTimeH] [nvarchar]
    (2)
    NULL,
    [ContactTimeM] [nvarchar]
    (2)
    NULL,
    [ContactTimeAMPM] [nvarchar]
    (2)
    NULL,
    [Who] [nvarchar]
    (2)
    NULL,
    [Result] [nvarchar]
    (1)
    NULL,
    [ApptDateM] [nvarchar]
    (2)
    NULL,
    [ApptDateD] [nvarchar]
    (2)
    NULL,
    [ApptDateY] [nvarchar]
    (4)
    NULL,
    [ApptTimeH] [nvarchar]
    (2)
    NULL,
    [ApptTimeM] [nvarchar]
    (2)
    NULL,
    [ApptTimeAMPM] [nvarchar]
    (2)
    NULL,
    [Comments1] [nvarchar]
    (50)
    NULL,
    [Comments2] [nvarchar]
    (50)
    NULL,
    [Comments3] [nvarchar]
    (50)
    NULL,
    [Comments4] [nvarchar]
    (50)
    NULL
    ON [PRIMARY]
    GO
    M. Wilson

  • HT2905 I have lost all my play lists from my itumes library, and all of a sudden i have 2/3/4 duplicates of the same song. when i look at when they were added it says all added on 11th March 2013! i added most of them years ago. please help?!!

    All my plat list have vanished, and all of my library has been duplicated and triplicated and some have 4 copies. i looked to try and delete the copied ones and tried to delete by putting on when they had been added. the date came up 11th march 2013 for ALL of the songs!. my library is at least 4 years old, and i constantly add songs. so why would it come up that date? and why have all my play list dissapeared?(I think also on that date)  please help?

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be renamed as iTunes Library.itl to restore the library to a recent state.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    I've noticed more of these missing library posts of late and a common factor since I started asking is AVG Anti-Virus. It seems it might be at least part of the reason why the library file disappears. Try excluding the iTunes folder from any real-time scanning process.
    Reverting to an earlier version of your library may clean up the duplicates issue along with restoring the original date added values. If you still have real duplicates I have a tool that might be able to help...
    tt2

  • Troubleshooting RAM .... need New Year's Eve Help ...

    I want to start out tby telling you just how cool I am.   It's 11:05 on New Year's Eve and I have been trouble shooting the RAM of my early 2008 Mac Pro for 3 hours.   Yep, real cool.
    I have tried multiple configuration of memory cards - 4 in the top, 2 in the bottom; all slots used; 2 in top, 2 in the bottom .... replacing cards with alternate cards .... you name it.   For some reason it will only accept 4 cards and when I fill all slots it accepts 2 cards.
    Can anyone help?   Your assistance is much appreciated.   Oh, Happy New Year!

    Much appreciated guys!   You were correct.   I added another 2 4GM DIMMs.  So the top has 4 4GB and the bottom has 4 2GB.   Top and bottom DIMMs are different manufacturers.   It works!
    You know it's amazing how this computer is an early 2008 and the only real upside I see in new iMacs versus my computer is Thunderbolt (I upgraded my video card to a Radeon 5770).   Not that big of a deal ...
    Thanks again!

  • Servlet not inserting into Access Databse. help please

    I have the following code which is inserting three fields into a database. The database name is contacts.mdb, and the table is contacts. I have setup the ODBC connection on the server, of which I have both IIS and Tomcat running. The form.html that I am accessing is on the tomcat server root and that code is below as well. After hitting the submit button on the form I get forwarded to the servlet, and the page is blank. However, when I open the database, no updates have occured. Please help. I hope I have provided enough detail. Thanks so much.
    -------- servlet code start --------------
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
    extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = "jdbc:odbc:terry_web_contacts";
    Connection databaseConnection = DriverManager.getConnection(sourceURL);
    Statement stmt = databaseConnection.createStatement();
    String jname = request.getParameter("Name");
    String jemail = request.getParameter("Email");
    String jcomments = request.getParameter("Comments");
    String sqlInsertString ="INSERT INTO contacts (name, email, comments) VALUES ('" + jname +"', '" jemail "', '" + jcomments + "')";
    stmt.executeUpdate(sqlInsertString);
    databaseConnection.close();
    catch(ClassNotFoundException cnfe)
    System.err.println("Error loading Driver");
    catch (SQLException sqle){
    System.err.println("SQL Error");
    ---------- servlet code end ---------------------
    ---------- html form code start ------------------
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="WHITE">
    <TABLE BORDER="2" CELLPADDING="2">
    <TR><TD WIDTH="275">
    <H2>I'm a Simple Form</H2>
    <FORM METHOD="POST" ACTION="/servlet/WebServlet">
    <p>
    <INPUT NAME="Name" TYPE="TEXT" id="Name" SIZE=30>
    </p>
    <p>
    <INPUT NAME="Email" TYPE="TEXT" id="Email" SIZE=30>
    </p>
    <p>
    <textarea name="Comments" id="Comments"></textarea>
    </p>
    <P>
    <INPUT TYPE="SUBMIT" VALUE="Click Me">
    <INPUT TYPE="RESET">
    </FORM>
    </TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    ------------- html code end ------------------

    Okay, here is my modified code. However, I catch a sql error. It prints out "sql error". If I try to isolate the different lines of code with try catch blocks, the compiler says it does not recognize the symbols for example stmt, or databaseConnection. Arggh, what can I do? Help please.
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
        extends HttpServlet {
      public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException,IOException
         PrintWriter out = response.getWriter();
         String jname = (String) request.getParameter("Name");
         String jemail = (String) request.getParameter("Email");
         String jcomments = (String) request.getParameter("Comments");
    try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException e)
         out.println("class error");
    try
         Connection databaseConnection = DriverManager.getConnection("jdbc:odbc:terrycontacts");
         Statement stmt = databaseConnection.createStatement();
         String sqlInsertString ="INSERT INTO contacts(name,email,comments) VALUES('"+jname+"','"+jemail+"','"+jcomments+"')";
         stmt.executeQuery(sqlInsertString);
         databaseConnection.commit();
         databaseConnection.close();
    catch(SQLException e)
         out.println("sql error");
         out.close();
    }

  • Podcast feed removed  after 3 years from itunes - help!!

    Hello Members,
    We have had our podcast working for last 3 years. The feed works and it's just a Trance Progressive music feed and we have not had any problems since 2006. Last year Dec 21st we received an email stating the feed was removed due to technical difficulties. I have manually accessed the feed from itunes from the advanced menu and it works.
    We have resubmitted the feed a month ago and no response from apple so far. Also, have exchanged emails with the apple support guys and they are of no help, they just copy/paste standard response.
    Our feed is:
    http://www.av-brothers.com/AV-Brothers/TrancePortal/rss.xml
    We are lost and feel like Apple killed our podcast for no reason.
    Any help is appreciated!
    Thanks!
    Aj & Vj
    www.av-brothers.com
    www.myspace.com/avbportal

    They always say 'technical diffculties' whatever the real reason. Looking at your feed, it seems a possibility that they may be concerned that you are using copyrighted material without either the written consent of the owners or a valid licence from a recognized authority. If that's not the case, and you do in fact have permission or a licence, then you need to try to explain that to them.
    Were you not to have permission then you would be in breach of copyright (not receiving payment doesn't affect that fact) and you can understand that they wouldn't want to be accused of publishing it (since there is still a legal row going on as to whether ISPs are publishers or simply transmitters of the contents of podcasts, file-sharing sites, and so on).

Maybe you are looking for

  • Using WMV in Premiere Pro and dealing with huge idle processes

    Ok, I'm not sure if these two issues are related but here goes. I am a training developer, and a lot of what I do is editing screen captures. I have Production Premium that I use to edit my screen captures. The screen captures I get using the free Mi

  • Urgent - XQuery ERROR in Aqualogic Console

    Hello everybody! I am getting the following error in my Xquey in ALSB console. Could you plase help me? An error occurred creating the resource: An error occurred compiling the XQuery resource: line 6, column 26: {err}XQ0046: "http://www.tibco.com/sc

  • FI Credit/Debit  note printing

    Hi all,         I need to print the standard Credit/Debit notes.F140_DOCU_EXC_01 this is the SapScript.Is there any stadard way to display these FI credit/debit notes int the system.Or we need to convert it into Z. Thanks and Regards, Seema.

  • Plsql code

    Hi all, I want code in plsql to write A stored procedure which has EMPLOYEE_ID and START_DATE as input and returns first ten SESSION_DETAILS from EMPLOYEE table which match on EMPLOYEE_ID and input START_DATE is equal to or greater than table START_D

  • File icon invisible.  How can I find it?

    I have two files on my Intel iMac.  I know they are there but the icons do not appear for some reason.  How can I fix this?  Thanks.