How to customize error message using oraus.msg file?

Hi,
Is there a way to modify the oracle error message (for example: instead of ORA-01481: invalid number.. we modify it to "hello ! use a valid format.." ), is it possible using the oraus.msg file if not is there a solution?
Many thanks

968420 wrote:
Hi Gauyav and Keith,
i thak you for your quick responses , but i want the customized message to be displayed wherever the oracle error appears (in oracle forms screens , sql tool requests, ) not only in pl/sql code,That is a really bad idea
{message:id=1007020}
It would render the database completely unsupportable by anyone, and based on the quality of exception handling that is generally seen on these forums would result in databases that simply don't work.
SQL> declare l_dummy number;
  2  begin
  3    select null into l_dummy from dual
  4    where 0 = 1;
  5  exception when others then
  6    raise_application_error(-20666, 'It doesn''t work!');
  7  end;
  8  /
declare l_dummy number;
ERROR at line 1:
ORA-20666: It doesn't work!
ORA-06512: at line 6
as we've a lot of forms screens and it's not possible to modify all of them.These are strange kinds of forms that it is possible to create a lot of them but not possible to modify them.
Is there a solution for this?Fix the forms.

Similar Messages

  • How to show error message using java.awt?

    How to show error message using java.awt?
    Which is the class corresponding to the JOptionPane?
    Or I need to use Frame ?

    No, JOptionPane is swing!
    You would have to create your own frame, put your message in it, then show it.

  • How to Customize Error message in JXL

    Hi All,
    I want to customize error message in JXL. I.e. When we apply number validation to a cell and if you enter invalid data MS-Excel shows error message saying that "The value you entered is not valid". But I want to customize this message to "Data should be a decimal number". Can anyone help me how to acheive it. Thanks in Advance.
    Thanks
    Venkat.

    Thx alot...!! for all your valuable replies.
    And, I found a way to achieve my requirement in a declarative way.
    I just created an entity validator on EmployeeEO.
    - Rule_Type: Key Exists
    - Rule Definition:
    - Validation Target Type: Entity Object
    - Association Name : <Select Assiociation created > "EmpDeptFK"
    - Failure Handling:
    - Error Message: "Invalid Deparment ID {0} Entered. Please enter a valid Department ID."
    - Message Token for "0": Department ID
    And It fulfilled my requirement.

  • How to customize the message using HttpSession info in WL-PubServer

    Hi, im using Weblogic 10.3 Publish-Subscribe Server (PubServer) in order to create Comet application.
    http://e-docs.bea.com/wls/docs103/webapp/pubsub.html
    We are utilizing JMS Message system to support Clustered environment, and everything works great and as expected, however now we need to support sending User Customized data like (Internationalized Messages, date formatted in user timestamp preference and others).
    Since we are posting the payload updates into JMS in a subsystem this 'User Preference (stored in HttpSession) is not accessible'. My goal is to try to put a hook into WL PubServer mechanism that delivers the message to the client(which is attached to an specific Channel) and be able to customize the Data (using HttpSession information) before it gets delivered.
    I have researched about this for the past few days without luck, also trying to search information about the com.bea.httppubsub.servlet.ControllerServlet which is the responsible to handle this but again always end in a dead end. I'm starting to think this is not possible at all (at least with the current WL PubServer).
    I'll be glad to hear any feedback on this.

    Hi,
    Sender object is type of object any time if you want to use any property/attribute of sender object first you need to type cast it with your desire object.
    For more information, you could refer to:
    http://blog.jsinh.in/managing-msmq/#.VPe5mnkfqM8
    http://forums.asp.net/t/343932.aspx?How+can+I+get+values+of+sender+object+in+C+
    Regards

  • How to return error message using macro or others ways

    Hi !
    I need your help to find a technical solution.
    We have an alv object with 2 parameters (a checkbox and a writable field which is for address mail.) When you push the button B1, the function module SX_INTERNET_ADDRESS_TO_NORMAL is called to verify the email address.
    If I use the classic way to show the exceptions returned by the function module, the user can read the message but when he does an action on the program this dump. (The program has been killed.)
    I am looking for a way to show the error message and the possibility to change the email address. I think that using a popup information would work but I do not find this way very nice. Can I use macro to have the message on the status? In positive case, could you explain me how to use it?
    Thanks!

    check the context in which the message statement is running, [here in sap library - message processing|http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaae335c111d1829f0000e829fbfe/frameset.htm], you will get the answer why!

  • Function module to get error message, using MSGNR, MSG ID, MSGV1...etc...

    Hi There,
         I have BDC, in return it gives me message number, message ID, msgv1,...... etc. I want to get the original message using these values.
    Please can you tell me which function module should I use.

    Hii
    Call the FM
    <b>FORMAT_MESSAGE</b>
    <b>Reward if Helpful</b>

  • How to Write Error messages to application.log file in OAS 10g.

    Hi All i am in urgent need of writing log messages to Oracle Application Server10g application.log file.
    Using JDeveloper 10.1.3.4.0.4270.
    Thanks & Regards,
    Renuka
    Edited by: Renuka on Jan 18, 2013 8:00 AM

    Zariel wrote:Boot from where? If you want the entire boot process you can use debug parameter. BUT I dont know what you will get becauseyour harddrive gets mounted during init, and during init it dumps dmesg to a log file, i guess dmesg gets its logs from minilogd which also gets started during init. The only way of doing it would be to get the kernel to log its output to ram then flush it to disk at the relevant time. Ive no idea if you can do this or not.
    I just boot normally from my hard disk, but all the messages between "INIT version 2.86 booting" and the output from /etc/issue (when login is started), is gone. It's not in /var/log/messages nor do I get it via dmsg.
    All the kernel messages BEFORE "INIT version 2.86 booting" are logged okay.

  • How to track Error message no.

    Hi,
    Could anyone please expalin how to track error messages using message no.
    Urgent???????????????????
    Reg,
    CM

    Hi,
    You can not track just based on the Message number whether it is Error or Warning Message and where it is effecting.
    But for this message number you will have Message class/Application Area Based on this Message class you can check on which area (Masterdata/Purchasing/Inv Mgmt/LIV) this message number is effecting.
    Then in SE91 you can enter this Message class then system will show you which area it is related,what is the message number description.
    Then in MM IMG Settings you can check message number for that Particular Area.--Define Attibutes for System messages in every area.
    rgds
    Chidanand

  • Customize Error Message Page - Oracle Portal

    Hi,
    Please how i can customize Error Message Page ? or just the page not found ?
    tks
    carlo

    This is documented in the Portal admin guides.
    Make a copy of the standard error page (in the navigator) then change the portal configuration (in builder) and tell it to use your own page.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to print error messages in browser?

    When I visit a jsp file in browser, there's some errors in the jsp file, so the browser returns
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    I want the detail error messages, so I can debug my problem. How to print error message in browser or find the message in some log file?

    Hi Kanaraja,
    Thanks for your answer. I need to get certain information from the list. So, I use LIST_To_ASCII FM. However, may I know the ascii_tab should be type to what? And after this FM, do I have to use another FM to display the ascii list?
    data ABAPLIST type ABAPLIST OCCURS 0.
    SUBMIT  RPCALCU0 VIA SELECTION-SCREEN
    with PNPXABKR = 'US'
    with PNPTIMRA = 'X'
    with PNPPABRP = '10'
    with PNPPABRJ = '2003'
    with PNPPERNR-LOW = '100750'
    with PNPPERNR-LOW = '109202'
    with PNPPERNR-LOW = '100255'
    with PNPABKRS-LOW = 'US'
    with SCHEMA = 'ZUSP'
    with RADI_EDT ='X'
    with EDT_VARI = 'CUS&SAP_US'
    with TST_ON = 'X'
    EXPORTING LIST TO MEMORY and RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject       = ABAPLIST
    EXCEPTIONS
       NOT_FOUND        = 1
       OTHERS           = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = asci_tab
        listobject         = ABAPLIST
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.

  • How to display error message in abap

    How to dispaly error message in report?
    i have to check the range bewteen two days and if it is not in range have to display error message only once.
    next time if i press the execute button report will get executed without showing the warning message.
    i am calculating the days between two dates, i am displaying the error message but if i press the execute button i will not allow me to execute the report.it again shows me the error message.i have to skip this in 2nd time.
    can any one  suggest what to do with this?

    hello suman,
    i am using select-option in my report. And i have to check the difference between two dates in select option input box( low-value and high-value). if it is greater then suppose 10 then i have to display warning message at once and then if click on execute button , the report should get executed without showing any warning messages in report.
    here i am attaching my source code.please take a close look and tell me where should i have to make change.
    SELECT-OPTIONS :s_bedat FOR ekko-bedat.
    AT SELECTION-SCREEN ON s_bedat.
      IF NOT s_bedat IS INITIAL.
        PERFORM bedat_validate.                       " Perform for Purchasing Document Date Validation
      ENDIF.
    FORM bedat_validate .                        " Form for Purchasing Document Date Validation
      DATA  : diffr TYPE i.
      CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis                   = s_bedat-high
          i_datum_von                   = s_bedat-low
      I_KZ_EXCL_VON                 = '0'
      I_KZ_INCL_BIS                 = '0'
      I_KZ_ULT_BIS                  = ' '
      I_KZ_ULT_VON                  = ' '
      I_STGMETH                     = '0'
      I_SZBMETH                     = '1'
       IMPORTING
         e_tage                        =  diffr
    EXCEPTIONS
      DAYS_METHOD_NOT_DEFINED       = 1
      OTHERS                        = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF diffr GT 31.
          MESSAGE s009(zerrormsg) WITH text-000 DISPLAY LIKE 'W'.
          LEAVE TO LIST-PROCESSING.
        ENDIF.
      ENDIF.
    ENDFORM.                    " BEDAT_VALIDATE

  • Log Error Messages in the Text File using Flex

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

  • How do I view downloaded content when the error message, not a supported file type or because the file has been damaged, shows up?

    I trying to download a book as a pdf to view through my adobe reader. But every time I do I keep getting the same error message saying that the file is not a supported file type or because the file has been damaged it can't be opened or viewed. What do I do and how do I get it to work. Because as of now I only have one option of downloading the book and I've tried to download the app notable pdf to see it that worked but it didn't either. As of right now I'm using google chrome but I also tried using Safari but it's still not working. I have a Mac with a Mac OS X updated system. I need an answer ASAP. Can anyone help me?

    I have the same issue.  Almost none of the PDFs I download from Safari browser can be opened. Same message about the file being damaged or not really a true PDF.  Neither of these are the issue here. Size of file is not an issue. I have Acrobat Reader XI so I believe that's pretty up to date.  If I open with Text Editor the file is blank.  any ideas?

  • To display a continuos Error Message using BADI

    Hi Everybody,
                        There's a transaction that makes use of classes and interfaces to display an ALV grid with input enabled frames and fields. There's a need to display an error message using a specified BADI method, which gets triggered after the user enters the input. The error message is working fine for the first time.<b>But when i'm trying to enter the same input and press enter after the error message, the transaction is getting closed. How can i display the same error message, until and unless the user enters the correct input ?</b>  I've tried to trace the control using the debugger after the enter is pressed, but the debugger is also getting closed and the control is coming out of the transaction. Help me out in displaying the error message.

    Hi,
    Open the interface and go to the Methods tab.
    Select the Method and click on Parameters.
    In the method parameters, declare a variable
    RETURN      Changing      Type     ALM_ME_BAPIRET2_T.
    Now, inside your code, declare   DATA : ls_return TYPE bapiret2.
    and populate this RETURN table, something like:
            if not ( wa_mara-mtart eq 'SPAR'  or wa_mara-mtart eq 'ZMRO' ).
        CLEAR ls_return.
        MOVE 'E' TO ls_return-type.
        MOVE 'ERR_MESSAGE' TO ls_return-id.
        MOVE '999' TO ls_return-number.
        MOVE 'Enter proper error message here' TO ls_return-message.
        INSERT ls_return INTO TABLE return.
        endif.
    Then, back in your program, check if this table is empty proceed otherwise, STOP or EXIT.
    Regards
    Subramanian

