| Function | Terminates current dialog step with an error message | |||||||||||||||||||||||||||||||||
| Example |
ABAP
|
|||||||||||||||||||||||||||||||||
| Format | ABAP
|
|||||||||||||||||||||||||||||||||
| Parameters |
|
|||||||||||||||||||||||||||||||||
| Description |
By s10errormessage() the current dialog step is terminated and an error message
is displayed. Example:
ABAP
If you have defined an element of the class in the HTML page HTML
the message will be displayed there. Otherwise, it appears as a popup:
The popup is displayed below the HTML element that triggered the action, in
this example the Save button. ABAP
The message text can either be specified
directly or stored in the SAP message table T100 depending on the language. For
the T100 table, specify the parameters "msgid" and "msgno". For application
specific language dependent messages you can also use the function
s10localize()
:ABAP
The placeholders &1, &2, &3, &4 will be replaced in the text by the specified variable values. When passing the parameters, remember to produce the external format so that, for example, a customer number is displayed without leading zeros. Example: ABAP
Example of using a standard SAP message with explanation: ABAP
The message itself is output as text without formatting. If you need special formatting, you can set the parameter "htmlformat = 'X' " and use HTML in the message text: ABAP
This then also refers to an explanation given with "explanation": ABAP
|
|||||||||||||||||||||||||||||||||
| Components | S10 Framework |