<?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: Update command not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592914#M1567454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the responses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no issue with the WHERE clause..&lt;/P&gt;&lt;P&gt;As said in the WHERE clause there is only one parameter and that too CHAR type and all the leading zeroes are padded to it before UPDATE..Also the value will always be numeric (0-9)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the program has the option to update only one entry at a time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 18:29:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-27T18:29:46Z</dc:date>
    <item>
      <title>Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592910#M1567450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a custom program in which i am updating 3 custom tables using :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update ....&lt;/P&gt;&lt;P&gt;set .... = ....&lt;/P&gt;&lt;P&gt;where ....= ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program is working correctly in Sandbox &amp;amp; Development system but in the quality system 2 updates are working but the third one returns with sy-subrc = 4.&lt;/P&gt;&lt;P&gt;As sy-subrc = 4 reflects that the entry doesn't exists but the entry does exists in the table..&lt;/P&gt;&lt;P&gt;I am not updating the key field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain why this thing is happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 20:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592910#M1567450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T20:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592911#M1567451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll find the problem lies in the WHERE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One side or the other is in upper/lower case and the other is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or one side or the other needs to go through a conversion exit to be padded with the correct number of zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 20:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592911#M1567451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T20:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592912#M1567452</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;If the fields used in the where condition of the update are Character fields, then check if there are leading zeros that are required for meeting the criteria. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase the number if entries that you are updating are less, try using the update inside a loop statement, where you update one record at the time. In this case make sure that the you have selected the required data into the Internal table (which is being looped). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I think this is happening because the WHERE criteria is not being met (or) may be the entry that you are trying to edit is locked by someother program or object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know, how you solved it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 20:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592912#M1567452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592913#M1567453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most has been said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field(s) in the WHERE clause have been appended to the table structure they may not yet have any value, here you find them using IS NULL which is different from = space or = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downside is: You can not "see" Null values - when selected they are automatically converted to initial values. But in the WHERE clause they are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 21:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592913#M1567453</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-26T21:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592914#M1567454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the responses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no issue with the WHERE clause..&lt;/P&gt;&lt;P&gt;As said in the WHERE clause there is only one parameter and that too CHAR type and all the leading zeroes are padded to it before UPDATE..Also the value will always be numeric (0-9)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the program has the option to update only one entry at a time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 18:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592914#M1567454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592915#M1567455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to replicate this error consistently in QA system? or Did this happen once and you are going back to find out the cause? because if it happened before, is there a guarantee that Table was not updated to add the entry afterwards? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the data type of the field? Is it standard or custom data type? Do you have any conversion routines attached to this data type? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have a new set of eyes to look at your code and table content... fresh look may catch something, that you may have overlooked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 19:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592915#M1567455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T19:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update command not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592916#M1567456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mani kant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the  type of the field? Are you using any conversion for date or any other filed. If it is a issue with filed like date or time check the user parameter ans system parameters. Tell me where exactly you are getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 03:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-command-not-working/m-p/7592916#M1567456</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-01-28T03:58:39Z</dc:date>
    </item>
  </channel>
</rss>

