Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

find string in programs??

Former Member
0 Likes
48,295

Hello experts,

how do i find the perticular string in program.

e.g. i want to find string 'tables' in all 'y' n 'z' programs.

how do i do that???

1 ACCEPTED SOLUTION
Read only

Former Member
13,705

go to se38 give the std prog name RPR_ABAP_SOURCE_SCAN and run that now in selection screen program name select-option click on the arrow and give

Y*

z*

in single value

in find string parameters give table and execute

regards

shiba dutta

9 REPLIES 9
Read only

Former Member
13,705

Hi!

Use TRDIR table for the program names.

Then use in your ABAP program, the READ REPORT statement.

OR you can search for given string using the editors search function...

SE38 - TOOLS -Search in source - Select global in programs, click on the more selection and give Z*

Then start searching for your string.

OR you can use the program RPR_ABAP_SOURCE_SCAN for it.

Regards

Tamá

Read only

Former Member
0 Likes
13,705

Hi,

Check this through SE38,

RPR_ABAP_SOURCE_SCAN

Reward if useful!

Read only

Former Member
0 Likes
13,705

there is a standard SAP report to find string RPR_ABAP_SOURCE_SCAN,

execute it in se38

Reward points if useful, get back in case of query...

Cheers!!!

Read only

Former Member
13,706

go to se38 give the std prog name RPR_ABAP_SOURCE_SCAN and run that now in selection screen program name select-option click on the arrow and give

Y*

z*

in single value

in find string parameters give table and execute

regards

shiba dutta

Read only

Former Member
0 Likes
13,705

Hi,

Look at the below programs

RKCTSEAR --> Search source code of various programs for up to two strings.

RPR_ABAP_SOURCE_SCAN --> Search ABAP code for a string. Much more flexible than RSRSCAN1 or RKCTSEAR

RSRSCAN1 --> Search a string

Regards

Sudheer

Read only

Former Member
0 Likes
13,705

any sample code????

rewards will be awarded...

null

Read only

Former Member
0 Likes
13,705

Open transaction SE38 & type RPR_ABAP_SOURCE_SCAN & execute

Read only

Former Member
0 Likes
13,705

Hi,

Try This.

Execute RPR_ABAP_SOURCE_SCAN in SE38.

Give Program name and Find string..

Reward if Useful.

Read only

Former Member
0 Likes
13,705

Hi,

this program is working...

but my requirement is the output should be as shown below...

final count is my 'tables' string.

program name

final count

zmara

1

any sample code???