<?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: handling database tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617590#M276437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can show the table data in table control, allow user to modify the data, and then update your ztable using the contents of your table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Oct 2006 08:51:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-03T08:51:51Z</dc:date>
    <item>
      <title>handling database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617589#M276436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can we do insert, update or delete in a database table using module pool i.e. push buttons on a screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617589#M276436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: handling database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617590#M276437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can show the table data in table control, allow user to modify the data, and then update your ztable using the contents of your table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617590#M276437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: handling database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617591#M276438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tarka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. push button will trigger some fcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Inside the code, we have to write the logic&lt;/P&gt;&lt;P&gt;   to update the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. suppose your whole data is in ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. then we can simply use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. LOOP AT ITAB. &lt;/P&gt;&lt;P&gt;   MODIFY ZDBTABLE FROM ITAB.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. This MODIFY statement will automatically&lt;/P&gt;&lt;P&gt;   take care of insert/update&lt;/P&gt;&lt;P&gt;   based upon the primary key found/not found&lt;/P&gt;&lt;P&gt;   in the ztable.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617591#M276438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: handling database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617592#M276439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign FCODE `INSERT`, `DELETE` to the buttons in screen layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;In flow logic :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when `INSERT`.&lt;/P&gt;&lt;P&gt;insert into ztable values watab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when `DELETE`.&lt;/P&gt;&lt;P&gt;DELETE FROM ZTABLE where matnr = watab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-database-tables/m-p/1617592#M276439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:53:48Z</dc:date>
    </item>
  </channel>
</rss>

