Search within all SAP ABAP code for a variable.

I used a variable called - myvar.
I am uncertain where all i have used it during the ABAP development.
 
How can i search all ABAP code ever written in SAP for this variable?
In other words, how can i search SAP ABAP code for a variable, key word etc..

like in Oracle we had all_source, dba_source views to search pl/sql code for any string is there something similar in SAP ABAP?
gram77Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Onn LightSAP Technical ConsultantCommented:
Hi Gram77

From tcode SE80 or SE38You can use the Find(Ctrl +F) from the main toolbar SE80---1.png to search for any string Find Dialog Window within multiple programs Search-Range---1.png.

The Search Result Search-Result.png
Thanks and regards
onn
gram77Author Commented:
This partially meets my requirements.

As you have posted in your comment, you are manually choosing the programs for SAP to find from - Z100, Z200

I do not have the programs to find the string from.

I want SAP to give me a list of all programs that contains the string.
gram77Author Commented:
Why does SAP ask me to choose from a program list. If i am searching for a string i myself don't know in which all programs i can find the string in. That's what the program is supposed to find.

also there are other prebuilt programs that do the same:
RPR_ABAP_SOURCE_SCAN
RSRSCAN1
CODE_SCANNER

each one of these reports as for a parameter where i am supposed to provide program names where i think i may find the string. how rediculuos
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

gram77Author Commented:
Also another way is
TCode: CODE_SCANNER
Run a procedure (TCode:SE38): RS_ABAP_SOURCE_SCAN.

My only concern is: The parameter form asks me for Program Name:

Values i provide is Z* or Y*. This searches for user developed programs starting with Z or Y.

How do i search within SAP provided programs, which don't start with Z or Y
Onn LightSAP Technical ConsultantCommented:
Hi gram77

The Program Name Parameters in CODE_SCANNER and (TCode:SE38): RS_ABAP_SOURCE_SCAN are optional or accepts * for all.  

But its recommended that you somehow limit your search.

Confirmation prompt for CODE_SCANNER with * for Package name
With CODE_SCANNER if you give * and execute you get the above prompt.  18590 Packages are a lot of packages.

Its better if you can limit your search result, if you want to exclude Z* and Y* you can do it using the Multiple Selection (Exclusion) options.

Excluding Values in Multiple Selection
 
If you run with *

RS_ABAP_SOURCE_SCAN running
Your search will most likely Time Out, mine has already done so have scheduled it on background, will see if that gives any results.

Thanks and Regards
onn

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gram77Author Commented:
How did you come up with Exclusion Screen. Where you selected programs to be excluded from the search list.

CODE_SCANNER
RS_ABAP_SOURCE_SCAN

don't have this screen
Onn LightSAP Technical ConsultantCommented:
Hi gram77

Its this button Select-Option-Buton1.png  right next to each parameterSelect-Option-Buton.png
thanks and regards
onn
gram77Author Commented:
Excellent
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SAP

From novice to tech pro — start learning today.