Show TOC

 Assignment of a Search Help to a Data ElementLocate this document in the navigation structure

Use

Search helps that are assigned to a data element can be used by all screen fields that refer to that data element. All the fields with the same meaning have an identical input help.

When you attach the search help to a data element, you must assign an export parameter of the search help to the data element. If you select a line of the hit list in the input help, the contents of this parameter are returned to the corresponding screen field.

Note

It is not possible to return several values when the search help is attached to a data element.

If the parameter assigned to the data element is also an import parameter of the search help, the contents of the search field are used for the value selection if they contain a pattern. Other import parameters of the search field cannot be taken into consideration when the search help is attached to a data element.

The attachment of the search help to the data element is part of the definition of the data element. You can find out how to attach a search help to a data element in Creating Data Elements.

Example

Table SPFLI (flight schedule) contains the field DISTID for the unit (kilometers, miles) of the flight distance specified in the field DISTANCE. The field DISTID refers to the data element S_DISTID. The elementary search help S_UNIT_DIST (search for distance units) is attached to this data element. The export parameter MSEHI of the search help is assigned to the data element.

The search help S_UNIT_DIST is available for the DISTID field when flight data is maintained in table SPFLI. If you select a line of the hit list in the input help, the contents of parameter MSEHI are returned to the screen field. The figure below shows how this process is done.