<?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: Ztable data updation issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498893#M231300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done using function modules. You need to write the logic to evaluate to data to be deleted from the ZTable based on the input file contents. Delete the data(Step 1) and then insert the input data(Step 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit the data only if Steps 1 and 2 are successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 07:54:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-14T07:54:26Z</dc:date>
    <item>
      <title>Ztable data updation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498892#M231299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I have created a Ztable that will hold 2years data. This table is uploaded with file of type( .lst) values which has name and date field only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Now, suppose i have data in the table from 1st Jan'04 to 31st Dec'05 , when i add the first week data of 2006 , it should delete the 1st week data of 2004 and replace it with the new data.Can this be done using any FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reply.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 07:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498892#M231299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T07:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable data updation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498893#M231300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done using function modules. You need to write the logic to evaluate to data to be deleted from the ZTable based on the input file contents. Delete the data(Step 1) and then insert the input data(Step 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit the data only if Steps 1 and 2 are successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 07:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498893#M231300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T07:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable data updation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498894#M231301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sindhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Can this be done using any FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no direct FM / functionality,&lt;/P&gt;&lt;P&gt;which will do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In our logic itself,&lt;/P&gt;&lt;P&gt;  we have to take care of such thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. a) Delete any record, which suits our requirement (2 years old already there)&lt;/P&gt;&lt;P&gt;   b) then add our record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. suppose your key field is DATE&lt;/P&gt;&lt;P&gt;  and new date record is&lt;/P&gt;&lt;P&gt;    20060101 (1 jan 2006)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. then u can construct old date like this.&lt;/P&gt;&lt;P&gt;   oldyear = mydate(4) - 2.&lt;/P&gt;&lt;P&gt;   concatenate oldyear mydate+4(4) into oldate.&lt;/P&gt;&lt;P&gt;   delete from ZTable where date = olddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 08:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-data-updation-issue/m-p/1498894#M231301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T08:09:50Z</dc:date>
    </item>
  </channel>
</rss>

