<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Program that searches code statements in Z programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063722#M1354366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 more :&lt;/P&gt;&lt;P&gt;program RS_ABAP_SOURCE_SCAN : exists in basis 7.0&lt;/P&gt;&lt;P&gt;program AFX_CODE_SCANNER : exists in basis 7.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;program RPR_ABAP_SOURCE_SCAN : does NOT exist in basis 7.0 (supplied in ECC?)&lt;/P&gt;&lt;P&gt;program RSRSCAN1: exists in basis 7.0 but will dump if some sources have lines wider than 72 characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2009 18:24:01 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2009-09-02T18:24:01Z</dc:date>
    <item>
      <title>Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063717#M1354361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im wrting a program that search in all Z programs a certain statement, like all programs that have the Call Transaction statement but im facing dificulties to know the tables where the code of a programa is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to get this? can i actually get a code from a program in a standart table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;João Martins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 17:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063717#M1354361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063718#M1354362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please press F1 on READ REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 17:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063718#M1354362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T17:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063719#M1354363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this already have a standard program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPR_ABAP_SOURCE_SCAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this  will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 17:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063719#M1354363</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-09-02T17:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063720#M1354364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;RPR_ABAP_SOURCE_SCAN&lt;/STRONG&gt; program to search for any string in all programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 17:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063720#M1354364</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-09-02T17:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063721#M1354365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSRSCAN1   -- to find a string or comment or source code contains text in the reports and their includes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPR_ABAP_SOURCE_SCAN  - Scan ABAP Report Sources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 18:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063721#M1354365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063722#M1354366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 more :&lt;/P&gt;&lt;P&gt;program RS_ABAP_SOURCE_SCAN : exists in basis 7.0&lt;/P&gt;&lt;P&gt;program AFX_CODE_SCANNER : exists in basis 7.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;program RPR_ABAP_SOURCE_SCAN : does NOT exist in basis 7.0 (supplied in ECC?)&lt;/P&gt;&lt;P&gt;program RSRSCAN1: exists in basis 7.0 but will dump if some sources have lines wider than 72 characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 18:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063722#M1354366</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-02T18:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063723#M1354367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fetch all z* names from trdir.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from trdir 
            where name like 'Z%' ."check the field name in trdir as i am not infront of sap now

now 
loop at itab into is.
read report is-name into itab2. "you can search your line in this itab2 with read statement on itab2.

endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 19:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063723#M1354367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T19:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Program that searches code statements in Z programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063724#M1354368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the report RPR_ABAP_SOURCE_SCAN as suggested, but if you need more computing and manage the result witha Z program you could take a look to the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example retrieve all the occurrence of INCLUDE statement in a report source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ REPORT IP_REPONAME INTO SOURCE.
  gt_kw = 'INCLUDE'.
  APPEND gt_kw.
  SCAN ABAP-SOURCE SOURCE TOKENS      INTO gt_tk
                          STATEMENTS  INTO gt_stm
*                          OVERFLOW    INTO OVERFLOW_AREA
       KEYWORDS FROM gt_kw
       PROGRAM  FROM IP_REPONAME
*       INCLUDE PROGRAM  FROM IP_REPONAME
       MESSAGE  INTO MESS
       WITHOUT TRMAC
*       WITH INCLUDES
       WITH ANALYSIS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solve your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 19:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-that-searches-code-statements-in-z-programs/m-p/6063724#M1354368</guid>
      <dc:creator>_IvanFemia_</dc:creator>
      <dc:date>2009-09-02T19:31:03Z</dc:date>
    </item>
  </channel>
</rss>

