<?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: insertion of data in database table using forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532613#M243241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please define the issue in bit more detail and is the below your code or the logic you are using...please cut=paste the particular code even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2006 09:19:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-29T09:19:04Z</dc:date>
    <item>
      <title>insertion of data in database table using forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532612#M243240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the answers provided, but still with this form routine and the query below together. Must see that the database table zvehicle is inserted with data from initvechile which is internal table. if any changes are done to the table it should be modified and updated, with out re-inserting the field once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me out with this, i have never worked on forms before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM vehicle_tab_fill USING p_line LIKE line&lt;/P&gt;&lt;P&gt;CHANGING p_initvehicle LIKE initvehicle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM zvehicle INTO initvehicle&lt;/P&gt;&lt;P&gt;WHERE vin = zzvin.&lt;/P&gt;&lt;P&gt;IF bukrs = '4010'.&lt;/P&gt;&lt;P&gt;INSERT lines of initvehicle into p_initvehicle&lt;/P&gt;&lt;P&gt;where market = 'mlemarket'.&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;insert lines of p_vehicle into table zvehicle&lt;/P&gt;&lt;P&gt;where market = 'nscmarket'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE table zvehicle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532612#M243240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: insertion of data in database table using forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532613#M243241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please define the issue in bit more detail and is the below your code or the logic you are using...please cut=paste the particular code even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532613#M243241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: insertion of data in database table using forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532614#M243242</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;you´re confusing us with your terms. You´re not working with forms but with subroutines. Forms are for printing information using either SAPscript or SmartForms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot work with Where in Insert. There´s also en error in your logic, that´s why your getting more lines than necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM zvehicle INTO &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;table&lt;/P&gt; initvehicle&lt;BR /&gt; WHERE vin = zzvin&lt;BR /&gt; &lt;B&gt;&lt;P&gt;and market = 'mlemarket'.&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;IF bukrs = '4010'.&lt;BR /&gt;&lt;B&gt;&lt;P&gt;UPDATE zvehicle from table initvehicle.&lt;/P&gt;&lt;/B&gt;  &lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mass update of several lines in a database table. Here, the primary key for identifying the lines to be updated and the values to be changed are taken from the lines of the internal table itab. The lines of the internal table must satisfy the same conditions as the work area wa in addition 1 to variant 2.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that could be an option if you were really working with many records, but I see that you work with only one (SELECT SINGLE), so you can also do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;IF bukrs = '4010'.&lt;BR /&gt; update zvehicle set field = value&lt;BR /&gt; WHERE vin = zzvin&lt;BR /&gt; and market = 'mlemarket'.&lt;BR /&gt;endif.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You better read the documentation for UPDATE, because it´s a dangerous instruction if applied incorrectly:&lt;/P&gt;&lt;P&gt;  update zvehicle set: field1 = value1&lt;/P&gt;&lt;P&gt;                       field2 = value2&lt;/P&gt;&lt;P&gt;     WHERE vin = zzvin&lt;/P&gt;&lt;P&gt;     and   market = 'mlemarket'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 10:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532614#M243242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T10:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: insertion of data in database table using forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532615#M243243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 08:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insertion-of-data-in-database-table-using-forms/m-p/1532615#M243243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T08:03:59Z</dc:date>
    </item>
  </channel>
</rss>

