ABAP Sniffer is an ABAP-based tool for scanning various SAP program objects (such as reports, function groups, classes, interfaces, enhancements, etc.) to find occurrences of specific patterns in the code.
- Search Across Multiple Object Types: The tool can search through reports, function groups, classes, interfaces, enhancements, and more.
- Pattern Matching: Supports both plain text and regular expression search.
To use ABAP Sniffer, follow these steps:
-
Run the Program
- Execute the program ZABAP_P_SNIFFER from transaction
SE38
.
- Execute the program ZABAP_P_SNIFFER from transaction
-
Configure Search Parameters
- Specify the required search parameters in the selection screen:
- Pattern: Enter the text or regular expression to search for in the source code.
- Program Type & Name: Filter the search by report type or name.
- Package: Restrict the search to specific SAP packages.
- Function/Function Group: Limit the search to specific function groups or function names.
- Class/Interface: Search within specific classes or interfaces.
- Enhancement: Include specific enhancement points in the search.
- With Modifications: Optionally include modifications made to standard objects.
- Specify the required search parameters in the selection screen:
-
Execute the Search
- Press the Execute button to start the scanning process.
-
View Results
- The results will be displayed in a hierarchical ALV table. Use the links to navigate directly to the relevant source code lines.
You can install ABAP Sniffer using one of the following methods:
- Install ABAPGit in your SAP system if it's not already installed.
- Open the ABAPGit application in your system.
- Clone the repository URL of this project into ABAPGit.
- Pull the code into your system. ABAPGit will automatically create the necessary objects in your package.
- Copy the main program ZABAP_P_SNIFFER and its associated objects.
- Go to transaction SE38 in your SAP system.
- Create a new program named ZABAP_P_SNIFFER.
- Paste the code into the editor and activate it.
This tool is released under the MIT License. See the LICENSE file for more details.