<?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: Fetching data from Table control into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-table-control-into-internal-table/m-p/12578309#M2009142</link>
    <description>&lt;P&gt;Use the debugger and you will see that you add a line in the MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;It's called all the time, so you should test the "OK field" (sort of sy-ucomm).&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 09:28:04 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-05-19T09:28:04Z</dc:date>
    <item>
      <title>Fetching data from Table control into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-table-control-into-internal-table/m-p/12578308#M2009141</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt;I have this requirement in which I need to fetch data from the table control into an internal table (any changes can be in any row), the table control is empty initially, user enter values one by one.&lt;/P&gt;
  &lt;P&gt;The problem is after getting first row and user presses enter, it works fine but when he enters new row and pressing enter, the internal tables is filled with three rows, that is two first rows and one new (second one). &lt;/P&gt;
  &lt;P&gt;Please help with some solution.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;MODULE user_command_0100 INPUT.
  APPEND wa_item TO it_item.
  CLEAR wa_item.
ENDMODULE.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  MODULE init_0100.
  LOOP AT it_item INTO wa_item  WITH CONTROL tc_item.

  ENDLOOP.
*
PROCESS AFTER INPUT.
  MODULE exit_module_0100 AT EXIT-COMMAND.
  LOOP AT it_item.
    MODULE user_command_0100.
  ENDLOOP.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 May 2022 09:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-table-control-into-internal-table/m-p/12578308#M2009141</guid>
      <dc:creator>former_member1132198</dc:creator>
      <dc:date>2022-05-19T09:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from Table control into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-table-control-into-internal-table/m-p/12578309#M2009142</link>
      <description>&lt;P&gt;Use the debugger and you will see that you add a line in the MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;It's called all the time, so you should test the "OK field" (sort of sy-ucomm).&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 09:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-table-control-into-internal-table/m-p/12578309#M2009142</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-05-19T09:28:04Z</dc:date>
    </item>
  </channel>
</rss>

