<?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 table control events in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events-in-internal-table/m-p/4824487#M1128984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In internal table we can use table control events.&lt;/P&gt;&lt;P&gt;But in my requirement I have field-symbol as internal table and coreresponding work area like below.&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 = i_alv_cat&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ep_table        = d_ref.&lt;/P&gt;&lt;P&gt;assign d_ref-&amp;gt;* to &amp;lt;f_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA gd_line LIKE LINE OF &amp;lt;f_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN gd_line-&amp;gt;* TO  &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my issue is how can I use table control events in field-symbol (an internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;f_fs&amp;gt; into &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;at new WERKS.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use like above, it gives error: the specified type has no structure and therefore no component called &lt;/P&gt;&lt;P&gt;WERKS. &lt;/P&gt;&lt;P&gt;I cant create internal table like field-symbol becoz it is dynamically populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions pls................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Zak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2008 15:26:10 GMT</pubDate>
    <dc:creator>former_member463678</dc:creator>
    <dc:date>2008-11-18T15:26:10Z</dc:date>
    <item>
      <title>table control events in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events-in-internal-table/m-p/4824487#M1128984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In internal table we can use table control events.&lt;/P&gt;&lt;P&gt;But in my requirement I have field-symbol as internal table and coreresponding work area like below.&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 = i_alv_cat&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ep_table        = d_ref.&lt;/P&gt;&lt;P&gt;assign d_ref-&amp;gt;* to &amp;lt;f_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA gd_line LIKE LINE OF &amp;lt;f_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN gd_line-&amp;gt;* TO  &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my issue is how can I use table control events in field-symbol (an internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;f_fs&amp;gt; into &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;at new WERKS.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use like above, it gives error: the specified type has no structure and therefore no component called &lt;/P&gt;&lt;P&gt;WERKS. &lt;/P&gt;&lt;P&gt;I cant create internal table like field-symbol becoz it is dynamically populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions pls................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Zak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 15:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events-in-internal-table/m-p/4824487#M1128984</guid>
      <dc:creator>former_member463678</dc:creator>
      <dc:date>2008-11-18T15:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: table control events in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events-in-internal-table/m-p/4824488#M1128985</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;You can probably display your data in an editable ALV Grid using a custom container. That would be a better approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 15:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-events-in-internal-table/m-p/4824488#M1128985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T15:47:47Z</dc:date>
    </item>
  </channel>
</rss>

