| |
Error HandlingError Prevention | Error Handling for Fields | Error Handling in Tables Beside help, error handling is an important aspect of user support. Error handling helps users to overcome problem situations and to continue their work. Typically, error handling is done by indicating the location where the error occurred and by sending an error message that notes the error, explains the reason for it and - ideally - provides hints on how to remedy the error situation. For details on message texts see chapter Formulating Messages in the SAP Reference Lists on the SAP Design Guild. This page covers three areas: (1) error prevention, (2) error handling for fields, and (3) error handling in tables. Error PreventionError Prevention Comes First!Before handling errors, you should first ask how errors can be prevented. Generally, you should design iViews and Web applications so that errors cannot occur. Preventing errors - instead of remedying them - has the following benefits:
If it is not possible to prevent errors, follow the guidelines presented below. How You can Prevent ErrorsOften it needs some rethinking and the giving up "old habits" to find design solutions that prevent errors instead of sending an error message after an error has occurred. In the following we provide some ideas and examples that may stimulate your imagination when looking for ways how errors can be prevented. Prevent Wrong or Invalid Inputs - General
Prevent Wrong or Invalid Inputs
Prevent Incomplete Inputs
Prevent Invalid Actions
Prevent Disastrous Actions
Use Controls in the Correct and Intended Ways
Make the Page/iView and its Purpose Clear to the User
Error Handling for FieldsSet the field or fields where an error occurred to the error state (see input field) and place an error message as close to the field where the error occurred as possible (if there is more than one field, place the message at the first error field). Place the cursor into the (first) error field. Avoid Popups!Popups interrupt the users' work flow and thus annoy them. Future Development After validation of a field, the error message will appear in a line directly below the field. As this change in layout can be performed locally, there will be no major screen flicker. iViews: In addition, iViews (trays) will have a status bar where a general error message will appear. This status bar may also display warnings and success messages (an icon will indicate the type of the message). The location of the status bar can be either below the title bar or at the bottom of the tray (open). The status bar may be hidden by the application.
Error Handling in TablesErrors can appear in table views for different reasons. For example, a user may enter invalid data, or certain items from a set cannot be posted. These cases have to be handled differently. Input ErrorsIf a user enters invalid data, highlight the erroneous fields and scroll the table to the first field where an error occurred. If an error message is needed, place it below the table view or - if possible - in a table row directly below the row where the error(s) occurred. Future Development Table views will have a status bar, where the error message will appear. Place the cursor into the error field and scroll the table to make the field visible in case it is hidden from view. If there is more than one error field, display the message for the first error field, place the cursor into that field and scroll the table to make it visible if necessary. If the cursor is placed into a subsequent error field, display the message for the respective field. If an error is corrected move the cursor to the subsequent error field if there is one and display the respective error message. If the focus is outside the table view, display the first error message again. iViews: In addition the planned status bar of an iView (tray) may display a general error message. Posting ErrorsPosting errors often do not require to cancel the whole posting process. It is only necessary to correct and re-post those items that were erroneous. Therefore, redisplay the table view with the erroneous items only and provide the user with a possibility to correct the items. Place an error message above the table. Future Development Place the error message inside the status bar of the table view. Related Controls |