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.

    Furthermore, not all functions will work with NetWeaver Business Client 4.

 

1. Copy the content of the "Program.txt" to a new Program and replace the placeholder with an appropriate program name. (e.g. "zrep_object_opener")

 

2. a) Create a transaction with an appropriate transaction code (e.g. "z_object_opener") like this (select "Program and selection screen..."):

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

 

4. a) Copy the content of the file "Search_Class.txt" to a new class and replace the placeholders with an appropriate class name. (E.g. zcl_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 (e.g. " 'z_object_opener' ").

 

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 for result types, you can change it in the class-constructor method.

 

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.

Create Service2.PNG

Don't forget to activate your service!

 

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 --> Settings --> Connections --> Systems... --> right click on system --> Properties... --> URL) and after that the path to the service you created in step 6 and "?type=OpenSearchDescription".

If you want to, you can add a "namespace" and/or "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>