<?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 ABAP program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025297#M715285</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 write the program such that it executes maximum of five times a day next day it should execute maximum of five times more than tht it should not execute can any body help for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2007 07:33:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-15T07:33:12Z</dc:date>
    <item>
      <title>ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025297#M715285</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 write the program such that it executes maximum of five times a day next day it should execute maximum of five times more than tht it should not execute can any body help for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 07:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025297#M715285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025298#M715286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Z-table and in that maintain Last Date of Execution and Number of times of execution, Current Date Executions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program starting read that table and the count of Last Date execution + today's execution is less than last days execution&lt;EM&gt;5 then run the program and update the table with current date's execution = current date's execution&lt;/EM&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing is updating the table with proper data when u r executing the report for last time in a day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u must change last day = today. last day execution = last day execution+5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.. it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 07:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025298#M715286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T07:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025299#M715287</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;u can do that.&lt;/P&gt;&lt;P&gt;try using this code.&lt;/P&gt;&lt;P&gt;DATA:count,date LIKE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'MAX' field count.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'DAT' FIELD date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF date is initial.&lt;/P&gt;&lt;P&gt;  date = sy-datum.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF date = sy-datum.&lt;/P&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  message e000(zmsgtab)."u con't execute it more than once in a day.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;  set PARAMETER ID 'MAX' field count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF count &amp;gt; 5.&lt;/P&gt;&lt;P&gt;  count = 0.&lt;/P&gt;&lt;P&gt;  set PARAMETER ID 'MAX' field count.&lt;/P&gt;&lt;P&gt;  date = date + 1.&lt;/P&gt;&lt;P&gt;  set PARAMETER ID 'DAT' field date.&lt;/P&gt;&lt;P&gt;  message e000(zmsgtab)."u con't execute it more than once in a day.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'this is my program'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 07:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/3025299#M715287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T07:54:07Z</dc:date>
    </item>
  </channel>
</rss>

