<?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 record changes in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985728#M72940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do i record changes to an existing record in a table control..&lt;/P&gt;&lt;P&gt;and how do i record insert or delete rows?&lt;/P&gt;&lt;P&gt;i believe i can do the latter by comapring with the old records but what abt the former...&lt;/P&gt;&lt;P&gt;in chain and endchain do i have to place module for all the field names that could be potentially changed?&lt;/P&gt;&lt;P&gt;but how do i validate and keep those changes..&lt;/P&gt;&lt;P&gt;thanks a lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2005 20:31:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-04T20:31:05Z</dc:date>
    <item>
      <title>record changes in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985728#M72940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do i record changes to an existing record in a table control..&lt;/P&gt;&lt;P&gt;and how do i record insert or delete rows?&lt;/P&gt;&lt;P&gt;i believe i can do the latter by comapring with the old records but what abt the former...&lt;/P&gt;&lt;P&gt;in chain and endchain do i have to place module for all the field names that could be potentially changed?&lt;/P&gt;&lt;P&gt;but how do i validate and keep those changes..&lt;/P&gt;&lt;P&gt;thanks a lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 20:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985728#M72940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: record changes in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985729#M72941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used the table control wizard, it should have written some code in the flow logic of the screen.  Inside the LOOP in the PAI module, there should be a module with the word MODIFY in it.  Double click it, now you should be in the code of the MODULE.  There should be a line of code already there that is updating the internal table.  Here is where you can write the record to another internal table with the same structure, for example.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB is the main table&lt;/P&gt;&lt;P&gt;ITAB_CHG is the table which will hold the changed records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For deleting, you can do something simular, have an ITAB_DLT, where you are adding records that are being deleted from the main ITAB.  When saving at the end of the transaction you would process these ITABs accordingly.  Make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 20:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985729#M72941</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-04T20:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: record changes in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985730#M72942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in the table control you can add two flags at the end of the internal table, one for modified lines and one for deleted lines. Mark the flags in a PAI module when data is changed or data is selected to being deleted.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT I_TABLE.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD: D_XXX,&lt;/P&gt;&lt;P&gt;             D_YYY,&lt;/P&gt;&lt;P&gt;             D_ZZZ.&lt;/P&gt;&lt;P&gt;      MODULE FLAG_TABLE.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;It would be easier to save data if you only select modified and deleted lines to update your table.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2005 15:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-changes-in-table-control/m-p/985730#M72942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-05T15:16:03Z</dc:date>
    </item>
  </channel>
</rss>

