<?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: Batch Program - Need to write Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822981#M1782965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Frédéric Girod&lt;/SPAN&gt; ,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; STATUS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp; J_TXT04 , &lt;/P&gt;&lt;P&gt; ZZSUBMITTED_AT&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp; SYUZEIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now i need to get all the Entries in the table where the status is "XYZ" and time frame is from Past 15 minutes which all Quotes are Updated (Ie ZZSUBMITTED_AT ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : Suppose now the time is 10.30 AM, i need to get all the entries from the table from 10.15 AM to 10.30 AM where in&amp;nbsp; ZZSUBMITTED_AT is updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bascially&amp;nbsp; ZZSUBMITTED_AT is a time field which is used to check when the entries in the table is last modified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nikhil Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 05:08:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-29T05:08:36Z</dc:date>
    <item>
      <title>Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822978#M1782962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need to Query one Table which has two fields : QUOTE_STATUS and Quote_Submitted_at_time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my Batch Program which runs every 15 min, i need to write a select Query to fetch all the Quotes Submited During this 15 Min Gap and for a particular status.&amp;nbsp; Please suggest a Performance efficient Select Query for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822978#M1782962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T04:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822979#M1782963</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;give us the structure of your table&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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822979#M1782963</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-10-29T04:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822980#M1782964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;This is what I would do:&lt;/P&gt;&lt;P&gt;Create a new table which holds a single entry for maintaining my batch run details. Like&lt;/P&gt;&lt;P&gt;Batch_job_name, Last run date and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program I will write a query on this table to fetch last run batch details and accordingly I will retrieve details from the table you have specified. Last step in my program is to update this entry with current date and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to create a table I think you can look for ABAP memory concept, like EXPORT and IMPORT the internal which holds this batch job details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;-Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822980#M1782964</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-10-29T04:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822981#M1782965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Frédéric Girod&lt;/SPAN&gt; ,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; STATUS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp; J_TXT04 , &lt;/P&gt;&lt;P&gt; ZZSUBMITTED_AT&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp; SYUZEIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now i need to get all the Entries in the table where the status is "XYZ" and time frame is from Past 15 minutes which all Quotes are Updated (Ie ZZSUBMITTED_AT ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : Suppose now the time is 10.30 AM, i need to get all the entries from the table from 10.15 AM to 10.30 AM where in&amp;nbsp; ZZSUBMITTED_AT is updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bascially&amp;nbsp; ZZSUBMITTED_AT is a time field which is used to check when the entries in the table is last modified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nikhil Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822981#M1782965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T05:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822982#M1782966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_time &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_time2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lv_time &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_time2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'001500'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_time&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_time &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_time &lt;SPAN class="L0S70"&gt;- &lt;/SPAN&gt;lv_time2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_time&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;After last step field lv_time will have system time - 15 minutes. Now you can query your table where the status is 'XYZ' and time frame from lv_date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-Venkat&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822982#M1782966</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-10-29T05:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822983#M1782967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Venkat, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt; Can you paste the select Query for completing this answer. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Thanks alot,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;BR,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Kaushik&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822983#M1782967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T05:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822984#M1782968</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 can extract the previous job run details from TBCO table and compre with your table to extract the quotes.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822984#M1782968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T05:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822985#M1782969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;: &lt;/SPAN&gt;lv_time &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;TYPE &lt;/SPAN&gt;sy&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_time2 &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;TYPE &lt;/SPAN&gt;sy&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;lv_time &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;uzeit&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;lv_time2 &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'001500'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;lv_time &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;lv_time &lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;- &lt;/SPAN&gt;lv_time2&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from &amp;lt;your table name&amp;gt;&lt;/P&gt;&lt;P&gt;into table it_final&lt;/P&gt;&lt;P&gt;where status = 'XYZ' &lt;/P&gt;&lt;P&gt;&amp;nbsp; and zzsubmitted_at GE lv_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;-Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822985#M1782969</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-10-29T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822986#M1782970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Koushik,&lt;/P&gt;&lt;P&gt;I have similar requirement but to select the records created for past 15 minutes..&amp;nbsp; Study this program and apply this logic.&lt;/P&gt;&lt;P&gt;This program select all material documents created for past 15 minutes.(thrugh mb1b)&amp;nbsp; and send a notification by email&lt;/P&gt;&lt;P&gt;Use the function to calculate time - &lt;/P&gt;&lt;P&gt;'SWI_DURATION_DETERMINE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Notification for MB1B&lt;BR /&gt;select * from mkpf into CORRESPONDING FIELDS OF TABLE&amp;nbsp; it_mkpf where cpudt = sy-datum and tcode2 = 'MB1B'.&lt;BR /&gt;loop at it_mkpf into wa_mkpf.&lt;BR /&gt;&amp;nbsp; t_time = wa_mkpf-cputm - 900.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;CALL FUNCTION 'SWI_DURATION_DETERMINE'&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start_date = sy-datum&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_date = sy-datum&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start_time = wa_mkpf-cputm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_time =&amp;nbsp; sy-uzeit&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration = lv_seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration = lv_seconds / 60.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if duration &amp;lt;= 5.&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; write:&amp;nbsp; /0 wa_mkpf-mblnr, 30 wa_mkpf-cpudt,&amp;nbsp; 50 wa_mkpf-cputm,&amp;nbsp; 70 duration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'ZMM_NOTIFICATION_MB1B'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUDAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-datum&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LMBLNR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_mkpf-mblnr.&amp;nbsp; "ti_resb_new-rsnum.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822986#M1782970</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2013-10-29T05:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822987#M1782971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do as follow.&lt;/P&gt;&lt;P&gt;creat a range for time.&lt;/P&gt;&lt;P&gt;data:lr_time type range of sy-uzeit,&lt;/P&gt;&lt;P&gt;lwa_time like line of lr_time.&lt;/P&gt;&lt;P&gt;lwa_time-Low value of range will have UZEIT-15 mins.&lt;/P&gt;&lt;P&gt;lwa_time-HIGH will have UZEIT&lt;/P&gt;&lt;P&gt;lwa_time-SIGN = I&lt;/P&gt;&lt;P&gt;lwa_time-Option = BT.&lt;/P&gt;&lt;P&gt;append lwa_time to lr_time&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from &amp;lt;your table name&amp;gt;&lt;/P&gt;&lt;P&gt;into table it_final&lt;/P&gt;&lt;P&gt;where status = 'XYZ' &lt;/P&gt;&lt;P&gt;&amp;nbsp; and zzsubmitted_at in lr_time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822987#M1782971</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-29T05:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822988#M1782972</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; I need to Query the Table directly in the time frame of this 15 min. So i need the select Query for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Time is 11.30 AM. I need to get the entries from 11.15 AM to 11.30 AM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one field which holds this Submitted time in the table.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822988#M1782972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T05:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822989#M1782973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as suggested above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822989#M1782973</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-29T06:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program - Need to write Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822990#M1782974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kaushik,&lt;/P&gt;&lt;P&gt;I dont think you cannot query directly as you dynamicaly to calculate the last 15 minutes.&lt;/P&gt;&lt;P&gt;As I shown in the program, &lt;/P&gt;&lt;P&gt;You select all records updated today and put it in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;calcuate the time gap using the function (i mentioned) with the system time.&lt;/P&gt;&lt;P&gt;if it is &amp;lt;= 15 min, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; take action&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program-need-to-write-select-query/m-p/9822990#M1782974</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2013-10-29T06:11:47Z</dc:date>
    </item>
  </channel>
</rss>

