<?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: read statement on dynamic internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417853#M1243797</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;Read this way....&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;lt;fs_str&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_lf_fval&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_lt_result_rate&amp;gt; type any table,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_ls_result_rate&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lv_fname type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_fname = 'MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component 'matnr' of structure &amp;lt;fs_str&amp;gt; to &amp;lt;fs_lf_fval&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE &amp;lt;fs_lt_result_rate&amp;gt; INTO &amp;lt;fs_ls_result_rate&amp;gt;&lt;/P&gt;&lt;P&gt;            WITH KEY (lv_fname) = &amp;lt;fs_lf_fval&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja Ainala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2009 10:28:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-01T10:28:03Z</dc:date>
    <item>
      <title>read statement on dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417852#M1243796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dynamic internal table &amp;lt;G_T_ITAB&amp;gt; with fields F1, F2, F3 &amp;amp; F4 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read the internal table &amp;lt;G_T_ITAB&amp;gt;. So im using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT G_T_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE &amp;lt;G_T_ITAB&amp;gt; INTO &amp;lt;G_R_ITAB&amp;gt; WITH KEY F1 = G_T_DATA-F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;    .......&lt;/P&gt;&lt;P&gt;  ENDIF.&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;But this is giving syntax error that F1 is not the field of &amp;lt;G_T_ITAB&amp;gt;. But the field is there in &amp;lt;G_T_ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest me to solve this issue. Or is there any other approach to use READ statement on dynamic internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417852#M1243796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T10:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: read statement on dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417853#M1243797</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;Read this way....&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;lt;fs_str&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_lf_fval&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_lt_result_rate&amp;gt; type any table,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_ls_result_rate&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lv_fname type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_fname = 'MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component 'matnr' of structure &amp;lt;fs_str&amp;gt; to &amp;lt;fs_lf_fval&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE &amp;lt;fs_lt_result_rate&amp;gt; INTO &amp;lt;fs_ls_result_rate&amp;gt;&lt;/P&gt;&lt;P&gt;            WITH KEY (lv_fname) = &amp;lt;fs_lf_fval&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja Ainala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417853#M1243797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: read statement on dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417854#M1243798</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;use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;G_T_ITAB&amp;gt; ASSIGNING &amp;lt;G_R_ITAB&amp;gt; WITH KEY F1 = G_T_DATA-F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-on-dynamic-internal-tables/m-p/5417854#M1243798</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2009-04-01T10:54:34Z</dc:date>
    </item>
  </channel>
</rss>

