Function | Terminates current dialog step with an error message | |||||||||||||||||||||||||||||||||
Example | s10errormessage( ). | |||||||||||||||||||||||||||||||||
Format |
data: myexplanation type string, myhtmlformat type string, mymsgid type sy-msgid, mymsgno type sy-msgno, mynoexplanation type string, mypar1 type string, mypar2 type string, mypar3 type string, mypar4 type string, mytext type string. s10errormessage( exporting   explanation = myexplanation   htmlformat = myhtmlformat   msgid = mymsgid   msgno = mymsgno   noexplanation = mynoexplanation   par1 = mypar1   par2 = mypar2   par3 = mypar3   par4 = mypar4   text = mytext ). |
|||||||||||||||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||||||||||||||
Description |
By s10errormessage() the current dialog step is terminated and an error message
is displayed. Example:
if vtimehhmm > etimehhmm. If you have defined an element of the class in the HTML page <div class="messagearea"></div> 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.
* validations
method validate_time. s10errormessage( s10localize( 'TIME_INTERVAL_ERROR' ) ). 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:
s10errormessage( If you use a message from table T100, the explanation of the message stored in the SAP system is also displayed. Example of using a standard SAP message with explanation:
s10errormessage(
You can suppress the explanation with the parameter "noexplanation = 'X' ". 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:
s10errormessage(
This then also refers to an explanation given with "explanation":
s10errormessage(
|
|||||||||||||||||||||||||||||||||
Components | S10 Framework |