Function | Calls an ABAP method from HTML | ||||||||||||
Example |
<button
type='button'
class='button' onclick='S10Apply("save")'> Save </button> |
||||||||||||
Parameters |
|
||||||||||||
Description |
In the current ABAP object, the specified parameterless method is called. The
method name can be specified in upper or lower case. If the method does not exist, there is no termination, but a warning message in the SAP application log, transaction SLG2, if the log level is set to 2 or higher. For details see reference ABAP, s10applicationlog(). The string optionally specified as the second parameter can be retrieved in the ABAP method with s10actionparameter() . You can use it, for example, to pass the value of a selection list directly if you do not want to bind the value to a class attribute via name="...":
<select
size="1"
style="width:
120px;"
class="inputselect" With an "external breakpoint" in ABAP we can stop in the called method. The passed string "bank" is accessible via s10actionparameter( ):
If the processing in the called method runs for some time, a "processing icon" is automatically displayed to let the user know: Optionally, you can also output your own additional text here by specifying a text as "processing message" following the HTML element that triggers the action:
<!-- Display processing
message
--> While the method called by S10Apply() is running, the user cannot start a
second action that would trigger a method call. Messages from the called method are also output at the anchor element:
* navigate to special screen For special application functions, e.g. "Cancel" or "Help", the values
entered should usually not yet be transported to the object attributes. You can
achieve this by setting the fourth parameter to "true".
<label
class='label'
for="bstnk">Customer reference</label>
In the called method you can access further values of the HTML page with s10contextinfo(). This is necessary in table displays, for example, if the action is to refer to the table row in which the user triggered the action. |
||||||||||||
Components | S10 Framework |