Show TOC

SAPSuppressMessageLocate this document in the navigation structure

With this API method, you can suppress messages in the standard message dialog. It can only be used in the callback BeforeMessageDisplay.

To call the method, use Application.Run and specify the following input parameter:

  • Message ID

    The message ID is a unique identifier for a message that is valid in the current messages dialog. It can be retrieved with function SAPListOfMessages.

The system returns one of the following output parameters for each function execution:
  • 0 = execution failed.
  • 1 = execution successful.

Example

lret = Application.Run("SAPSuppressMessage", "5")

The message with message ID 5 is suppressed in the message dialog.