Entering content frameFunction documentation Validation Messages Locate the document in its SAP Library structure

When you define validations, you can also specify which message will appear on the user’s terminal when a check statement is not met. You can create a long text for each message.

Creating/Changing a Message

  1. Select the desired validation. Choose Environment ® Maintain messages.
  2. The screen Maintain Messages: Class <class ID> appears.

    You can also access message maintenance when maintaining steps in a validation. If the Message node is marked, you can choose the corresponding pushbutton in the right-hand area of the screen to call up the Maintain messages function.

  3. In the Message class field, enter the message class for which you want to create or change messages.
  4. Choose Messages and then Change.
  5. The screen Maintain Messages: Class <message class> appears. The messages are displayed in the logon language. If you want to create or change messages in another language, you must log off and then log on again in the language in which you want to enter messages.

  6. To create a message:
  7. a) Position the cursor on the first empty message line.

    b) Choose Messages ® Individual maint.

    c) Enter a text for the message.

    If you want to use a variable in the message, enter an ampersand (&) for the variable. You can enter a maximum of four variables in a message.

    Example

    Cost center & cannot be posted with business area &

    Two variables are used in this message: one for the cost center and one for the business area. You define the table/field name for the variable when you create the validation.

  8. To change a message:
  9. a) Position the cursor on the message you want to change.

    b) Choose Messages ® Individual maint.

    c) Overwrite the current message text with your changes.

  10. You can use the following additional functions in this screen:
  11. Additional Functions on Maintain Messages: Class <Message Class> Screen

    Choose

    Function

    Messages ® Other message class

    Create/change/display messages in another message class.

    Messages ® Maintain all

    Change all messages

    Messages ® Individual maint.

    Change a particular message

    Messages ® Compact display

    Display only the messages that have been defined

    Messages ® Save

    Save the messages

    Messages ® Print

    Print the messages

    Edit ® Next free number

    Create message using next available message number

    Edit ® Next used

    Display next defined message number

    Edit ® Delete

    Delete a selected message

    Edit ® Select

    Select a message for further processing (to delete it, for example)

    Edit ® Find...

    Search for a particular message text

    Edit ® Continue search

    Search again for the message text last entered

    Edit ® Set as self-explanatory

    Mark a message as self-explanatory so that the message does not need to be documented

    Goto ® Documentation ® Long text

    Display or change the long text (documentation) for a message

    Goto ® Documentation ® Not to be documented

    Mark a message as self-explanatory so that the message does not need to be documented

    Goto ® Translation

    Translate the message text

    Goto ® Message class

    Display or change the message class for a message

    Goto ® Additional information

    Assign an object type (such as a table view) and subobject to the message, if desired

    Utilities ® Message class list

    Display list of defined message classes

    Utilities ® Change requests (Organizer)

    Call up the Workbench Organizer, for example to maintain and display transport requests

    Utilities ® Global search...

    Global search for message text as a string or word

    Utilities ® Global replace...

    Global search and replace for message text as a string or word

    Utilities ® Where-used list

    Display where a message is used

     

  12. To save the message, choose Messages ® Save.

The system saves the message you created or changed.

Displaying a Message

  1. On the screen Create Validation: <Validation Name> (Header data), choose Environment ® Maintain messages.
  2. The screen Maintain Messages: Class <class ID> appears.

  3. In the Message class field, enter the message class for which you want to display messages.
  4. For validations messages, the standard version of the application component FI-SL contains message class K2 .

  5. Choose Messages and then Display.

The screen Display Messages: Class <message class> appears. The messages are displayed in the logon language. If you want to display messages in another language, you must log off and then log on again in the language for which you want to display messages.

Deleting a Message

  1. On the screen Create Validation: <Validation Name> (Header data), choose Environment ® Maintain messages.
  2. The screen Maintain Messages: Class <class ID> appears.

  3. In the Message class field, enter the message class for which you want to delete messages.
  4. Choose Messages and then Change.
  5. The screen Maintain Messages: Class <message class> appears.

  6. Position your cursor on the message you want to delete, and double-click.
  7. Choose Edit ® Delete.
  8. A dialog box appears, asking if you want to delete the message.

  9. To delete the message, choose Yes.

Note

You cannot delete a message that is used by another program (for example, in validations or substitutions).

 

 

Leaving content frame