<?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 simple programing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149458#M748877</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 have an ztable &lt;STRONG&gt;zgood&lt;/STRONG&gt; say &lt;/P&gt;&lt;P&gt;at 10am I have 8(1,2,3,4,5,6,7,&amp;amp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; records in &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and at 10.10am I have updated 2 more records(9 &amp;amp; 10) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;so now totally I have 10 records in &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;again at 10.20am I updated 4 more records(11,12,13 &amp;amp; 14) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;again at 10.30am I updated 6 more records(15,16,17,18,19 &amp;amp; 20) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have to write program with a select statement to extract the records of the table &lt;STRONG&gt;zgood&lt;/STRONG&gt; into internal table &lt;STRONG&gt;i_good&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say when I execute the program at 10am it has to fetch first 8 records into internal table &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute the same program at 10.20am it has to fetch only the records which were updated between 10.10am and 10.20 am (i.e only 2 records (9 &amp;amp; 10)) into the internal table &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute it at 10.30am it has to fetch only the records which were updated between 10.20am and 10.30 am.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2007 14:39:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-17T14:39:39Z</dc:date>
    <item>
      <title>simple programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149458#M748877</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 have an ztable &lt;STRONG&gt;zgood&lt;/STRONG&gt; say &lt;/P&gt;&lt;P&gt;at 10am I have 8(1,2,3,4,5,6,7,&amp;amp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; records in &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and at 10.10am I have updated 2 more records(9 &amp;amp; 10) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;so now totally I have 10 records in &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;again at 10.20am I updated 4 more records(11,12,13 &amp;amp; 14) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;again at 10.30am I updated 6 more records(15,16,17,18,19 &amp;amp; 20) into &lt;STRONG&gt;zgood&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have to write program with a select statement to extract the records of the table &lt;STRONG&gt;zgood&lt;/STRONG&gt; into internal table &lt;STRONG&gt;i_good&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say when I execute the program at 10am it has to fetch first 8 records into internal table &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute the same program at 10.20am it has to fetch only the records which were updated between 10.10am and 10.20 am (i.e only 2 records (9 &amp;amp; 10)) into the internal table &lt;STRONG&gt;zgood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute it at 10.30am it has to fetch only the records which were updated between 10.20am and 10.30 am.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 14:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149458#M748877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: simple programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149459#M748878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should fields in the table (zgood), which indicate the creation date and time of the entry, that is the only way to do (for example check BKPF which has CPUDT and CPUTM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 14:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149459#M748878</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-12-17T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: simple programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149460#M748879</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;You need to retrive the details as per your requirement, but you need to have any key fields like (date and time) to identify the date and time at which the fields are updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 14:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149460#M748879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149461#M748880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a z table: ZTIME with mandt, date and time and mandt is a key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(only once - insert a record into ZTIME with current date and time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  let us say it has one record with date: 17.12.2007 and time: 10.00.00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program,after start -of-selection and before first select query, do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zzdate zztime&lt;/P&gt;&lt;P&gt;from ZTIME&lt;/P&gt;&lt;P&gt;into (LV_zzdate, LV_ZZtime).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from xxxx&lt;/P&gt;&lt;P&gt;into table it_XXXX&lt;/P&gt;&lt;P&gt;where date &amp;gt;=lv_zzdate and date &amp;lt;= sele_date&lt;/P&gt;&lt;P&gt;      and time &amp;gt;= lv_time and time &amp;lt;=sele_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is first query, u get 1 ....... 8 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify  Ztime with sy-datum and sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it would be same date 17.12.2007 and time would be 10.10&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;select zzdate zztime&lt;/P&gt;&lt;P&gt;from ZTIME&lt;/P&gt;&lt;P&gt;into (LV_zzdate, LV_ZZtime).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from xxxx&lt;/P&gt;&lt;P&gt;into table it_XXXX&lt;/P&gt;&lt;P&gt;where date &amp;gt;=lv_zzdate and date &amp;lt;= sele_date&lt;/P&gt;&lt;P&gt;      and time &amp;gt;= lv_time and time &amp;lt;=sele_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is second query , u get 9 and 8 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the purpose z table : ZTIME is to maintain the last date and last time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on this u can change/modify ur requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 19:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149461#M748880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T19:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: simple programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149462#M748881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see you are saying to modify ZTIME every time but my program is running in background. &lt;/P&gt;&lt;P&gt;I started my program at 10.00am and made it to run periodically for every 10 minutes, at this movement how can I handle this situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 03:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-programing/m-p/3149462#M748881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T03:58:06Z</dc:date>
    </item>
  </channel>
</rss>

