MessagesUsage | Types | Error Handling in Tables UsageSystem MessagesTypically an iViews should not issue system messages. Success MessagesIn some cases we recommend giving feedback on a user's successfully completed action:
Error MessagesAn iView should be programmed so that error messages do not occur. Therefore, consider to prevent errors so that your iView does not need error messages at all, before putting effort into error messages and asking how they should look like, where they should appear, and what the wording should be. See Help and User Support for hints and examples on error prevention. LocationMessages may refer to an iView as a whole or to a specific element in an iView. Depending on the case, messages are placed differently:
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. Avoid Popups!Popups interrupt the users' work flow and thus annoy them.
TypesThere are two message types
Figure 1a-b: Critical (left) and uncritical (right) messages referring to the iView as a whole Both message types are visually distinct:
Note: The visual attributes may change in the near future.
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.
Source: SAP iView Guidelines |