Display error message when duplicate entry made

hello
i have a jsp form, from that i have insert my data to the database, and also the insert values shows on the other jsp file.
i have used jdbc for that.
My problem is that when i made the dulicate entry for the partocular on field value, it doesnot shows error on jsp file.
The error is shown in tomcat server, but not in any file.
i have also made that paticulay field not null.
my sql table is as follows:
Name Null? Type
GL_CODE NOT NULL NUMBER(4)
GL_DESCR NOT NULL VARCHAR2(80)
DB_AMT NUMBER(15,2)
CR_AMT NUMBER(15,2)
GL_TYPE VARCHAR2(2)
GL_PCT NUMBER(4,2)
plz help me..
plz provide me query for that..
thanx

Hi,
You should catch the SQLException that will occure when you try to insert the values (that is if you have created a unique constraint in the database)
/Kaj

Similar Messages

  • OBA5 : Error Message for duplicate entry

    Hi
    In Tcode OBA5 - i enter F5 as Apllication area and i select new entries - i Enter 117 - and i Enter E before i save.
    but when i go to MIRO to check if there is an error message for duplicate entry, i find just a Warning Message !
    Please did i forget any thing ? please advise.
    Thank You,

    Hello,
    OBA5 should be enough, but you must remenber that the following fields must be identical for duplicate invoice check:
         Company code                           (BUKRS)         
         Vendor number                           (LIFNR)         
         Currency                                    (WAERS)         
         Reference number                       (XBLNR)         
         Amount in document currency      (WRBTR)         
         Document date                           (BLDAT)         
    Note 305201 is also helpful.
    Cheers

  • I am getting error messages when keying entries into SAP in transaction cod

    I am getting error messages when keying entries into SAP in transaction code F-02.  It will tell me that an asset doesn't exist in the company code I am posting to when the asset does exist.  For example in the parked document 101079622 it tells me that asset WV0707711 doesnt' exist in CoCode .  But what is keyed in the document is WV07077 1 1. 
    And when i look in Transaction AS03 for this asset number it does indeed exist in Co Code.  Also if you take these assets out and park it and then go into Transaction FBV2 and add the asset back into the document it will add it and then post to it.  This happens often and is very time consuming.  I need to know how to fix this without all this additional effort

    Hi,
    it is urgent can any one help on this.
    Thanks,
    Sridhar Reddy.G

  • My Windows tablet is authorized on i-tunes, but displays error message when syncing that is needs authorized?

    I have a Microsoft Surface tablet and when I try and sync my i-phone is displays an error message that the computer isn't authorized.  I have repeatedly authorized the computer and de-authorized all of them and started over, but still doesn't work?

    Click here and follow the instructions.
    (93307)

  • Code to display error msg if duplicate entry

    I have an upload program to upload csv file to itab, and i need a sample code for the employee id to give me an error message if a duplicate employee id is found during execution.

    After Upload you can delete the Duplicates comparing the employee Id.
    It Will be Possible only when you use OLE and read the file records line by Line. I am not sure of the error Handling with OLE control. It may lead to some performance issues..

  • How to raise an error message when duplicate value is entered in a tabular field column? Basically not allow duplicate value at the form level.

    Hi all,
    I have created a form with one data block MATURED_FD_DTL which looks like below:
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    TDS
    CHQ_NO
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      ADD_FD_AMT    NUMBER(15),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    For MATURED_FD_DT.ACCT_FD_NO, Trigger: KEY_NEXT_ITEM, I have written the following code:
    DECLARE
    V1 NUMBER;
    V2 NUMBER;
    BEGIN
    V1:=:MATURED_FD_DTL.ACCT_FD_NO;
    MESSAGE('V1:'||V1);
    MESSAGE(' ');
    END;
         GO_ITEM('MATURED_FD_DTL.CUST_CODE');
    This is just a dummy code.
    When ever i enter the value in the field of ACCT_FD_NO, it pops up a message saying "V1:Value of ACCT_FD_NO",
    So i want to store that value .
    Compare them & if it is egual, it should pop up a message saying duplicate value is entered and must not allow to enter, at form_level.
    So how can I compare the ACCT_FD_NO value between FIRST_RECORD and NEXT_RECORD ??
    Help Me .
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    Thank You HamidHelal.
    Actually before posting the code, I went through the first link you have mentioned. I tried also, it is quite tedious procedure, however i dint get the proper result, may be i have done some mistake. Anyways , can you tell me how do i check in database table, if a value exists OR IF VALUE FOUND & then message and raise form trigger failure; something like below.
    IF :MATURED_FD_DTL.ACCT_FD_NO EXISTS
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    OR
    IF :MATURED_FD_DTL.ACCT_FD_NO FOUND
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    Is there any equivalent in the form in oracle forms 6i?? Please let me know how do i do this??

  • Windows 7 displays error message when exiting +cursor issue

    Two issues here. CS5 Phoshop on Wind 7 64 bit.
    Physical processor count: 8
    Processor speed: 3073 MHz
    Built-in memory: 12279 MB
    Free memory: 9577 MB
    Memory available to Photoshop: 10934 MB
    Memory used by Photoshop: 80 %
    Image tile size: 128K
    First issue is since the latest automatic Adobe update (why fix what isn't broken?) Every time I now exit Photoshop I get the message "Adobe QT Server has stoped working" and occasionally it happens when I exit bridge. Indesign is also behaving badly. I can no longer start a previous document from file manager without ID crashing out.
    The other is the cursors in Clone and erase lose their edge (become invisable) for no reason - well not quite. Noise Ninja crashed Photoshop when I tried to use it. I reinstalled it and all is well. The cursor issue seems to be intermittant but came back (for no reason) after I reinstalled NN. I can't seem to change the cursor, no matter what I do. The problem is now seriously affecting how I work. Almost enough to go back to Win XP which ran CS5 Photoshop flawlessly.
    Any help will be gratefully accepted.
    Doug

    function(){return A.apply(null,[this].concat($A(arguments)))}
    doug87510 wrote:
    The recent problem is the entire outline of the cursor (including the crosshair in the middle) was missing at any size of cursor. All I had was exactly what I'd get if I used a real spraygun.
    Well, that issue is simply a matter of hitting the Caps Lock key.  When Caps Lock is on, you'll see the cursor outline, and when it is off you'll see a crosshair.  That's a feature, not a bug.
    Glad to hear the 11.1 drivers are out.  I will download them and try them now myself.
    Regarding "Adobe QT" crashing...  QT brings to mind QuickTime, though that is Apple, not Adobe.  Do you have Apple QuickTime installed?
    Regarding memory usage, with 12 GB of installed RAM, you should be able to set Photoshop to use 90% or more in Edit - Preferences - Performance.
    -Noel

  • ITunes displaying error message when trying to copy songs to iPod

    I've been having intermittent problems with my iTunes/iPod setup since about the time I got an iPhone 3G. The problems were with syncing or not mounting correctly.
    I'm still having the mounting issues but I'm no longer able to sync my contacts at all (I don't sync anything else). I manually add/remove tracks from the iPod, but can also no longer do this.
    I have also tried resetting the iPod and restoring through iTunes. With the restore option I receive the same 'insufficient privileges' warning and it will not restore.
    I have also recently upgraded to 10.5.7 (and repaired permissions before and after).
    I'm fairly sure it's the iTunes setup on my current machine as when I use the iPod on my iMac I can easily add/remove items.
    I'm tempting to use the restore function from the iMac but am skeptical it will work because the only thing new introduced to the MacBook is the iPhone. The iPhone syncs bookmarks, contacts, some photos, applications and that's it.
    Anyone have some theories? I've read some places about the iPhoto cache being a problem but I deleted it and I'm still having the above issues. Boo.
    Thanks.

    Try this. When the stick is mounted on your desktop, right click "Get Info" and at the bottom choose "ignore ownership on this drive." See if that works.
    Bryan

  • How to display error message when writing into Header text of VA02

    Hi All
    I have a requirement. I have a header text 'English' in VA01/VA02 transaction. I need to put a condition that whenever the user log-in is English language, then only he should be able to write text into that HEADER text 'English', else it should not allow the user to write anything.
    Is it possible to be done through any ABAP coding.
    Kindly help
    thanks and regards
    shilpa

    Hi
    Yes u can, but I think it's not easy to understand which language was used to write a text.
    U can use the fm READ_TEXT in order to get the text, but then I don't how u can decide if the text is in English or French or Italian...
    Max

  • Error message when hyperlink page not found

    I have setup hyperlink for one of the field. I would like to display error message when hyperlink page is not exists. Currently it displays standard page not found error.
    Message was edited by:
    user448086

    This sometimes is the result of firewall software protecting you from changed applications. Or it might be something else. Can you review this article and see whether it helps: [[Firefox can't load websites but other browsers can]].

  • When I start my computer I get a "AppleSyncNotifier.exe Entry Point Not Found message.  I also get an error message when trying to sync with iTunes that a backup session cannot be started.  How do I fix this?

    In the last few days when I start my computer, I get a box that opens with "AppleSyncNotifier.exe" Entry Point Not Found in the title.
    It says:  "The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQlite3.dll.
    I have tried uninstalling and reinstalling iTunes and still get an error message when trying to sync my phone with iTunes
    "iTunes could not back up iPhone ####, because a session could not be started with the iPhone."
    The last time I tried to sync my phone (iPhone 3G S) with iTunes, everything seemed to freeze up at Stage 4 of the sync process. 
    Any advice????

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • Error message when clicking on links from thunderbird: Firefox.exe – Entry Point Not found

    When I click on any link in a Thunderbird email message I get the error message:
    Firefox.exe – Entry Point Not found
    The procedure entry point ?DllBlocklist_Initialize@@YAXXZ could not be located in the dynamic link library T:\PQligP sFuvy (X86)\pJPpSox HneiCFv\GwCMqTQ.Oqt.
    I tried uninstalling Firefox 27 completely and reinstalling it, and the error is still there. When I uninstall V27 and install the older V26 the error disappears. Id there an issue with V27 trying to work with links from Thunderbird?
    I am on a laptop running Windows 8.1 with all current downloads.

    Thanks for the reply - as best as I can tell it seems to be some kind of incompatibility between Thunderbird V24.3.0 and Firefox V27. If I install Firefox V26 then everything works as it should. I haven't tried installing a previous version of Thunderbird to see if that makes a difference.

  • After installing a new version of Firefox, I get the error message "The procedure entry point JS_GetOperationLimit could not be located in the dynamic link library js3250.dll" when I try to start firefox. Elsewhere in the forum a complete reinstall is su

    After installing a new version of Firefox, I get the error message "The procedure entry point JS_GetOperationLimit could not be located in the dynamic link library js3250.dll" when I try to start firefox. Elsewhere in the forum a complete reinstall is suggested; however, I can't do that because of my company's IT policies. Is there any way to solve this problem WITHOUT a complete reinstall? Thank you!
    == This happened ==
    Every time Firefox opened
    == I installed a new version ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)

    If you can't reinstall Firefox yourself then you need to contact your IT department and ask them to check the Firefox installation.
    It is possible that some files got broken with the latest update.

  • ITunes displays -48 error message when syncing iPod Nano on Windows XP

    My girlfriend's mom's iPod Nano ran out of charge while jogging so she decided to charge it on her daughter's iHome. The next day she went to use her iPod but it was totally empty of all music and files. When she tried to sync it to iTunes, she received an eror message stating, "An unknown error has occurred (-48)" from iTunes and a Windows message stating that some iPod folder/file was corrupted.
    If anyone receives such a message, I was able to correct it by:
    -Plugging in your iPod to your PC
    -Ignore the error messages
    -Go to My Computer
    -Find your iPod's drive letter (ie. G:)
    -Right-click on it and select Properties
    -Go to Tools Tab >Error-checking and select Check Now
    You should be able to sync your iPod as before. I do not claim to be an expert so be warned that it may not work for you. Good luck!

    Hey ermides,
    Thanks for the question. The following resource provides information if you are receiving a -50 error message when syncing:
    iTunes displays -50 error message when syncing iPod on Windows XP - Apple Support
    http://support.apple.com/en-us/ts1539
    Thanks,
    Matt M.

  • ITunes displays -50 error message when syncing iPod on windows 7

    I am trying to sync my ipod and appears this error
    iTunes displays -50 error message when syncing iPod

    Hey ermides,
    Thanks for the question. The following resource provides information if you are receiving a -50 error message when syncing:
    iTunes displays -50 error message when syncing iPod on Windows XP - Apple Support
    http://support.apple.com/en-us/ts1539
    Thanks,
    Matt M.

Maybe you are looking for

  • Error in using Class class

    This is probably to do with my enviroment having a problem but when I try to compilee ShowMethods.java from Chapter 10 of thinking in Jave (code below after error messages) I get the following error:- ShowMethods.java:23: cannot access Class bad clas

  • Adobe Acrobat plugin creates a fake entry at Windows' taskbar

    Hello. Since a few Firefox and Acrobat Reader versions back (not sure which ones), whenever I open a PDF file in Firefox, Adobe's plugin creates a bogus window at my Windows' taskbar. It has the default unknown application icon, with no title, and it

  • Problems persisting the collection object in Web dynpro context

    Hello, I am trying to bind a Instance of hashtable (java.util.Hashtable) in the context. I instantiate a hashtable and bind it to the context for the first time, when i fetch it, it returns null. Is it possible to store a collection object in the con

  • Acrobat 9 Plugin and Orbix2000 issues

    I build a plugin using Acrobat 9 SDK.  The plugin starts a CORBA (Orbix2000) instance and a call back function in CORBA.  The same plugin works fine with Acrobat 8. In Acrobat 9.x (9.1 and 9.2), after the call back function in CORBA, most of the Acro

  • Why do some messages contain a response payload, and some don't

    I have noticed that when we send a message into an IDoc adapter, the message in XI contains the original data in the Inbound Message (CENTRAL)/Payloads/MainDocument section, and the final version of the transformed message which the IDoc adapter rece