Eursap’s SAP Tip of the Week: Finding a string in all ABAP programs
Calling all ABAPers! Do you sometimes need to find where a specific string is used in your system but don’t know where to start?
Perhaps you are creating an organisational object, like a plant or a company code, as a copy of an existing object. If you have not had rock solid governance over your SAP system, then it is highly possible that you might have hard coded values for your organisational object in various programs, user exits or function modules.
So how do you find these? There are thousands of programs, function modules and other ABAP objects – surely you can’t search them all?
Help is at hand. SAP have an ABAP program, RPR_ABAP_SOURCE_SCAN, which you can run which will help. This program can scan all programs, function modules and classes for the string you are looking for.
One thing to be aware of: this program can easily take hours if you run it with a “*” in the Program Name, for example.
To improve performance, restrict your selection to certain programs e.g. to search all the sales orders user exits, use “MV45A*” as a selection.
Jon Simmonds, Senior ERP Architect
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.