Link to home
Start Free TrialLog in
Avatar of gram77
gram77Flag for India

asked on

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?
Avatar of Onn Light
Onn Light

Hi Gram77

From tcode SE80 or SE38You can use the Find(Ctrl +F) from the main toolbar User generated image to search for any string User generated image within multiple programs User generated image.

The Search Result User generated image
Thanks and regards
onn
Avatar of gram77

ASKER

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.
Avatar of gram77

ASKER

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
Avatar of gram77

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Onn Light
Onn Light

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gram77

ASKER

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gram77

ASKER

Excellent