<?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: Function module for  includes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742585#M1112502</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 FM...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
GET_INCLUDES
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2008 11:19:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-14T11:19:29Z</dc:date>
    <item>
      <title>Function module for  includes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742582#M1112499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any function module which would return all the includes name in the submitted program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 09:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742582#M1112499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T09:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  includes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742583#M1112500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;RS_GET_ALL_INCLUDES&lt;/STRONG&gt; for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 09:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742583#M1112500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  includes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742584#M1112501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Is there any function module which would return all the includes name in the submitted program?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Nitin is correct but the function module "RS_GET_ALL_INCLUDES", doen't inform the level of the INCLUDE. That means if you have a Report R1, which contains INCLUDE I1 and INCLUDE I2 and I1  inturn contains I11, then the Function Module will return:-&lt;/P&gt;&lt;P&gt;R1&lt;/P&gt;&lt;P&gt;I1&lt;/P&gt;&lt;P&gt;I11&lt;/P&gt;&lt;P&gt;I2&lt;/P&gt;&lt;P&gt;But it won't tell the level. If you need to know the level you can use the followinng code. In the following code the table ITAB2 also has the Depth, Level and Include Name information.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA prog TYPE c LENGTH 30.
DATA: itab TYPE TABLE OF string,
      itab2 TYPE TABLE OF slevel,
      itab3 TYPE TABLE OF stoken,
      itab4 TYPE TABLE OF sstmnt.

prog = 'RSTXR3TR'.

READ REPORT prog INTO itab.

SCAN ABAP-SOURCE itab LEVELS INTO itab2
                    WITH INCLUDES
                      TOKENS INTO itab3
                  STATEMENTS INTO itab4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 09:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742584#M1112501</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2008-11-14T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  includes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742585#M1112502</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 FM...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
GET_INCLUDES
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 11:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-includes/m-p/4742585#M1112502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T11:19:29Z</dc:date>
    </item>
  </channel>
</rss>

