<?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: maintaining program last run date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742557#M1112489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the job runs daily only once. When you extract the data use sy-datum to extact the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it runs more than once, then create a table to store the program name , last run date and last run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 09:55:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T09:55:21Z</dc:date>
    <item>
      <title>maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742555#M1112487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;             The program will be run on a daily basis. To avoid duplication of data the extract should store the last run date. Every time it runs it should check the last run date and return only records subsequent to that run date. Can anyone please give the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742555#M1112487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T09:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742556#M1112488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what you can do is add a record to the TVARV table with the last run date of the program. &lt;/P&gt;&lt;P&gt;At the beginning of the program you check this record.&lt;/P&gt;&lt;P&gt;At the end you have to update this record with the current date.&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;hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742556#M1112488</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-10-31T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742557#M1112489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the job runs daily only once. When you extract the data use sy-datum to extact the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it runs more than once, then create a table to store the program name , last run date and last run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742557#M1112489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T09:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742558#M1112490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Z table and do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742558#M1112490</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-10-31T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742559#M1112491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Venkatesh,&lt;/P&gt;&lt;P&gt;                        You need to create custom table for the same.Wherein you will be storing the date and time,at the end of your program.At the start of  your program ,you can select the record with max date and time from this table.This way scenario can be easily handled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742559#M1112491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742560#M1112492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Venkates,&lt;/P&gt;&lt;P&gt;u can do this by maintaining the last run date in some ztable&lt;/P&gt;&lt;P&gt;ztimestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u execute the program check whether ur current date is greater thna the value stored in the ztimestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but remember u nedd to use locking mechanism for this&lt;/P&gt;&lt;P&gt;after the execution update the Ztimestamp with the current value&lt;/P&gt;&lt;P&gt;use the enqueu and deque functionality&lt;/P&gt;&lt;P&gt;u need to do this to avoid simultameous update to ur timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 10:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742560#M1112492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining program last run date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742561#M1112493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Thanks for your valuable solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 10:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-program-last-run-date/m-p/4742561#M1112493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T10:16:38Z</dc:date>
    </item>
  </channel>
</rss>

