‎2008 Sep 19 3:37 PM
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...
‎2008 Sep 19 3:39 PM
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?
‎2008 Sep 19 3:43 PM
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.
‎2008 Sep 19 4:06 PM
‎2008 Sep 19 3:59 PM
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'.
‎2008 Sep 19 4:05 PM
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.
‎2008 Sep 30 10:36 AM