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

search a specific value in different programs

Former Member
0 Likes
1,722

Hi,

I have a specific value and I want to know in which program(s) this value is used. I don't know if this value is in a parameter or a select-options or a constant or ... So I want to check every program and find if a program use my value.

Maybe is there a transaction code that could do that ? If not, I need to create a program. So is there a function module which could read a program and find if a value is used ?

Thanks in advance for your help. If I'm not clear enough, I will enjoy to explain my problem with more details...

6 REPLIES 6
Read only

Former Member
0 Likes
1,111

Do you need to check for a specific value, like for example 42, or do you need to check for the variable usage in different programs?

Read only

Former Member
0 Likes
1,111

I'm not in front of SAP now so not able to give exact name but you can search in SE38 by

*scan*

press F4 or also in SE37

*scan*

press F4.

Amit.

Read only

0 Likes
1,111

RS_ABAP_SOURCE_SCAN in SE38

Read only

Former Member
0 Likes
1,111

I will be more precise.

For example, my value is ABCD and I want to have a liste of programs in which ABCD is used.

ABCD could be a value for a constant, a parameter, a select-options, etc. like this :

First example :

PARAMETERS : p_parameter LIKE mara-matnr.

...

p_parameter = 'ABCD'.

Second example :

SELECT-OPTIONS : s_select FOR mara-matnr.

...

s_select = 'ABCD'.

Third example :

CONSTANTS : c_constant TYPE c VALUE 'ABCD'.

My value ABCD could be used in programs to check results like this :

IF p_parameter = 'ABCD'.

Read only

0 Likes
1,111

You can use the report RPR_ABAP_SOURCE_SCAN to search for strings, but this report will give a successfull hit if the string is in the program code. ie Hardcoded (p_parameter = 'ABCD'.). It will not find the report where the value comes from the selection screen variant. For that you have to search all variants by building a custom report.

Read only

Former Member
0 Likes
1,111

Thanks for your help...