Ansicht
Dokumentation

ABAPMESSAGE_SHORTREF - MESSAGE SHORTREF

ABAPMESSAGE_SHORTREF - MESSAGE SHORTREF

TXBHW - Original Tax Base Amount in Local Currency   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

MESSAGE

Reference



Syntax

MESSAGE { tn
        | tn(id)
        | {ID mid TYPE mtype NUMBER num}
        | {oref TYPE mtype}
        | {text TYPE mtype} }
        { { [DISPLAY LIKE dtype]
            [RAISING exception] }
        | [INTO text] }
        [WITH dobj1 ... dobj4].


Effect

Sends a message.

Additions

Specifies the message and message type:

  • tn (message type t, message number n, message class from the addition MESSAGE-ID of the program introduction)
  • tn(id) (message type t, message number n, message class id)
  • oref TYPE mtype (message type from mtype, message number and message class from the interface IF_T100_MESSAGE implemented in the dynamic type of the object reference variable oref)

Specifies the display type:

  • DISPLAY LIKE dtype
    Displays the message in a dialog box and uses the icon of the message type specified in dtype.
  • INTO text
    Returns the message text in text; the message is not sent.
  • WITH dobj1 ... dobj4
    Replaces the placeholders "&1" to "&4" and "&" of the message text with the content of dobj1, ... dobj4.

Raises a non-class-based exception

  • RAISING exception
    Either sends the message or raises a non-class-based exception exception in a function module or in a method. An exception is raised to which return codes were assigned in the call; another exception sends the message.

Raises a non-class-based exception

  • RAISING exception
    Either sends the message or raises a non-class-based exception exception in a function module or in a method. An exception is raised to which return codes were assigned in the call; another exception sends the message.





ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4023 Date: 20240616 Time: 103842     sap01-206 ( 45 ms )