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

SAP Source Code Search

Former Member
0 Likes
3,413

Hello All,

We are starting an international implementation of SAP and I have a requirement to review all of our source code for the sales organization field (VKORG). Many of our custom reports, forms, and function modules used this field and because the international plant will have a new sales org, the way we used it as a selection criteria is incorrect.

Could you please reccommend a way to review the source code to find the occurrences of VKORG? I have tried the Where-used, however, it only shows me the fields from the table I selected (i.e. all the VBAK-VKORG but none of the A005-VKORG). Do I really need to use the where used feature on each table containing VKORG?

Any help is appreciated!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
990

Hello,

You may use trasaction CODE_SCANNER at a package level to find occurences of objects or strings.

Thanks,

Venu

5 REPLIES 5
Read only

Former Member
0 Likes
991

Hello,

You may use trasaction CODE_SCANNER at a package level to find occurences of objects or strings.

Thanks,

Venu

Read only

Former Member
0 Likes
990

Thankyou very much. This has solved my problem

Read only

ingo_barschow
Explorer
0 Likes
990

As far as I know the source-code search (SE38/Utilities/Find in source code) only works with 1 report. I've coded some extended version, around 1600 lines of listing. It will find textstrings in reports, dynpros, classes, fubas, modules and so on.

The main FORMS I've pasted: http://paste.org/pastebin/view/21203

u20AC: hell, I didnt realize there was a code-scanner onboard 😕

Edited by: Ingo Barschow on Aug 6, 2010 3:47 PM

Read only

Former Member
0 Likes
990

1. Open SE38

2. in menu bar, follow path Utilities > Find in Source Code

3. In the Pop Up Box, enter VKORG, in the field In Program , click on Multiple Selection Button, and enter Z* and click enter twice.

This will search VKORG in all your Z Codes.

Read only

former_member203501
Active Contributor
0 Likes
990

Hi ,

You need to write a program to get this field,suppose get all the codes from the progarms using read report statement, and search the field in it, if it is there then display in the list output , similarly we can get the name of the fms from tfdir. Search in the SDN to get the sample codes for the same

Regards

Venkat Appikonda.