<?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: SAP Abap Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098473#M1616105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding, I have tried to provide a possible solution...&lt;/P&gt;&lt;P&gt;when you do any user-command like enter or click of button, PAI and PBO are triggered. So you would have written  a query to fetch data from DB in PAI or PBO. So when you do any action on screen, PAI and PBO are triggered and every time query is fired. So internal table which is bind to the table control has records appended when query is fired every time and record gets double. So you need to execute query and append the records in internal table only once. You can achieve this functionality by writing them in condition and this condition should only execute once when tcode is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mihir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jul 2011 10:17:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-17T10:17:19Z</dc:date>
    <item>
      <title>SAP Abap Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098472#M1616104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I created a table control in abap. And when I add a new record, it add to the db table  but the previous content becomes double.&lt;/P&gt;&lt;P&gt;help me please.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;Moderator Message: Welcome to SCN. I suggest you search the forums for similar issues. I'm sure you will find many similar threads with solutions. Please do not duplicate the forums with redundant information.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on Jul 18, 2011 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2011 06:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098472#M1616104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-17T06:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Abap Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098473#M1616105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding, I have tried to provide a possible solution...&lt;/P&gt;&lt;P&gt;when you do any user-command like enter or click of button, PAI and PBO are triggered. So you would have written  a query to fetch data from DB in PAI or PBO. So when you do any action on screen, PAI and PBO are triggered and every time query is fired. So internal table which is bind to the table control has records appended when query is fired every time and record gets double. So you need to execute query and append the records in internal table only once. You can achieve this functionality by writing them in condition and this condition should only execute once when tcode is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mihir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2011 10:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098473#M1616105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-17T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Abap Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098474#M1616106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please post your code of selection and insertion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;LG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 04:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098474#M1616106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-18T04:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Abap Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098475#M1616107</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;For table control: It is always a best practice to first check if there exist a record in that table with same data which you are trying to insert now and if it does not, then only insert it. Otherwise just update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 05:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098475#M1616107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-18T05:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Abap Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098476#M1616108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you directly saving the record to DB or Table control is assigned to internal table and the internal table updates the DB??&lt;/P&gt;&lt;P&gt;And is the duplicate record coming when u click the Add new button ?  &lt;/P&gt;&lt;P&gt;This could be probably because  you are not clearing your work area before adding teh new row..&lt;/P&gt;&lt;P&gt;if you could give your code, we could help better i think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suzie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 05:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-abap-table-control/m-p/8098476#M1616108</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2011-07-18T05:23:46Z</dc:date>
    </item>
  </channel>
</rss>

