Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

How to include ABAP Quick Search into NWBC

$
0
0

Follow these 7 easy steps to include the search in your Business Client:

For functionality, see: ABAP Quick Search for NWBC

 

0. Please check the system requirements: SAP Netweaver Release 7.4 or higher.

 

1. Copy the content of the "Program.txt" to a new Program and replace the placeholder with the actual program name. (E.g. object_opener)

 

2. a) Create a transaction like this:

Create Transaction.PNG

2. b) Change the transaction so that it starts the program you created in step 1.

Create Transaction2.PNG

3. Upload the file "resultpage.html" to a new folder in the MIME Repository:

Upload Resultpage.png

Don't forget to activate it

 

4. a) Copy the content of the file "Search_Class.txt" to a new class and replace the placeholders with the actual class name. (E.g. nwbc_abap_search)

 

Meth_Descr.PNG

 

4. b) Change the constant "cv_opener_transaction" to the name of the transaction you created in step 2.

 

4. c) Change the constant "cv_result_page" to the path of the .html-file you uploaded in step 3:

 

Clonstants2.PNG

4. d) If you want to edit the whitelist of result types, you can change it in the class-constructor.

 

5. a) Start the transaction 'SICF' and create a new service (via New Sub-Element).

Create Service.PNG

5. b) Enter a description and add the search class you created in step 4 to the handler list. Don't forget to activate it.

Create Service2.PNG

6. Add a new search provider in your NWBC. Therefore go to Options --> Settings --> Connections --> Search Providers...

Type in the address and port of your server (you can find it here: Options --> Help --> About NetWeaver  Business Client --> System Information -> Server) and after that the path to the service you created in step 6 and "?type=OpenSearchDescription".

If you want to, you can add the namespace and max_results parameter, too, as shown here:

SearchProvider.png

7. Type something into the search bar and enjoy.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>