2013 Oct 30 9:19 AM
Hi Everyone ,
Can you help me on : How to find hard coded values in all custom function modules ? . I know that RS_ABAP_SOURCE_SCAN this would work for programs . but how can I check for Function modules and Web Dynpro Components .
2013 Oct 30 10:02 AM
Hi Shiva,
For Fuction modules you can use CODE_SCANNER tcode.
Specify the package and hardcoded string you want to search.
For Webdynpro follow below process:
1. Goto SE24
2. Classname : CL_WDY_WB_NAMING_SERVICE. Click on execute.
3. Select First method : GET_CLASSNAME_FOR_COMPONENT
4. Specify component name.
5. You will get class of that component. Copy the classname and paste on SE24.
6. Click on display.
7. Select search.
8. Specify string you want to search.
-
Ashutosh
2013 Oct 30 9:42 AM
Hi,
Can you not pass the include name, or program name, of the function module to RS_ABAP_SOURCE_SCAN? For example Function ABAP_SCAN_DATA_DESCRIPTION, is in program name SAPLSSN1, of Include LSSN1UO1, as per the Attributes Tab?
For webdynpro, can you not pass the custom classes to this same Scan Report?
2013 Oct 30 9:58 AM
Hi Glen Anthony ,
Thank you , That works . Earlier I just directly reffered to EWK1 Tcode , So there It only asks Program
name and I thought It was not possible for WD components . Now I have checked report RS_ABAP_SOURCE_SCAN . Thank you again .
2013 Oct 30 9:48 AM
Hello Shiva,
I would prefer to use the CodeInspector ( Transaction SCI ) and configure a test-variant which performs the neccessary checks for literals.
Next, you have to define an object set which includes only your wanted objects ( function-modules, webdynpro, classes etc...).
I you want to check for a specific set of hardcoded-values you should use the ABAP-Scan function of the SCI. Furthermore, I all existing checks do not fit you requirements, it is very easy to implement your own check.
Kind regards,
Hendrik
2013 Oct 30 9:54 AM
Hi Shiva,
Function Modules are present inside some or other Function Group.
So if you are lookingfor Function Module then you can search it using Function Group Name.
Report RS_ABAP_SOURCE_SCAN allows you to scan for Function Group
In below screen you can set Program Type = 'F' or give Function Group Name in the selection screen.
Cheers,
Vikas
2013 Oct 30 10:02 AM
Hi Shiva,
For Fuction modules you can use CODE_SCANNER tcode.
Specify the package and hardcoded string you want to search.
For Webdynpro follow below process:
1. Goto SE24
2. Classname : CL_WDY_WB_NAMING_SERVICE. Click on execute.
3. Select First method : GET_CLASSNAME_FOR_COMPONENT
4. Specify component name.
5. You will get class of that component. Copy the classname and paste on SE24.
6. Click on display.
7. Select search.
8. Specify string you want to search.
-
Ashutosh