![]() |
General MessagesGuidelines | Examples of Good and Bad Error Messages | Technical Notes If the system detects an error, it displays a message either in the status bar or in a dialog box, depending on the type of error. The message should state the problem and offer an solution to enable the user to proceed without outside assistance. Figure 1: The most important guidelines for messages.
GuidelinesPrecise and UnambiguousBe as precise as possible. Messages should describe the situation which has occurred as unambiguously as possible. SupportOffer the user direct support for the error recovery. Do not just state the problem, but rather indicate what needs to be done (see examples of Messages Prompting The User). If this is not possible, use a positive tone to explain the problem as precisely as possible. Additional support, if available, can be provided in parentheses. FormulationAdopt a courteous and positive tone, rather than being supercilious or condemning the user. Avoid the use of vague or judgemental words such as "may", "must", "should", "wrong", "insufficient", "incomplete", "not allowed", and so on. User-CenteredBe specific and address the problem in the user's terms. Also avoid error messages which contain technical descriptions or explanations. Syntactic StructureUse clear and simple syntax and only write complete phrases (this ensures better understanding and also facilitates any translation process). Articles can be omitted; a verb (at least "is" or "are"), however, should always be present. Use the present tense, if possible. Uppercase/LowercaseUse normal upper and lower case conventions. Do not use upper case or spaced text for the purposes of emphasis. Exception: uppercase for report names, transaction codes, table names, file names. LanguageBe consistent in your use of language; do not mix different languages. PunctuationDo not conclude the message with a period or with an exclamation mark. Suggestions for the error correction can be given in parentheses. Always leave a space after a period and never before one. Special CharactersDo not use special characters such as < >, as they will not necessarily be known to the user; value specifications such as % can be used, however. Messages are not to be introduced or concluded with asterisks (***). Never put field names, report names and table names in quotation marks. AbbreviationsFollow the guidelines for abbreviations (see Abbreviations) and be consistent with the use of abbreviations.
Examples of Good and Bad Error MessagesThe following sections list examples of bad and reformulated error messages (without comments) to illustrate the above-mentioned guidelines. Messages Which can be Formulated More Specifically
Messages Formulated Less Ambiguously
Note: It would be better to explain this message in detail in a dialog box. Or it is given in the short text as above, and the reference to the individual entry fields then appears in the long text.
Note: It is important to formulate the message from the point of view of the user and not from the system's perspective. User Prompt Messages
Technical NotesMessages like all message texts with language indicator and MESSAGE ID are maintained using transaction SE91. Relevant field contents can be inserted into the short text by using the placeholder "&". The current field contents are then appended to the MESSAGE statement with WITH in the order in which they are to be inserted into the short text. The MESSAGE ID must be specified at the beginning of the module pool in the PROGRAM statement:
By using WITH, you can append even more field contents to the MESSAGE statement than the number of placeholders contained in the short text, because the more detailed long text can require this. All field contents following WITH can be inserted into the long text in any sequence using "&V1&", "&V2&", "&V3&" ... By means of the number, a reference is made to the corresponding field entry of the field contents listed behind WITH. Messages in the ABAP/4 are issued in the module pool by using the MESSAGE statement.
Source: SAP Reference Lists |