Provide a basic overview of TREX search and it capabilities, including using method query_result_by _select_option from class /plmb/cl_sea_query_api to retrieve results via your own custom ABAP programs.
Scanning the Internet for External Cloud Exposures via SSL Certs
LeverX ABAP Basics - Using The TREX Search Component
1. Essential
SAP Tutorial
SAP ABAP Basics:
Using TREX Quick Search
In Custom Developments
By John DeGrandchamp
1 Copyrighted 2012 by LeverX, Inc.
2. Tutorial Goal
Get a basic overview of TREX search and it capabilities
TREX is the primary search technology currently used in SAP
components
Learn the framework to implement TREX quick search in a custom
development
This will enable a quicker, more flexible search than standard function
modules
2 Copyrighted 2012 by LeverX, Inc.
3. SAP TREX Search Overview
TREX has the ability to search structured business data as well as
unstructured documents
TREX provides the backend technology for Enterprise Search
TREX has several different search modes including: exact, linguistic, fuzzy
(search error tolerant), wildcards, phrase search, and Boolean operators
TREX consists of an ABAP client and a JAVA client
The JAVA client communicates with non-SAP applications
3 Copyrighted 2012 by LeverX, Inc.
4. Open Transaction SE38
Enter your desired
name for the program
Press the create button
4 Copyrighted 2012 by LeverX, Inc.
5. Enter Program Attributes
Enter a title, program
type, program status,
application, and
press save
Save as a local
object or to
appropriate package
21 July 2012 5 Copyrighted 2012 by LeverX, Inc.
6. Create Necessary Data Declarations
Create data variables to
communicate with
method and display
result
Create a parameter for
user to enter quick
search
6 Copyrighted 2012 by LeverX, Inc.
7. Call Method For Quick Search
Call method query_result_by
_select_option from class
/plmb/cl_sea_query_api
using the pattern button
The object type tells the
method where to look in the
TREX index
7 Copyrighted 2012 by LeverX, Inc.
8. Pattern Button
The pattern button can be used
to assist in writing code for items
such as function modules, select
statements, write statements,
and methods
In our case we will select ‘ABAP
Object Patterns’ and enter
values as shown
8 Copyrighted 2012 by LeverX, Inc.
9. Write Results To Screen
Loop the results table into a
work area
Write the desired fields
onto the screen
9 Copyrighted 2012 by LeverX, Inc.
11. Conclusion
You have now written a program that utilizes the TREX quick search
capability
This allows users a much more flexible search format than using a
standard function module
It is also much faster when searching large amounts of records because it
does not access the database
11 Copyrighted 2012 by LeverX, Inc.
12. Contact Information
Please contact us for more information about our services or solutions available.
LeverX, Inc.
800 West El Camino Real, Suite 180
Mountain View, CA 94040 USA
Tel: (650) 625 – 8347
Web Site: www.LeverX.com
12 Copyrighted 2012 by LeverX, Inc.