<?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: insert statement not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532722#M1935367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhukar,&lt;/P&gt;&lt;P&gt;for insert you could do it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;INSERT &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;Z123 VALUES&amp;nbsp; &lt;SPAN class="L0S52"&gt;Z123&lt;/SPAN&gt;wa&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where "&lt;SPAN&gt;&lt;SPAN class="L0S52"&gt;Z123 &lt;/SPAN&gt;_wa" is a line of your table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The modify is similar to the insert statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;MODIFY &lt;SPAN class="L0S52"&gt;Z123 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Z123&lt;/SPAN&gt;wa&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you INSERT new Data and the key field is identical, then a error should come. Because of this, you should proof sy-subrc if table modify was correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 07:11:13 GMT</pubDate>
    <dc:creator>former_member233938</dc:creator>
    <dc:date>2016-02-12T07:11:13Z</dc:date>
    <item>
      <title>insert statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532720#M1935365</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;I have a table Z123 which is having a key field f1.&lt;/P&gt;&lt;P&gt;I am using the statement : modify Z123 from WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, when an entry is found with the same key, it is updating the record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make sure that a new record appears when I do the process for a different non key field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe MODIFY and UPDATE will not work...and INSERT might..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to make the non key fields as key fields to add a new record in the table or what is the syntax for the INSERT statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhukar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 06:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532720#M1935365</guid>
      <dc:creator>rangerlet_mesee</dc:creator>
      <dc:date>2016-02-12T06:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: insert statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532721#M1935366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;INSERT IT&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;FROM&lt;/SPAN&gt; WA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm" title="https://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm"&gt;Inserting Lines into Tables - ABAP Programming (BC-ABA) - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 06:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532721#M1935366</guid>
      <dc:creator>sabirshah1</dc:creator>
      <dc:date>2016-02-12T06:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: insert statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532722#M1935367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhukar,&lt;/P&gt;&lt;P&gt;for insert you could do it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;INSERT &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;Z123 VALUES&amp;nbsp; &lt;SPAN class="L0S52"&gt;Z123&lt;/SPAN&gt;wa&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where "&lt;SPAN&gt;&lt;SPAN class="L0S52"&gt;Z123 &lt;/SPAN&gt;_wa" is a line of your table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The modify is similar to the insert statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;MODIFY &lt;SPAN class="L0S52"&gt;Z123 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Z123&lt;/SPAN&gt;wa&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you INSERT new Data and the key field is identical, then a error should come. Because of this, you should proof sy-subrc if table modify was correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532722#M1935367</guid>
      <dc:creator>former_member233938</dc:creator>
      <dc:date>2016-02-12T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: insert statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532723#M1935368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SE11 you declare primary keys, so define UNIQUE keys without NULL values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want multiple records you MUST extend the key list. This is a SQL constraint, and no statement will be able to bypass it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532723#M1935368</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-12T07:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: insert statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532724#M1935369</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 can use modify to create new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just fill the fields that compose the key with different values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the help for modify command .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-not-working/m-p/11532724#M1935369</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-02-12T07:17:38Z</dc:date>
    </item>
  </channel>
</rss>