Maybe you are looking for

  • What is the best way to export HDV from Final Cut Pro 5.1.2 ???

    Should I even use the compressor route? i want my to export hdv footage to dvd studio pro and burn to dvd. i want to understand the best way so it looks like the original mini hdv tape. can anyone help that has experience in this area?

  • HT2729 How can I download an HD movie from iTunes to a MacBook Air as it has less than 2GHz Processor.

    Apple won't let me download an HD movie from the iTunes store to my Macbook Air 13 inch as it has a 1.8 Ghz processor and not the 2.0 Ghz processor it says HD movies need to play. Yet this computer has enough power to play them. How do I fix this?

  • Deleting data from ODS

    Hi, i have ods it is getting upload from 2 data sources(02_SCL and Generic DataSource), SCL through Deltas, Generic Datasource using Full Load, i want to delete previous day request or changelog. but i dont want to miss the deltas of SCL. this ODS do

  • Converting MS word & excel to Appleworks?

    I have just purchased Appleworks 6.2.9 in hope of being able to leave MS Office for Mac:2004 behind. To my dismay Appleworks does not convert MS Office 2004 documents. Is there a solution for this? Will purchasing MacLinkPlus do the trick? It looks l

  • Oh dear, messed up a Quicksilver

    I have a Quicksilver G4 (digital audio, I think) 867 mhz, if that helps. I messed around with the jumper settings on the 2 ibm deskstar drives in there and now the darn thing won't boot. I also cracked off one of the screws for the vga socket on the