Customized Error Message for User

What's your recommendation re displaying Customized User Error msg as opposed to the generic, techy #SQLERRM# ?
How can one implement this ?
How can one capture #SQLERRM# (or whatever), evaluate the ORA number and display a message grandmom can understand ?
Please give an example if you can in the context of DELETE a record on P301 "Product Information" of the "Sample App"
Thanks

short of coding the dml procs yourself and trapping those error messages that way, i don't think we offer you a good way currently to trap and translate error messages coming out of our automatic DML processes. i've just logged the enhancement request to facilitate this, but for now i'm pretty sure you'd have to code that dml and trap your errs yourself.
regards,
raj

Similar Messages

  • I would like to create a custom Logout Message for users

    I would like to create a custom Logout Message for users.
    When users click the Logout button, I would like a message appear saying have they made a backup of their data.
    I know I could use LogoutHook script but I will need some help in creating one to do the above

    Can't help with that. You might post to the AppleScript forum.

  • Custom Error Message For Session State Violation

    Hi,
    Can anyone tell me is there a way to have a custom error message whenever there is a session state protection violation ?
    Currently it throws an error message as follows:
    "Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrator for assistance"
    Can i have a custom message here ? An image, or a custom text for a more friendly end-user message
    Thank you very much,
    Srikumar S

    Version of database? Version of APEX? Browsers involved? More information you provide, better response from people here...
    Thank you,
    Tony Miller
    Ruckersville, VA

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • Custom Error Messages for Database Constraint Violations Problem

    Hi
    I have added a custom message bundle for the model project as explained in
    37.8.3 in the Fusion Developer's Guide - How to customize error messages for database constraint violations.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#BABEFGCI
    Constraint Name : SYS_C0018574
    And I have following CustomErrorMessages class
    public class DBCustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "SYS_C0018574",
                               "Existing Record Found" } };
        protected Object[][] getContents() {
            return sMessageStrings;
    }This works fine when I run application model and adding records to vialate the constraint. So it gives me following message
    (oracle.jbo.DMLConstraintException) Existing Record FoundBut when run ui project it does not fire.
    Still it gives the message
    ORA-00001: unique constraint (CCBS2.SYS_C0018574) violatedCould you please shed some light?
    Edited by: deshan on Mar 15, 2011 11:28 AM

    Please see the image.
    http://4.bp.blogspot.com/-Fna66p-W5Jw/TX7uSQqqBtI/AAAAAAAAAH0/D1APg6oAIxI/s1600/1.JPG
    Error in Application Module ORA-00001: unique constraint (CCBS2.SYS_C0018574) violated exception is different from ui project.
    Any hint?
    Thanks
    deshan
    Edited by: deshan on Mar 15, 2011 10:16 AM

  • Custom error message for Back Button Error

    I am using JDeveloper 9. I have tried to create a custom error message to handle a "Back button" press.
    But the error message is usually ignored and the system's regular "Stale data" message appears. Is there a way to prevent the system's message from appearing and to raise a custom error message?

    Do the following coding in your processRequest() of the Create or udpate page.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    // If isBackNavigationFired = false, we're here after a valid navigation
    // (the user selected the Create button) and we should proceed
    // normally and initialize a new employee.
    if (!pageContext.isBackNavigationFired(false))
    // We indicate that we are starting the create transaction (this
    // is used to ensure correct Back button behavior). Note that you
    // can assign whatever name you want to your transaction unit.
    TransactionUnitHelper.startTransactionUnit(pageContext, "empCreateTxn");
    // This test ensures that we don't try to create a new employee if
    // we had a JVM failover, or if a recycled application module
    // is activated after passivation. If these things happen, BC4J will
    // be able to find the row that you created so the user can resume
    // work.
    if (!pageContext.isFormSubmission())
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // Call your method to handle creating the new row.
    am.invokeMethod("createEmployee", null);
    else
    if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "empCreateTxn", true))
    // Get the purchase order number from the request.
    String orderNumber = pageContext.getParameter("headerId");
    MessageToken[] tokens = { new MessageToken("PO_NUMBER", orderNumber)};
    OAException message = new OAException("ICX", "FWK_TBX_T_PO_UPDATE_CONFIRM", tokens,
    OAException.CONFIRMATION, null);
    // We got here through some use of the browser "Back" button, so we
    // want to display a state loss error and disallow access to the page.
    // If this were a real application, we would probably display a more
    // context-specific message telling the user they can't use the browser
    // "Back" button on the "Create" page. Instead, we wanted to illustrate
    // how to display the Applications standard NAVIGATION_ERROR message.
    OADialogPage dialogPage = new OADialogPage(message);
    pageContext.redirectToDialogPage(dialogPage);
    } // end processRequest()
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Reg:- Custom Error Message for 404 error in KM Document iView

    Hi All,
    We have a requirement to display a custom error page instead of the standard"404 - The requested resource is not available" displayed in KM document iView, when the resource in question doesn't exist.
    Is it possible to display custom error message? If so, how can we achieve this functionality? What are the settings to be made?
    Appreicate your help.
    Thanks and Regards,
    Pavithra

    Hi Ravi,
    Thank you for the reply.
    But the scenario what I am talking about is different from the one mentioned in the link.
    I am using a KM Document iView. In the iView parameter, Path to Document, I have given the path to a document which does not exist in KM.
    For example, Path to Document - /documents/Test Folder/abc.html.
    There is no document by the name abc.html in KM.
    In this case, I get an error called "404 - The requested resource is not available." How can I get rid of this message and show a custom message instead?
    Please note that, this message appears at the iView level (and not page level as mentioned in the link)
    Appreciate your help.
    Regards,
    Pavithra

  • Customized error message for MethodValidator

    Hi,
    I coded a validation method and attached it to an entity attribute through the MethodValidator of the Entity Object validation tab.
    When I test it in the application module tester, it works fine. Just the error message produce by BC4J is too generic, like "JBO-27013: Attribute set validation method validateIsSoldTo failed for attribute IsSoldTo in Customer".
    Is there anyway that I can provide a more meaningful customized error message?
    I am using JDev 3.2.2 for a JSP application using Data Tag.
    Thanks!
    Dawson

    short of coding the dml procs yourself and trapping those error messages that way, i don't think we offer you a good way currently to trap and translate error messages coming out of our automatic DML processes. i've just logged the enhancement request to facilitate this, but for now i'm pretty sure you'd have to code that dml and trap your errs yourself.
    regards,
    raj

  • Custom Error message for BI iview

    Hi guys,
    We have configured over 100 BI iviews in Portal which we do not want people to access for a certain period. A simple option we have thought is to remove all permissions on the System connector created for BI which would automatically deny users from accessing it. However, it gives a Portal Runtime Error message, is it possible to custom a message page for it?
    Thanks

    hi wang,
    this is the area u r looking
    http://help.sap.com/saphelp_nw70/helpdata/en/de/893341762ff523e10000000a155106/frameset.htm
    Custom Portal Runtime Error Page
    i wll send one more document to get out of this
    http://help.sap.com/saphelp_nw04s/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    Custom Error Pages on Portal
    these u can check for custom messages
    Custom error page - image
    bvr
    Edited by: bvr on Jul 24, 2009 11:18 AM
    Edited by: bvr on Jul 24, 2009 11:22 AM
    Edited by: bvr on Jul 24, 2009 12:24 PM

  • Custom error message in user exit is giving Short dump

    Hi All,
    We have a scenario where in if any user try to create/Change/Delete particular types of contract in SAP system we have to issue error message
    saying ZIN/ZIR contract creation/Change/Deletion is blocked in SAP. This has to be done from the web application. So we are putting below code
    in user exit MV45AFZZ in the form USEREXIT_SAVE_DOCUMENT_PREPARE.
    CONSTANTS: lc_vbcpic01 TYPE sy-uname VALUE u2018VBCPIC01u2019, u201CWeb application user ID
             lc_zin           TYPE vbak-auart VALUE u2018ZINu2019,
                         lc_zir            TYPE vbak-auart VALUE u2018ZIRu2019,
                         lc_text(32)    TYPE c VALUE u2018Check long text for more detailsu2019.
    DATA: l_uname TYPE sy-uname.
    CLEAR: l_uname.
    MOVE sy-uname TO l_uname.
    *If user ID is not the Web application ID then block the creation/Change/Deletion
    IF   l_uname NE lc_vbcpic01
    AND ( vbak-auart EQ lc_zin
    OR    vbak-auart EQ lc_zir ).
    MESSAGE e830(zv) WITH lc_text.
    ENDIF.
    This code is working fine while creating/Changing the contract i.e. Giving us error message so that user wonu2019t be able to create/change the contract.
    But when we delete the contract from VA42, Control is coming to this message statement and is giving Short dump. Below is the error analysis of the dump.
    Error Analysis:
    During "Exit Command" processing, the program tried to send a " " message.
    This is not allowed at this point in processing.
    The program had to be terminated.
    Screen name.............. "SAPMV45A"
    Screen number............ 4001
    If any one has come across such scenario/any work around for this problem please let me know your inputs. Your inputs are highly appreciated.
    I am working on 4.6C version of SAP.
    Note: When i issue information/Warning message contract is getting deleted after displaying the message.
    Thanks,
    Vinod.

    I exactly replicated the same in DELETE_DOCUMENT also
    I am getting the Dump. I tried with exit also , but it continued and deleted. To avoid deletion we have to use Leave program or LEAVE TO CURRENT TRANSACTION.
    Delete Function is Defined as EXIT command. so it is not possible to give error message. To convice you i just copied demo program and raised the error message.
    it is also giving the dump.
    copy the demo program DEMO_DYNPRO_AT_EXIT_COMMAND and make this change , information to error .
    MODULE cancel INPUT.
      MESSAGE e888(sabapdocu) WITH text-001 ok_code input1 input2.
      IF ok_code = 'CANCEL'.
        CLEAR ok_code.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    and see...

  • Error message for user (PO Release Stratregy)

    Dear friends,
    I have created PO release strategy. I want to show an error message like "You couldn't create PO. You dont have release strategy) ", If user doesn't have any strategy for current PO data. For this message Which user exit or Bapi can help me?
    Thanks

    How to control if current PO doesn't have any Release Strategies I want to show an error message. Which user exit or badi???
    Thanks

  • Custom error message for invalid date format

    Hi,
    I am using af:selectInputDate component for date. When i enter wrong date format it comes up follwoing pop up error message:
    The value "12/13/2009" is not a valid date. Valid example ""29/11/2005".
    However i dont want to show this standard message but a customised error message like "the value is not in correct format...".
    Can anyone help me how can i show customised message.

    Hi Kiran
    Try these options
    1) Change your <b>Internet Explorer</b> [The Browser which you are using] language
    2) In Application Level, ie in Webdynpro
    a)Go to <b><Your project name>>Webdynpro>Applications--><Your Application>
    Double click on your Application name</b>b) Go to Application Properties TAB, Add a New Application Property
    c) Click on "<b>Browse</b>" and Select <b>DefaultLocale</b> and mention the Value as
    <b>en_US</b> [If you didnt mention any thing here by default it will take browser's language]
    3)In your Portal check the language setting of particular user in identity management
    Warm Regards
    Chaitanya.A

  • Trapping and creating a nice error message for users

    i wanted to find out how I to create a coldfusion code similar to my asp code. i'm trying to learn coldfusion.
    This code traps the error and emails it to me, while showing the user a "friendly message"
    <!--#include virtual="Errorpage.asp"-->
    on error resume next
    if Err.number <> 0 then
      TrapError Err.description
    ON ERROR goto 0
    End If
    processerrors
    the error page sends me the message and contains a nice error message
    thanks

    There's an awful ot of good info there if one was to look for it by googling "coldfusion error handling".
    However the short version is:
    Site-wide error handler
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc .html#WSc3ff6d0ea77859461172e0811cbf3638e6-7ffb
    onerror:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 4a.html
    cferror:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 29.html
    Handling Errors:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7fc4.html
    Specifcally try/catch:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e c6.html
    Adam

  • Getting error message for "user created how tos"  CS3

    I tried to create some new How Tos in CS3 and recieved the following error message when I try to open it:
    "The Adobe Help application could not load a URL because the specified file could not be found. You may need to re-install the application and the help component."
    If I access one of the ones created with CS2 it opens (I dragged them over from CS2, I have since removed CS2 from this computer, it's still on my laptop) I haven't tried creating them and importing them to this computer).
    I'm using Microsoft Office Word 2003 to save the How Tos as html files, and notepad to edit Add_001.howto file.
    Since I gotten this error, I reloaded CS3 Design Standard, it didn't fix the problem. Also I have ensured that the Add_001.howto file points to the right location (C:\Program Files\Adobe\Adobe Photoshop CS3\Help\additional how to content)and is in the right format:
    "John Shaws CS3" "47. A GLOSSARY OF IMAGING TERMS" 47.html (works).
    "Noise Ninja" "The Thirty Second Guide to Noise Ninja" Noise Ninja 001.html (doesn't work)
    The only thing new on the computer is a brand spanking new EVGA NVidia Geforce 9500GT PCI express(512 mb ddr2 dual DVI output) with the latest drivers. It replaced NVidia GeForce 6600GS and Matrox Millenium video cards (the Matrox). The new video card does not include some program that allows it to run MS-DOS programs, but I don't feel that is causing the problem.
    System Info:
    Photoshop CS3 10.0.1
    Computer: Gateway DX310X with Gateway FPD1975W and FPD1730 monitors
    Windows XP Media Center Edition, Service Pack 3
    Intel Pentium D proccessor
    1GB internal memory
    168GB of free space on hard drive.
    I hope I have given you suffiecient information to give me some possible solutions.
    Thanks
    Rick

    Mylenium
    Thanks for the assist.
    It isn't a Windows Indexing Service problem.
    It is an operator problem. As you pointed out the long name and spacing are the issue here.
    I changed the the Add_001.howto file from:
    "Noise Ninja" "The Thirty Second Guide to Noise Ninja" Noise Ninja 001.html
    to:
    "Noise Ninja" "The Thirty Second Guide to Noise Ninja" NN001.html
    I changed the file in the Additional How To Content folder, to match.
    And it works now.
    Now that I know what was wrong with my file names, I'll be able to get the various plugin help files/documents into Photoshop so I won't have to get out of it to get help on them.
    Thanks
    Rick

  • Error message for Users

    Hello all,
    My plan is to perform four hardware checks prior to the installation of some softare - the checks are:
    OS is at least Windows 7
    HDD Freespace is not less than 6.0 GB
    CPU is greater 4.00Ghz
    RAM is not less than 2.0 GB
    Scripting the above is pretty easy...but what I now want to do is capture any of the failed checks and report them to the user.
    E.g. one computer might fail HDD and RAM checks but another system may only fail on RAM - how can I dynamically build up a message to inform the user of the specific issue with their machine?
    It would be pretty easy to just pop-up some info to the user stating that their machine doesnt meet the minimum specs but I'd rather tell them more specifically what the issue is so the service desk don't have to connect and figure out which check
    or checks have failed....hope this makes sense?
    Thanks,
    C
    Carl Barrett | Twitter: @Mosquat

    multiple ways of handling this. one would be to define variables you set to true or false for the different conditions. after the checks, you build your error string depending on which variables are true or false and show it to the user.
    pseudo code like:
    $errorMessage = "Your system doen't meet the following minimum requirements: "
    if($yourRamCheck -eq $true)
    $errorMessage = $errorMessage + "System RAM below requirements"

Maybe you are looking for