Searching for ABAP statement patterns and tokens within code
In addition to the quality, performance checks, you may use the Search Function node provided to formulate your own criteria in order to search for tokens and ABAP statement patterns within the program(s) in question. In this recipe, we will see how this may be done.
How to do it...
Follow these steps:
In the variant specification, expand the Search Function node. This checks appear as shown in the following screenshot:
- Click the icon to enter values for the Search of ABAP Tokens function.
Then, enter the search string in the Search Strig dialog box that appears.
- Enter one token in the field. For search of multiple tokens within the code, select the icon.
- For searching for ABAP statement patterns, click the icon for the check.
Then enter the single value in the field provided as shown in the following screenshot:
Finally run the inspection.
How it works...
The search for token function will search all the programs for the token...