Professional Documents
Culture Documents
Search - Fiori Authorizations
Search - Fiori Authorizations
com
Saptechnicalguru.com
Blog for SAP technical guru's: SAP basis, SAP authorization, SAP ABAP
Tag: search
SE16 and SE16N can be used to search specific tables. FIORI search can be used by
end users to search business documents for predefined scenarios.
In some cases you might need to search multiple table for a certain value or string.
This can be needed from IT point of view or business point of view.
Then transaction SE16S can be your solution: generic table and value search.
How does the generic table and value search transaction SE16S work?
Use of SE16S
After starting transaction SE16S you are confronted with a big selection screen. In
the top part enter the search string:
https://www.saptechnicalguru.com/tag/search/ 1/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
In the search type select Create Ad Hoc Search String. If you have to execute
repetitive searches, you can setup predefined searches with transaction
SE16S_CUST.
In the search section enter the search tables you want to search:
https://www.saptechnicalguru.com/tag/search/ 2/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Best to use parallel processing to speed up and also best to show only the tables with
hit.
https://www.saptechnicalguru.com/tag/search/ 3/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Now start the query by pressing execute and wait a couple of minutes for this query
to end.
https://www.saptechnicalguru.com/tag/search/ 4/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Also transaction SE16SL exists for searching content. This one is bit faster, but less
accurate.
SE16H is the HANA based implementation of SE16N and has specific search
functions which might be very useful for your use case. More on SE16H in this blog.
Background
Master reference note: 2002588 – CO-OM Tools: Documentation for SE16S, SE16SL,
and SE16S_CUST. This note has a full explanation of all the options.
https://www.saptechnicalguru.com/tag/search/ 5/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
FIORI search is a very powerful tool for the end users. It enables a google like search
on the business data.
How does FIORI search work from the end user perspective?
How to set up FIORI search?
How to authorize search data?
From the end user perspective: open the search glass and key anything. Just like in
Google:
https://www.saptechnicalguru.com/tag/search/ 6/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Now you can select a record, or select a related app (with the … you get more
options):
https://www.saptechnicalguru.com/tag/search/ 7/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
In the FIORI launchpad configuration parameters (see SAP help) make sure that the
enableSearch is set to true. Otherwise the search icon does not appear.
In case you run a FIORI hub, make sure to setup the web dispatcher rules properly to
the backend (see SAP help).
Next step is to activate the search models and the backend (see blog). The search
setup for FIORI launchpad is fully dependent on the backend search.
Some apps use related links. For these related links, the related FIORI app or FIORI
factsheet must be activated. See this blog on how to fast activate complete groups of
FIORI apps.
FIORI search relies on the authorizations of the end user. First make sure that the
general authorization for the search is active in this IMG node:
https://www.saptechnicalguru.com/tag/search/ 8/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
https://www.saptechnicalguru.com/tag/search/ 9/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
In the search cockpit (transaction ESH_COCKPIT), make sure that the user
authorizations are indexed. In case of doubt run it under the Actions button, and
select Index User Authority:
https://www.saptechnicalguru.com/tag/search/ 10/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
If one end user gets results and the other one does not get the same result: the main
reason might be difference in authorizations.
For specific use cases the following OSS notes might be relevant:
https://www.saptechnicalguru.com/tag/search/ 11/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
This blog will describe the steps in activating search in S4HANA. We will explain
both new fresh installation and upgrade from system which has search already
activated.
https://www.saptechnicalguru.com/tag/search/ 12/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Make sure that you set the TREX destination to SAP HANA DB:
Then select the search model. For most use cases this will be SAPAPPLH:
https://www.saptechnicalguru.com/tag/search/ 13/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Now run the task list and be patient. This can take quite some time. If the task list
finishes correctly start transaction ESH_COCKPIT to check that all search
connectors are correctly activated.
If you upgrade your existing system and have search already active, you get this
message after launching ESH_COCKPIT:
https://www.saptechnicalguru.com/tag/search/ 14/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
If you run into issues, check that the following OSS notes are applied:
For some search connectors based on CDS you might see this error message:
In this case you need to goto transaction SFW5 and activate the needed switch for
Enterprise Search for the specified object:
More background on search can be found in the Search section of this blog. Also read
OSS note 2626107 – How to execute task list
SAP_ESH_INITIAL_SETUP_WRK_CLIENT.
https://www.saptechnicalguru.com/tag/search/ 15/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
This blog will give technical tips & tricks on embedded search. Embedded search can
run on both HANA directly or on separate TREX server. It is assumed you know how
to set up search in ESH_COCKPIT and know how the end user transaction
ESH_SEARCH work.
https://www.saptechnicalguru.com/tag/search/ 16/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
If you are running S4HANA, you can use an STC01 task list to fully setup the search
function. Read this blog for full instructions. The remainder of the blog below can be
used in case of issues.
If you are running HANA database for ECC you can use the HANA default primary
database connection for search setup. This is easier in maintenance: no extra TREX
needed, no extra secondary DB connection. Search will consume extra memory and
CPU off course on the HANA database.
After you copy a system the search will not immediately work. In client 000 start
transaction STC01 and run task list SAP_ESH_ADJUST_AFTER_COPY. See also OSS
note 2479611 – Error message: “Current system is a copy of another system”.
https://www.saptechnicalguru.com/tag/search/ 17/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
When things gone really beyond repair, you can log on to client 000 and start
transaction STC01 and run task list SAP_ESH_RESET.
Important: write down (or make screen shots) on the connectors and settings
that were active before running this task list. It will really wipe out all
connectors and settings.
https://www.saptechnicalguru.com/tag/search/ 18/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
Bug fix OSS note: 2972790 – ESH_TEST_SEARCH – value help for attribute search:
Values are not transferred case-sensitively.
If you are having issues with full text search, please check OSS note 2280372 – How
to check Full Text search issues. This note is focusing on full text search issues in
relation to solution manager CHARM, but the methods described can be used as well
for analyzing other full text search issues.
Bug fix OSS note: 2938916 – ESH extraction user – option “Generate User” –
adjustment of password policy.
https://www.saptechnicalguru.com/tag/search/ 19/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
While indexing you might get authorization indexing issues. First step is to repeat
with sufficient rights attached to your user ID. Then run program
ESH_ADM_RECALC_AUTHS to force the recalculation of the authorizations.
If it does not help, you can read the very extensive OSS note 2472239 – Error
message “Authorization indexing unsuccessful” when creating search connectors.
And OSS note 2729739 – Error indexing search connectors: “Authorization indexing
unsuccessful for object type USER_AUTHORITY”.
New option to partially skip the checks for indexing: 3088737 – Customizing option
for completely deactivating authorization indexing for individual ESH authorization
indexes.
Index preload
For some TREX issues index preload can be a solution. More information on index
preload can be found in OSS note 2115082 – ESH Index Preload.
For detailed check on TREX embedded search there is a special Python check script,
which is not installed by default. The script can be downloaded as attachment from
OSS note 2227741 – TREX 710: check of the TREX settings for the
Enterprise/embedded Search scenario. Read OSS note 2344042 – How to execute
python script check_esh.py on how to install and run the script.
If you are seeing high memory consumption in TREX, please check OSS note
2540240 – High Memory and Indexing problems in TREX.
https://www.saptechnicalguru.com/tag/search/ 20/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
In newer versions this tool is available. Otherwise apply OSS note 2690982 –
TrexViaDbsl Analysis Tool in ABAP. Then in SA38 you can launch program
RHANA_TREXVIADBSL_ANALYZER for the analysis tool:
A more detailed explanation is given in OSS note 2800048 – FAQ: SAP HANA
TREXviaDBSL.
If you have search issues with SAP solution manager documentation, there is a
special OSS note 2608454 – FAQ: How to handle issues with the (embedded) search
functionality in the context of Solution Documentation . This OSS note also contains
coding for special test program that will check all relevant settings for the solution
documentation search function to work properly.
16 March 2018 / Basis, Search / embedded search, enterprise search, search, trex / 2 Comments
https://www.saptechnicalguru.com/tag/search/ 21/22
5/30/22, 1:05 PM search – Saptechnicalguru.com
https://www.saptechnicalguru.com/tag/search/ 22/22