<?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: Create Internal table with different names (Dynamic) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115221#M1510322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i understand your requirements correctly i think there is no need for creating dynamic tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- you could define a deep structure, with line type like your output table.&lt;/P&gt;&lt;P&gt;- then loop at this structure and create your output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jul 2010 08:22:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-02T08:22:58Z</dc:date>
    <item>
      <title>Create Internal table with different names (Dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115219#M1510320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at BUKRS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Populates Internal table "XYZ"&lt;/P&gt;&lt;P&gt;Use ALV LIST APPEND to add the blocks&lt;/P&gt;&lt;P&gt;Final display output using ALV LIST DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requeirement:  If I run the report for multiple company codes I need to have the output like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUKRS1:&lt;/P&gt;&lt;P&gt;Report1&lt;/P&gt;&lt;P&gt;Report2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUKRS2:&lt;/P&gt;&lt;P&gt;Report1&lt;/P&gt;&lt;P&gt;Report2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: Since I populte the same internal table name its not working fine. Help me to create DYNAMIC internal table name for each loop and populate the ALV Append with different internal table name say XYZ_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 06:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115219#M1510320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T06:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create Internal table with different names (Dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115220#M1510321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create dynamic field catalogue .&lt;/P&gt;&lt;P&gt;try using this method:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = IT_OUTPUT2[]&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can assign this to a field-symbol...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 07:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115220#M1510321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T07:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Internal table with different names (Dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115221#M1510322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i understand your requirements correctly i think there is no need for creating dynamic tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- you could define a deep structure, with line type like your output table.&lt;/P&gt;&lt;P&gt;- then loop at this structure and create your output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 08:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-with-different-names-dynamic/m-p/7115221#M1510322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T08:22:58Z</dc:date>
    </item>
  </channel>
</rss>

