<?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: Reading different internal table dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613133#M1278996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can check the my post in the thread in specified in the bellow link --&lt;/P&gt;&lt;P&gt;[https://forums.sdn.sap.com/click.jspa?searchID=-1&amp;amp;messageID=7545053]&lt;/P&gt;&lt;P&gt;You can check the link bellow  --&lt;/P&gt;&lt;P&gt;[https://wiki.sdn.sap.com/wiki/display/Snippets/How&lt;EM&gt;to&lt;/EM&gt;create&lt;EM&gt;internal&lt;/EM&gt;table+dynamically]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 14:36:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-20T14:36:13Z</dc:date>
    <item>
      <title>Reading different internal table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613131#M1278994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I have a requierement where I need to read differrent internal tables starting with GT_TXT_* and whcih tabel is going to be read will be decided at runtime only.&lt;/P&gt;&lt;P&gt;I tried the following code but it's giving syntax error. Any suggestions ?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;DATA : l_tabname(14) TYPE c.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt; TYPE STANDARD TABLE any.&lt;/P&gt;&lt;P&gt;  DATA dref TYPE REF TO ty_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'GT_TXT_' belege-field INTO l_tabname.&lt;/P&gt;&lt;P&gt;  ASSIGN (l_tabname) TO &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE &amp;lt;dyn_table&amp;gt; INTO struc_txt WITH KEY key = t_output-old_val.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    t_output-old_val = struc_txt-text.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 13:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613131#M1278994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading different internal table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613132#M1278995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : t_mara TYPE TABLE OF mara .

DATA : gt_txt_1 TYPE t_mara ,
       gt_txt_2 TYPE t_mara .
DATA : gs_txt TYPE mara .

DATA : l_tabname(14) TYPE c.
FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt; TYPE t_mara .

CONCATENATE 'GT_TXT_' '1' INTO l_tabname.
ASSIGN (l_tabname) TO &amp;lt;dyn_table&amp;gt;.

READ TABLE &amp;lt;dyn_table&amp;gt; INTO gs_txt WITH KEY matnr = 'abc' .
IF sy-subrc = 0.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 13:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613132#M1278995</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-05-20T13:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading different internal table dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613133#M1278996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can check the my post in the thread in specified in the bellow link --&lt;/P&gt;&lt;P&gt;[https://forums.sdn.sap.com/click.jspa?searchID=-1&amp;amp;messageID=7545053]&lt;/P&gt;&lt;P&gt;You can check the link bellow  --&lt;/P&gt;&lt;P&gt;[https://wiki.sdn.sap.com/wiki/display/Snippets/How&lt;EM&gt;to&lt;/EM&gt;create&lt;EM&gt;internal&lt;/EM&gt;table+dynamically]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 14:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-different-internal-table-dynamically/m-p/5613133#M1278996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T14:36:13Z</dc:date>
    </item>
  </channel>
</rss>

