<?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: Table Control Logic Required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654378#M290463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;when u enter new row, then in the code u must be checking that the primary field in not that is already entered. Check this for each row of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;MODIFY ITAB INDEX TAB_CTRL-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2006 07:40:09 GMT</pubDate>
    <dc:creator>former_member632991</dc:creator>
    <dc:date>2006-11-16T07:40:09Z</dc:date>
    <item>
      <title>Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654375#M290460</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;I have a table control displaying data from a ztable that has three primary keys.&lt;/P&gt;&lt;P&gt;the Table control is displaying one of the primary keys and rest are hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now suppose the table control is displaying the following rows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1(key)                 field 2 &lt;/P&gt;&lt;P&gt;A                           arvind&lt;/P&gt;&lt;P&gt;B                           soni &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the user inserts a row with the key A it gives error and deletes the newly entered row.So its working fine.&lt;/P&gt;&lt;P&gt;However when the user enters more than one row at a time with the already existing values i.e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1(key)                 field 2 &lt;/P&gt;&lt;P&gt;A                           arvind&lt;/P&gt;&lt;P&gt;B                           soni &lt;/P&gt;&lt;P&gt;A                           something                            -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;New row &lt;/P&gt;&lt;P&gt;B                           something                            -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;New row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program deletes the last row (B  something ) but not able to delete the another duplicate row (A something) and the program dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is clear that the table control current line is deleted properly if it is duplicate.But what happens when multiple rows have been entered into the table control.Please let me know how can i know what are the latest entries made in it and how to delete it.&lt;/P&gt;&lt;P&gt;Please also note that the user is allowed to enter the rows at any position of the table control.&lt;/P&gt;&lt;P&gt;I hope you all must have understood my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654375#M290460</guid>
      <dc:creator>arvind_soni</dc:creator>
      <dc:date>2006-11-16T07:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654376#M290461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the statement Delete adjacent duplicates to remove the duplicate values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654376#M290461</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-16T07:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654377#M290462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the delete adjacent duplicates will delete any of the rows,may be the original row will be deleted.&lt;/P&gt;&lt;P&gt;As the row can be insert any where in the table control . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654377#M290462</guid>
      <dc:creator>arvind_soni</dc:creator>
      <dc:date>2006-11-16T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654378#M290463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;when u enter new row, then in the code u must be checking that the primary field in not that is already entered. Check this for each row of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;MODIFY ITAB INDEX TAB_CTRL-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654378#M290463</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2006-11-16T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654379#M290464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;         u can do one thing for checking new entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in your internal table create one more file chr type &lt;/P&gt;&lt;P&gt;2. when you uploading data in internal table put flag like "o" for old&lt;/P&gt;&lt;P&gt;3. that filed should be disabled.&lt;/P&gt;&lt;P&gt;4. for new entries put "n" for new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way u can track new entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mukesh aggarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654379#M290464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T07:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Logic Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654380#M290465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use transporting along with modify stmt in performance view..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even if u modif the key fields, those values will not change.and if u r creating a new entry, y not handle explicitly befor u cud save with a read stmt that includes all key flds... if sy-subrc eq 0, pop a msg that record already exits..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is helpful.lemme no if u need any further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic-required/m-p/1654380#M290465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T07:55:16Z</dc:date>
    </item>
  </channel>
</rss>

