searchhelp

The searchhelp option for inputfields provides a list of available entry values for a given inputfield.

Searchhelp is an aid to users looking for a specific value to enter into a field. When the user invokes the input help for a given field or screen, the system will typically return all of the available values for that field or screen in SAP. Searchhelp can be customized to be field-dependent. In other words, the values displayed by searchhelp can be customized depending on what values are entered by users in other fields. The syntax is as follows:

{"searchhelp":"searchhelp_table", "searchhelp_option":"value"…}

Searchhelp Options

The following options are available for use with searchhelp:

fname0

Specifies that data other than the default value will be displayed in the designated destination.


					
shname1-9

Specifies up to nine fields that will be populated.


					
shdest1-9

Specifies up to nine descriptions that will be displayed.


					
shselname1-9

Specifies up to nine fields that can be used to restrict the data returned by the searchhelp.


					
shselvalue1-9

Specifies up to nine associated values that are used to restrict the data returned by the searchhelp.


					

Examples

To demonstrate the searchhelp option, please do the following:

  1. Open the Easy Access script file (SAPLSMTR_NAVIGATION.E0100.sjs) and enter the following code. Create the script file if it does not already exist.

    inputfield([15,1], "Calendar Test", [15,25], {"size":14, "name":"z_date", "default":12345});
  2. Save the changes and refresh the SAP screen.

  3. The screen now appears as follows:



  4. To demonstrate the searchhelp option, re-open the script file and changethe code as shown below:

    inputfield([4,5], "Inputfield Test", [4,20], {"name":"inpfld_1", "size":14, "searchhelp":true});
  5. The screen now appears as follows: