Eursap’s Tip of the Week: Quick way to find a string in an SAP ABAP program
Eursap’s Tip of the Week: Quick way to find a string in an SAP ABAP program
Here’s a super quick tip to find a text string within an ABAP program.
Let’s look at this program RVCOMFZZ. In this user exit, we can see that there is a variable used that is called COM_PART-PARNO.
Let’s say we wanted to see where that variable is mentioned in all programs which begin with “RV”.
This can be done by doing a global search. In transaction SE38, select “Utilities>Find in Source Code” as below:
Then type the “COM_PART-PARNO” in the search term. Now select “In Include” option and hit the match key.
Then type in “RV*” in the program name and hit enter. You will be shown all the programs in the system beginning with “RV”, as below:
Click on “Find” and SAP will search all those programs for your string, returning the results as below:
This is especially useful when searching all your “Z” programs for the use of a particular table or field.
I hope you find this useful! Stay tuned for another SAP Tip from Eursap next week!
Be sure to also check out Eursap’s SAP Blog for more in depth articles.
Author: Jon Simmonds, Senior IT Architect
Get in touch with Eursap – Europe’s Specialist SAP Recruitment Agency