Skip to Content

Search Engine Service Configuration for Advance search

Applies to:

SAP Netweaver Portal 7.3, ECC 6, Ehp3

Summary:

The search engine service replicates the business objects from the database into the TREX system. When a user enters a search query, the TREX system responds to it

Prerequisites:

  • A TREX system is installed and accessible through an SAP gateway (System administrator activity).
  • Customizing for the search engine service has been completely defined (Shown in this document).

Scenario:

In Create Process Measurement Document application, we had to enable More Search option with Quick Search and Advanced Search based on the selection (Function location, equipment, Measuring point or Entry List)

To achieve this feature, TREX Search Engine Service (SES) has to be configured.

Below is the approach we followed

Summary:

The search engine service is part of the NetWeaver Application Server (NW AS). It is connected to a TREX system.

The search engine service replicates the business objects from the database into the TREX system. When a user enters a search query, the TREX system responds to it, not the database. The system administrator has to complete the initial configuration of the search engine service and monitor it during production operations.

Prerequisites to Setup the TREX SES:

  • A TREX system is installed and accessible through an SAP gateway (System administrator activity).
  • Customizing for the search engine service has been completely defined (Shown in this document).

The initial configuration activities as part of TREX SES setup:

  1. Creating Indexes
  2. Scheduling Periodic Indexing

Procedure:

Make sure you have access to SES_ADMIN tcode, RFC destination is created in SM59

Step1: Go to the transaction SES_ADMIN:

Initially, if the RFC destination for the TREX system hasn’t been, the below error message is displayed

“RFC destination in table COM_SE_SEARCH is not defined”

Step 2: To assign the TREX RFC destination, go to Menu-> Customizing->System Settings.

Following screen is displayed. Click on change button on the application toolbar.

Step 3: Click F4 Help and select the defined RFC destination for the TREX system ‘TREX_TRD’ and click save and assign a transport.

System prompts for transport request to save the changes.

Step 4: Creating Indexes

Go to the transaction SES_ADMIN

Menu ->Index->Create/Activate Index

The Business object screen pops up which are delivered as part of the standard system. Select the business object for Functional Location ‘BUS0010’.

Step 5: Once the business object is added, click on ‘Index Immediately’ button on the application tool bar and click Full button further.

This will trigger the standard program ‘COM_SE_DISPATCHER’ which is basically an indexing program that generates the SES repository for the specific business object.

Validate the configuration:

After creating Index for Equipment, to validate the result, execute Tcode: IA03 to see the description of equipment, say the equipment 200424 has description “Absorption Bed A”

Step 6: Scheduling Periodic Indexing:

Once the indexes are created, second step is to schedule periodic indexing to keep search results as up to date as possible.

Go to the transaction SM36; enter the job name ‘COM_SE_DISPATCHER_BUS0010’ and click on ‘Start condition’ button. Enter the scheduling parameters:

Click on ‘Step’ button on the application toolbar and select the variant ‘FLOC_BUS0010’.

Click check and save the step.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply