<?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: Pass data from table control to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852095#M926022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Every table control is nothing but the internal table in program. If user inputs some data in table control and after any user action (Eg. ENTER hit), data should be in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to debug your code in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter data in table control&lt;/P&gt;&lt;P&gt; - Do \h&lt;/P&gt;&lt;P&gt; - press enter.&lt;/P&gt;&lt;P&gt; - control will go in program and see if you have that data in your internal table defined as table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ award points if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 21:19:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T21:19:31Z</dc:date>
    <item>
      <title>Pass data from table control to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852094#M926021</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;In my initial screen, I created a table control where the user can enter material numbers and quantities. Then, when the user hits ENTER, I want to be able to pass the values in the table control to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to do this. I know that normally, I can add a LOOP-ENDLOOP statement in the PAI and then within the LOOP add a MODULE statement to modify the internal table accordingly. But my internal table is empty - I need to take the data from the table control to populate it - so this logic won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the first time I'm working with table controls, so any tips would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 19:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852094#M926021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T19:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pass data from table control to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852095#M926022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Every table control is nothing but the internal table in program. If user inputs some data in table control and after any user action (Eg. ENTER hit), data should be in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to debug your code in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter data in table control&lt;/P&gt;&lt;P&gt; - Do \h&lt;/P&gt;&lt;P&gt; - press enter.&lt;/P&gt;&lt;P&gt; - control will go in program and see if you have that data in your internal table defined as table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ award points if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 21:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852095#M926022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T21:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pass data from table control to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852096#M926023</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 just need to add one more line after the modify  ITAB statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify tc_itab from wa_tc_tab index tc-current_line.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc ne 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append wa_tc_tab to tc_itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&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;Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 21:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852096#M926023</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2008-05-14T21:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass data from table control to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852097#M926024</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;In your case, i have been imaging that it is a transaction to create data.&lt;/P&gt;&lt;P&gt;So, the table control read the data line by line i mean (in the header).&lt;/P&gt;&lt;P&gt;So, In your code you have to make a read statament using the header data to check out if its already exist in the internal table. &lt;/P&gt;&lt;P&gt;If exist you do the MODIFY if dont you do the APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;award points if this is useful.&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 21:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-data-from-table-control-to-internal-table/m-p/3852097#M926024</guid>
      <dc:creator>alexandre_docarmorocha</dc:creator>
      <dc:date>2008-05-14T21:50:33Z</dc:date>
    </item>
  </channel>
</rss>

