<?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 UPDATE statement not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384666#M1403715</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 want to modify the record of PA0009 .I want to change the enddate of personnel No.&lt;/P&gt;&lt;P&gt;UPDATE PA0009 SET ENDDA = '30.10.2009'&lt;/P&gt;&lt;P&gt;              WHERE PERNR = '1'&lt;/P&gt;&lt;P&gt;              AND BEGDA =  '01.09.2008'.&lt;/P&gt;&lt;P&gt;The above statement is not working. How to modify the enddate which is part of key table.&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;K Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2009 05:18:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-07T05:18:26Z</dc:date>
    <item>
      <title>UPDATE statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384666#M1403715</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 want to modify the record of PA0009 .I want to change the enddate of personnel No.&lt;/P&gt;&lt;P&gt;UPDATE PA0009 SET ENDDA = '30.10.2009'&lt;/P&gt;&lt;P&gt;              WHERE PERNR = '1'&lt;/P&gt;&lt;P&gt;              AND BEGDA =  '01.09.2008'.&lt;/P&gt;&lt;P&gt;The above statement is not working. How to modify the enddate which is part of key table.&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;K Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 05:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384666#M1403715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T05:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384667#M1403716</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UPDATE PA0009 SET ENDDA = '20091030'
WHERE PERNR = '1'
AND BEGDA = '20080901'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 05:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384667#M1403716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T05:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384668#M1403717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the data format to the internal date format (YYYYMMDD), so in the set and the where clause pass '20091030' as ENDA which is to be changed and BEGDA in the where clause as 20080901. Also if the after the changes if the key combination results in dupicate records then the update will faiil. Just make sure that the combination of PERNR,SUBTY,OBJPS,SPRPS,ENDDA, BEGDA and SEQNR remains unique, if a record exists with this combination then sy-subrc will be 4 and the record will not be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 05:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-statement-not-working/m-p/6384668#M1403717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T05:45:11Z</dc:date>
    </item>
  </channel>
</rss>

