<?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: How to differnetiate global variable as internal table, work area, etc. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462074#M1929887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we differentiate variable as work area or internal table by using CL_ABAP_TYPEDESCR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 11:31:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-01-05T11:31:14Z</dc:date>
    <item>
      <title>How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462072#M1929885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make a report program to find all global variables in a program(mentioned in the selection screen) and display internal table and work area separately. &lt;/P&gt;&lt;P&gt;By using the function module 'GET_GLOBAL_SYMBOLS' I found out all the variables. Now I have to differentiate each as internal table, work area and other variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to differentiate. &lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ann &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 11:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462072#M1929885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-05T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462073#M1929886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I gave a wrong advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 11:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462073#M1929886</guid>
      <dc:creator>ivan_shadrin</dc:creator>
      <dc:date>2016-01-05T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462074#M1929887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we differentiate variable as work area or internal table by using CL_ABAP_TYPEDESCR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 11:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462074#M1929887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-05T11:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462075#M1929888</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;Not really - that's for run time use.&amp;nbsp; The results I get back have [] appended for internal tables.&amp;nbsp; If there's a reference type you can read the data dictionary tables (dd01x-dd04x)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for work areas etc,&amp;nbsp; you would need to parse the programs I would think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 11:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462075#M1929888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-05T11:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462076#M1929889</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;See: CL_ABAP_TYPEDESCR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/861991" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/861992" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 12:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462076#M1929889</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-01-05T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462077#M1929890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the same function module RFIELDLIST table you have a type field which will hold whether it is an internal table,work area or variable.&lt;/P&gt;&lt;P&gt;internal table -&amp;nbsp; type h&lt;/P&gt;&lt;P&gt;work area - u&lt;/P&gt;&lt;P&gt;variable of type char - C&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;variable of type string - g&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 12:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462077#M1929890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-05T12:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to differnetiate global variable as internal table, work area, etc.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462078#M1929891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you're right. I tried to find appropriate FM or class, but I couldn't.&lt;/P&gt;&lt;P&gt;But I have found a report RS_ACI_SHOW_AST. It performs parsing of the ABAP report and outputs a list of statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/861987" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the output generated by the report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/861988" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, may be it is possible to analyze statements with the specific types (for example, DATA DEFINITION, FIELD-SYMBOLS, PARAMETER DEFINITION and so on) and get the names of the variables and their data types names.&lt;/P&gt;&lt;P&gt;For example, Node 9 contains STRUCT-OP "TABLE OF..". Hence, this variable is an internal table.&lt;/P&gt;&lt;P&gt;Node 11. It has type SCARR-CARRID. You can use CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_NAME( P_NAME = 'SCARR-CARRID' ) to determine the actual type of this variable.&lt;/P&gt;&lt;P&gt;And so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there also some bad news. The report RS_ACI_SHOW_AST is extremely complicated. More than it, it is marked for internal use only.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/861998" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 12:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-differnetiate-global-variable-as-internal-table-work-area-etc/m-p/11462078#M1929891</guid>
      <dc:creator>ivan_shadrin</dc:creator>
      <dc:date>2016-01-05T12:18:59Z</dc:date>
    </item>
  </channel>
</rss>

