<?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: Modify statement! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556485#M251964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Somen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is strange ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two possibilities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If your custom table contains no line with the same primary key as the line/record to be inserted, MODIFY works like INSERT, i.e the line/record is added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If the custom tables already contains a line/record with the same primary key as the line/record to be inserted, MODIFY works like UPDATE, i.e the line/record is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you double check the data for 110 300 0019000001 2006 in your custom table again? &lt;/P&gt;&lt;P&gt;Is it possible the custom table corrupted? Perhaps you may want to run database utitlity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Sep 2006 02:19:10 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-09-16T02:19:10Z</dc:date>
    <item>
      <title>Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556483#M251962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to update a ztable which is having the following key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MANDT&lt;/P&gt;&lt;P&gt;2. BUKRS&lt;/P&gt;&lt;P&gt;3. BELNR&lt;/P&gt;&lt;P&gt;4. GJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am moving some the following values in to the workarea 1st time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;110     200     0019000001     2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using MODIFY statement I am inserting this record into the ztable. Next I am trying to insert another record in to the ztable with the following values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;110     300     0019000001     2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not getting inserted into the ztable. I believe as long as the key combination is not same, it should insert a record in to a table using MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is it not happening here? Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 23:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556483#M251962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T23:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556484#M251963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Somen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think if you use the MODIFY with correct workarea then it should insert. &lt;/P&gt;&lt;P&gt; This cases only happens when the system tries to do a key comparison using the characeter fields as the key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 00:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556484#M251963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T00:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556485#M251964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Somen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is strange ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two possibilities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If your custom table contains no line with the same primary key as the line/record to be inserted, MODIFY works like INSERT, i.e the line/record is added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If the custom tables already contains a line/record with the same primary key as the line/record to be inserted, MODIFY works like UPDATE, i.e the line/record is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you double check the data for 110 300 0019000001 2006 in your custom table again? &lt;/P&gt;&lt;P&gt;Is it possible the custom table corrupted? Perhaps you may want to run database utitlity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 02:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556485#M251964</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-09-16T02:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556486#M251965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's pretty hard to say without seeing the code. Would you please post it? Also let us know the return code after the modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rogb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 03:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556486#M251965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556487#M251966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Somen,&lt;/P&gt;&lt;P&gt;Can you please try to use 'INSERT' inplace of 'MODIFY' and then let me know if it dumps during second instance of insert of the record you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 08:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556487#M251966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556488#M251967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is BUKRS field declared as in your z program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 14:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556488#M251967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556489#M251968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry folks...my oversight. The MODIFY statement is works correctly but one the fields is been over written at some point. Hence the record is not getting inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Points awarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 17:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1556489#M251968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T17:12:06Z</dc:date>
    </item>
  </channel>
</rss>

