Resources

2636

api_message_create

About

API for adding messages to the Message Area plugin and displaying custom messages or SAP messages on the HTML5 Document.

Example

*  Fill Message Data
wa_message-type    = 'W'.
wa_message-message = 'Required field missing: Name'.

*  Create Message
call method server->api_message_create( wa_message ).

Interface

Parameter Type Typing Method Associated Type Default Value Description
MESSAGE IMPORTING Type /NEPTUNE/MESSAGE Neptune Application Messages

 Type /NEPTUNE/MESSAGE

Component Component Type Data Type Length Decimal Description
FIELD_NAME /NEPTUNE/FIELD_NAME CHAR 30 Field Name
TYPE BAPI_MTYPE CHAR 1 Message type: S Success, E Error, W Warning, I Info, A Abort
ID SYMSGID CHAR 20 Message Class
NUMBER SYMSGNO NUMC 3 Message Number
MESSAGE BAPI_MSG CHAR 220 Message Text
MESSAGE_V1 SYMSGV CHAR 50 Message Variable
MESSAGE_V2 SYMSGV CHAR 50 Message Variable
MESSAGE_V3 SYMSGV CHAR 50 Message Variable
MESSAGE_V4 SYMSGV CHAR 50 Message Variable