Page tree
Skip to end of metadata
Go to start of metadata

Use Case

You like to find ECTR objects by searching e.g. for a value in a Z - Table or by direct access table AUSP to speed up the search.

Solution


In the standard FMs for the quick search e.g. "/DSCSAG/SMS_DOC_BY_DESCR" the authorization object S_TCODE with value "/DSCSAG/QUICKSEARCH" is used to check if the user is allowed to use the quick search. 


Backend

To implement an easy customer specific search for ECTR objects, you need to implement an RFC FM with a defined interface. Take a look in function group /DSCSAG/SMARTSEARCH for examples.

Interface for Quick search RFC FM
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(IV_MAXROWS) TYPE  INT4 DEFAULT 50
*"  EXPORTING
*"     VALUE(VERSION_ID) TYPE  /DSCSAG/VERSION_ID
*"     VALUE(RETURN) TYPE  BAPIRET2
*"     VALUE(RUNTIME) TYPE  /DSCSAG/RUNTIME
*"     VALUE(EV_OBJECTCOUNT) TYPE  /DSCSAG/OBJECT_COUNT
*"  TABLES
*"      IT_RANGE STRUCTURE  /DSCSAG/SET_FILTER_RANGE OPTIONAL
*"      ET_CONTAINER_OBJECTS STRUCTURE  /DSCSAG/OBJECT OPTIONAL
*"----------------------------------------------------------------------

E.g. Name your new FM "Z_CUST_DOC_BY_ATWRT".

Frontend

In the frontend you need to define the new search in the customizing. 

Example for FM "Z_CUST_DOC_BY_ATWRT":

default.txt
# SEARCH_PROVIDER
# Special search for documents
  plm.search.provider.types = @plm.search.provider.types@;ZATWRT

# Search parallel with these FMs
  plm.search.provider.ZATWRT = SEARCH_PROVIDER(Z_CUST_DOC_BY_ATWRT);SEARCH_PROVIDER(Z_CUST_DOC_BY_ATWRT2);...


As a result you will see your new Search-Provider in the Quick search panel:


Related SAP Notes/KBAs


__________________________________________________________________________________________________________