<?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  code for  multiple  records insertion to  Ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-code-for-multiple-records-insertion-to-ztable/m-p/848677#M45753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its pretty simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behind your table control you have an internal table.  Assuming that you have handled all the table control logic to ensure that your internal table accurately reflects the changes on the table control, then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its simply-&amp;gt; MODIFY dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will handle both inserts and updates.  BUT you should not forget deletes!!!.  If records are to be deleted you should maintain a seperate internal table with records to be deleted and then issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to commit work!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2005 16:00:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-04T16:00:16Z</dc:date>
    <item>
      <title>Table Control  code for  multiple  records insertion to  Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-code-for-multiple-records-insertion-to-ztable/m-p/848676#M45752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody send me the :  Table Control  code for  multiple  records insertion to a  Ztable plz.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;moni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 14:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-code-for-multiple-records-insertion-to-ztable/m-p/848676#M45752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control  code for  multiple  records insertion to  Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-code-for-multiple-records-insertion-to-ztable/m-p/848677#M45753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its pretty simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behind your table control you have an internal table.  Assuming that you have handled all the table control logic to ensure that your internal table accurately reflects the changes on the table control, then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its simply-&amp;gt; MODIFY dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will handle both inserts and updates.  BUT you should not forget deletes!!!.  If records are to be deleted you should maintain a seperate internal table with records to be deleted and then issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to commit work!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 16:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-code-for-multiple-records-insertion-to-ztable/m-p/848677#M45753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T16:00:16Z</dc:date>
    </item>
  </channel>
</rss>

