‎2010 Aug 06 2:07 PM
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!
‎2010 Aug 06 2:23 PM
Hello,
You may use trasaction CODE_SCANNER at a package level to find occurences of objects or strings.
Thanks,
Venu
‎2010 Aug 06 2:23 PM
Hello,
You may use trasaction CODE_SCANNER at a package level to find occurences of objects or strings.
Thanks,
Venu
‎2010 Aug 06 2:42 PM
‎2010 Aug 06 2:43 PM
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
‎2010 Aug 06 2:45 PM
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.
‎2010 Aug 06 2:54 PM
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.