Enabling search in LISTMI
You can use search as an input in LISTMI by switching the Enable search button.
On the Input tab, you can configure the default value of the transaction. SQRY field is the only available input field when you switch the Enable search button.
When you use search, the source that you must select is the component where the data service is used and select SQRY as the field. This configuration enables users to use the search function within an application. To see the components and dialogs in the source list, you must first create them with component ID.
In the Value column, specify a search query as the initial search when the component loads. When you configure the search function in the components, the user input is added to the initial search value. If the user specifies a search query that contains a colon, then the input to the data service is the user input only.
For example:
To list open customer order heads using a search transaction in the data grid, which has a component ID of Datagrid_OpenCustOrders, use LISTMI with the LST_OOHEAD information category and the view is STD90-00. Switch the Enable search button. In Input tab, you can use this configuration:
Source: Datagrid_OpenCustOrders
Source field: SQRY
Value: ORSL:[20 TO 65]
This configuration enables you to use the search field in the data grid. When you start an application, a list of all open customer orders is displayed. When you enter something in the search field on the application, these happen:
When a user enters JSMITH, the input to the API is 'JSMITH ORSL:[20 TO 65]'.
When a user enters RESP:JSMITH, the input to the API is 'RESP:JSMITH'. The colon is used to prevent the initial query to be added to the user query.