<?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: Reg Dynamic internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153711#M993146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd  same problem due to duplicate field names in dynamic internal table being created. so when I deleted duplicate entries from lt_components, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Dec 2011 22:11:00 GMT</pubDate>
    <dc:creator>kartikrajag</dc:creator>
    <dc:date>2011-12-31T22:11:00Z</dc:date>
    <item>
      <title>Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153705#M993140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a dynamic internal table but when i try to execute the program it is giving me the following error &lt;/P&gt;&lt;P&gt;LOAD_PROGRAM_NOT_FOUND and&lt;/P&gt;&lt;P&gt;CX_SY_PROGRAM_NOT_FOUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me a solution for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Chaitanya Swaroop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 09:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153705#M993140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153706#M993141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this ....do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="742654"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 09:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153706#M993141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153707#M993142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is some problem with your coding. Check it once. Or else show the code once.&lt;/P&gt;&lt;P&gt;cehck the sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zdynamic.
 
FIELD-SYMBOLS: &amp;lt;l_table&amp;gt; TYPE table,
&amp;lt;l_line&amp;gt; TYPE ANY,
&amp;lt;l_field&amp;gt; TYPE ANY.
 
DATA: is_lvc_cat TYPE lvc_s_fcat,
      it_lvc_cat TYPE lvc_t_fcat.
 
DATA: new_table TYPE REF TO data,
      new_line  TYPE REF TO data.
 
 
START-OF-SELECTION.
 
  is_lvc_cat-fieldname = 'KUNNR'.
  APPEND is_lvc_cat TO it_lvc_cat.
 
  is_lvc_cat-fieldname = 'NAME1'.
  APPEND is_lvc_cat TO it_lvc_cat.
 
  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = it_lvc_cat
    IMPORTING
      ep_table        = new_table.
 
*Create a new Line with the same structure of the table.
  ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;.
  CREATE DATA new_line LIKE LINE OF &amp;lt;l_table&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;.
 
 
  DO 2 TIMES.
    ASSIGN COMPONENT 'KUNNR' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
    &amp;lt;l_field&amp;gt; = sy-index.
 
    ASSIGN COMPONENT 'NAME1' OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;l_field&amp;gt;.
    &amp;lt;l_field&amp;gt; = 'A'.
    INSERT &amp;lt;l_line&amp;gt; INTO TABLE &amp;lt;l_table&amp;gt;.
  ENDDO.
 
  LOOP AT &amp;lt;l_table&amp;gt; INTO &amp;lt;l_line&amp;gt;.
    WRITE:/ &amp;lt;l_line&amp;gt;.
  ENDLOOP.
 
  READ TABLE &amp;lt;l_table&amp;gt; INTO &amp;lt;l_line&amp;gt; INDEX 2.
  &amp;lt;l_line&amp;gt;+10(2) = 'B'.
  MODIFY &amp;lt;l_table&amp;gt; FROM &amp;lt;l_line&amp;gt; INDEX 2.
 
 
  LOOP AT &amp;lt;l_table&amp;gt; INTO &amp;lt;l_line&amp;gt;.
    WRITE:/ &amp;lt;l_line&amp;gt;.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 09:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153707#M993142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T09:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153708#M993143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chaitanya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to have a look at my Wiki posting [Creating Flat and Complex Internal Tables Dynamically using RTTI|https://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 22:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153708#M993143</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-07-26T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153709#M993144</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;I get a similar problem.  It depends on what field-catalog fields I populate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give field-catalog values for fieldname, ref_field and ref_table, then the method CREATE_DYNAMIC_TABLE short-dumps with&lt;/P&gt;&lt;P&gt;Runtime errors         LOAD_PROGRAM_NOT_FOUND &lt;/P&gt;&lt;P&gt;Exception              CX_SY_PROGRAM_NOT_FOUND&lt;/P&gt;&lt;P&gt;Program " " not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give field-catalog values for fieldname and rollname (which logically ought to be enough), then there is no short dump, but all the fields of the internal table seem to be character fields of length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frustrating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shot in the dark: we have virtualized servers - any chance that could be relevant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 09:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153709#M993144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T09:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153710#M993145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem (described in my previous post to this thread) was solved by restricting field-catalog assignments to &lt;STRONG&gt;fieldname&lt;/STRONG&gt;, &lt;STRONG&gt;inttype&lt;/STRONG&gt;, &lt;STRONG&gt;intlen&lt;/STRONG&gt; and, where appropriate, &lt;STRONG&gt;decimals&lt;/STRONG&gt;.  No short dump now.&lt;/P&gt;&lt;P&gt;Can't explain this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 09:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153710#M993145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T09:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153711#M993146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd  same problem due to duplicate field names in dynamic internal table being created. so when I deleted duplicate entries from lt_components, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2011 22:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dynamic-internal-tables/m-p/4153711#M993146</guid>
      <dc:creator>kartikrajag</dc:creator>
      <dc:date>2011-12-31T22:11:00Z</dc:date>
    </item>
  </channel>
</rss>

