Skip to Content
Author's profile photo Hema Suryapalam

Configuration of TREX for enabling full text search in CRM UI of SAP Solution Manager 7.1

Introduction:

TREX is a search engine in the SAP NetWeaver integrated technology platform. The name “TREX” stands for Text Retrieval and information EXtraction. When a customer uses SAP Solution Manager ITSM suite ( Incident Management of Change Management), there will be a lot of incidents and changes that will be created as part of the organization’s ticketing processes. TREX “full text search” predominantly helps in searching and filtering those incidents or changes based on the search criteria. When you get a support message in the Solution Manager Incident management; reporting an issue then you can search in your internal Knowledge Articles for problem solutions.

Quick review of the installation process:

Please check SMP for latest updates on versions/releases and install the latest files.

1.     Go to SMP and download the TREX files

/wp-content/uploads/2014/10/1_566043.png

/wp-content/uploads/2014/10/2_566044.png

2. Start SAPCAR to uncar the Files

/wp-content/uploads/2014/10/3_566066.png

3. Installing TREX —

a) Start SAPInst –

/wp-content/uploads/2014/10/4_566067.png

4. TREX SID Name

Give a SID name. Below is an example.

/wp-content/uploads/2014/10/5_566068.png

5. Installation/ Initiation/Completion

/wp-content/uploads/2014/10/6_566075.png

/wp-content/uploads/2014/10/7_566076.png

/wp-content/uploads/2014/10/8_566077.png

6. Create TREX ADM User

/wp-content/uploads/2014/10/9_566078.png

7. For creating RFC connections, start the TREX Admin Tool. Below is an example.

/wp-content/uploads/2014/10/10_566079.png

/wp-content/uploads/2014/10/11_566080.png

/wp-content/uploads/2014/10/12_566084.png

/wp-content/uploads/2014/10/13_566085.png

/wp-content/uploads/2014/10/14_566086.png

/wp-content/uploads/2014/10/15_566090.png

/wp-content/uploads/2014/10/16_566091.png

/wp-content/uploads/2014/10/17_566092.png

/wp-content/uploads/2014/10/18_566093.png

/wp-content/uploads/2014/10/19_566094.png

8. Executing an Installation Test Script

Log on with the user <SAPSID>adm

  • Go to the TREX
    directory.
    cd
    /usr/sap/<SAPSID>/TRX<instance_number>
  • Set the environment
    variables required by TREX by executing the following script:
  1. TREXSettings.bat
    • Go to the directory
      where the installation test script is located in:
      <disk_drive>:\usr\sap\<SAPSID>\TRX<instance_number>\
      exe\python_support.
    • Run the test script in
      this directory:
      python
      runInstallationTest.py

   http://help.sap.com/saphelp_nw73/helpdata/en/47/1b074063616446e10000000a114a6b/frameset.htm

9. Now the rest of the configuration should be done in GUI interface in the Solution Manager system.

Go to transaction SPRO and follow the IMG path as below.

/wp-content/uploads/2014/10/1_566043.png

Read the IMG documentation and follow same.

Useful Hints:

a) The CRM_OBJECT and KA is not available in the F4 help. You need to put it under the description field as below.

/wp-content/uploads/2014/10/2_566044.png

b) Run all the wizards as described below for knowledge base, search engine etc..

/wp-content/uploads/2014/10/3_566066.png

c) A knowledge base compilation has to be done.

/wp-content/uploads/2014/10/4_566067.png

d) Once knowledge base compilation is done, it brings up this pop up in which you need to complete Full and delta compilation which will then kick off the back ground job.

/wp-content/uploads/2014/10/5_566068.png

Issues/Troubleshooting:

One common issue that you can face is that the search engine status can fail. Please check the RFC mentioned above and make sure that it pings successfully.

/wp-content/uploads/2014/10/6_566075.png

Also, make sure you have added knowledge base CRM_OBJECT in SAF. After you add same do a “full compile” for CRM_OBJECT — EN.

2042857 – Full text search does not work for the incidents with attachment

Common Question from Customers:

Q.  If there are two Solution Manager 7.1 systems, can we configure the existing TREX for Solution Manager too or do I have to install a new TREX on Solution Manager?

A. You can connect one TREX installation with more than one application. For more info see the link below.

http://help.sap.com/saphelp_nw70/helpdata/en/5e/9834429692b76be10000000a155106/content.htm

Below is a snapshot of how it works typically in CRM UI.

/wp-content/uploads/2014/10/7_566076.png

You can also search in solar01/02 transactions in the business hierarchy.

/wp-content/uploads/2014/10/2_566044.png

/wp-content/uploads/2014/10/4_566067.png

TREX search engine if configured and set-up will be useful if SAP Solution Manager is being used for ChaRM, ITSM and Documentation related scenarios.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Hema - we briefly worked @PGE. I followed the above steps to enable TREX in Solman 7.1 SP14 for incidents, Service Requests. Unfortunately I get the error stating the index is not enabled.

      Can you share the screen shots/steps for initial index creation for CRM_Objects.

      thanks,

      sid