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

How to find hard coded values in all custom function modules ?

Former Member
0 Likes
3,548

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 .

1 ACCEPTED SOLUTION
Read only

0 Likes
1,912

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

5 REPLIES 5
Read only

former_member201275
Active Contributor
0 Likes
1,912

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?

Read only

0 Likes
1,912

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 .

Read only

hendrik_brandes
Contributor
0 Likes
1,912

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

Read only

vikas_mulay2
Participant
0 Likes
1,912

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

Read only

0 Likes
1,913

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