A search help can be used to search for values and then put them back into a field in the application:
Example of a search help for a material:
Search helps in an SAP transaction are usually displayed in a dialog.
The S10 framework also offers the possibility of calling up a dialog, which in principle can be designed freely.
Usually, some input fields for the search as well as the results are provided in table form.
After selecting a result, the dialog is closed and the user can directly continue with the task.
An input field gets a search help through the CSS class "valuehelp":
The name of the called ABAP methdod in the active class is composed of:
"on_valuehelp_" + name of the attribute
If the name of the attribute is "material", the method "on_valuehelp_material" is called:
The actual search help is then implemented in a separate class.
In this case the search help of the class "material" is called:
In the implementation of the method "valuehelp" a dialog is then called, which returns the selected value after closing:
In this case, the ABAP method "searchhelp_material_select" determines the clicked line and reads the material number:
After the execution of "s10exitdialog( )" in line 29 the HTML dialog is closed, and the ABAP code execution is continued directly after the call of "s10dialog()" in the "valuehelp" method. This means that no new calls are necessary.
Generating a value help
You can also use the S10 Framework Utilities to have a search help generated automatically.
For details, see the "Generation" section in the documentation.
Example of generating a search help for a material:
Global search help
The next instruction " Global search helps" describes how to set up a search help as an SE24 class which is automatically invoked by the S10 Framework based on the domain name of an attribute.
Component: S10 Framework