abap-code-search-tools
abap-code-search-tools copied to clipboard
ABAP Code Search
abap-code-search
ABAP Advanced Code Search Tools
Description
Searches Code in ABAP sources like
- [X] Classes (CLAS)
- [X] Interfaces (INTF)
- [X] Programs (PROG)
- [X] Type Groups (TYPE)
- [X] Function Groups (FUGR)
- [X] Data Definitions (DDLS)
- [X] Metadata Extensions (DDLX)
- [X] Access Controls (DCLS)
- [X] Behavior Definitions (BDEV)
- [X] Simple Transformations (XSLT)
- [X] Structures (STRU) --> ABAP 7.50
- [X] Database Tables (DTAB) --> ABAP 7.52
The search is done entirely via ABAP (as opposed to the ADT Source Search). There is an option to run the search in parallel for better performance
Search features
Search can be done via normal String search or with Regular Expressions. If supported by the system it is also possible to activate PCRE (Perl Compatible Regular Expressions)
UI
You can execute the search via report ZADCOSET_SEARCH, where most of the options are available as well, but the main focus of the UI will be ADT (see ABAP Code Search).
Package overview
-
/src
Root package which currently also holds the search API
Important Objects in package:Object Name Purpose ZCL_ADCOSET_SEARCH_ENGINE Access point to code search ZADCOSET_SEARCH ABAP Report for executing the code search -
/src/adt
Implementation of the ADT backend -
/src/parl
Implementation of parallel processing - needed for the code search
Installation
Install this repository using abapGit.
Choosing the correct branch for your System
| NW version | Branch name |
|---|---|
| ≥ 7.51 | main |
| 7.50 | nw-740 |
| 7.40 | nw-740 |
| < 7.40 | Not officially supported |
Supported Databases at branch nw-740
A certain part of the implementation for the ABAP releases 7.40 and 7.50 uses ADBC (ABAP Database Connectivity).
Only the following databases are supported at the moment:
- Oracle
- SAP HANA
- Microsoft SQL Server
Necessary Authorizations
To access the backend from ADT a user must have the following authorizations
| Authorization Object | Authorization Field | Value |
|---|---|---|
| S_ADT_RES | URI | /devepos/adt/cst/* |