<?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: Dynamic data: declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230237#M1380491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting though tough one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use dynamic internal table creation (and it's work area) using:&lt;/P&gt;&lt;P&gt;CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a read through Rich's Blog - [Dynamic Internal Tables and Structures - ABAP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID1759109750DB10206591421434314571End?blog=/pub/wlg/2071]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 01:39:35 GMT</pubDate>
    <dc:creator>aabhas_wilmar</dc:creator>
    <dc:date>2009-09-22T01:39:35Z</dc:date>
    <item>
      <title>Dynamic data: declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230235#M1380489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a report using different set hierarchy. The set(s) have multiple nodes, and I need an internal table for each of the nodes. If the report is using a set with 10 nodes 10 internal tables are required, if the set has 15 nodes 15 internal tables are needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many times the set hierarchies get re-defined. New nodes get added, old nodes get deleted or reassigned to another hierarchy, etc. So after a while, the two sets may now have 12 nodes and 13 nodes (instead of 10, 15). Correspondingly the data declaration statements in the program have to be changed. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ITAB01 TYPE STANDARAD TABLE OF &amp;lt;STRUC01&amp;gt;,
            ITAB02 TYPE STANDARD TABLE OF &amp;lt;STRUC02&amp;gt;,
            ......
            ITAB09 TYPE STANDARD TABLE OF &amp;lt;STRUC09&amp;gt;,
            ITAB10 TYPE STANDARD TABLE OF &amp;lt;STRUC10&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requires to be modified as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ITAB01 TYPE STANDARAD TABLE OF &amp;lt;STRUC01&amp;gt;,
            ITAB02 TYPE STANDARD TABLE OF &amp;lt;STRUC02&amp;gt;,
            ......
            ITAB09 TYPE STANDARD TABLE OF &amp;lt;STRUC09&amp;gt;,
            ITAB10 TYPE STANDARD TABLE OF &amp;lt;STRUC10&amp;gt;,
            ITAB11 TYPE STANDARAD TABLE OF &amp;lt;STRUC11&amp;gt;,
            ITAB12 TYPE STANDARD TABLE OF &amp;lt;STRUC12&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ITAB01 TYPE STANDARAD TABLE OF &amp;lt;STRUC01&amp;gt;,
            ITAB02 TYPE STANDARD TABLE OF &amp;lt;STRUC02&amp;gt;,
            ......
            ITAB14 TYPE STANDARD TABLE OF &amp;lt;STRUC14&amp;gt;,
            ITAB15 TYPE STANDARD TABLE OF &amp;lt;STRUC15&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requires to be changed to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ITAB01 TYPE STANDARAD TABLE OF &amp;lt;STRUC01&amp;gt;,
            ITAB02 TYPE STANDARD TABLE OF &amp;lt;STRUC02&amp;gt;,
            ......
            ITAB12 TYPE STANDARD TABLE OF &amp;lt;STRUC12&amp;gt;,
            ITAB13 TYPE STANDARD TABLE OF &amp;lt;STRUC13&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of coding the data declaration dynamically? I know about dynamic programs, but not sure if it is a good option, esp since we have many sets that have more than 100 nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or can you suggest some other way of writing these reports?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 00:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230235#M1380489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T00:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data: declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230236#M1380490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a big task, even if it looks "easy". My first idea is, your request can not be covered by dynamic programming. a) every node has a different structure (I guess), b) the code itself has to be adjusted to the nodes in use as well. I.e. when a dynamic data declaration would be possible, the coding has to adhere the used number of nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My recommendation:&lt;/P&gt;&lt;P&gt;- declare as many standard tables (nodes) as possible&lt;/P&gt;&lt;P&gt;- the code for  each node has to be implemented&lt;/P&gt;&lt;P&gt;- define the number of used nodes by a parameter or an interface &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have success,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 01:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230236#M1380490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T01:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data: declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230237#M1380491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting though tough one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use dynamic internal table creation (and it's work area) using:&lt;/P&gt;&lt;P&gt;CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a read through Rich's Blog - [Dynamic Internal Tables and Structures - ABAP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID1759109750DB10206591421434314571End?blog=/pub/wlg/2071]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 01:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230237#M1380491</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2009-09-22T01:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data: declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230238#M1380492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heinz, Aabhas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your time and suggestions. I could not go ahead with dynmic data declaration, so created deep structures to get what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again to you both,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 21:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-declaration/m-p/6230238#M1380492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T21:13:55Z</dc:date>
    </item>
  </channel>
</rss>

