<?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: Question about Initialization when the program is run via batch job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276514#M1530928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the report executes in background, it has a variant, the parameters are changed between INITIALIZATION and AT SELECTION-SCREEN OUTPUT with those of the variant, so your range is erased with the variant value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to save the variant with the flag "Save field without values" for this parameter/select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 11:18:30 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2010-09-16T11:18:30Z</dc:date>
    <item>
      <title>Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276509#M1530923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initialization event of the program, we set the entry date as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_cpudt-high = sy-datum.&lt;/P&gt;&lt;P&gt;s_cpudt-low = sy-datum - 1.&lt;/P&gt;&lt;P&gt;s_cpudt-option = 'EQ'.&lt;/P&gt;&lt;P&gt;s_cpudt-sign = 'I'&lt;/P&gt;&lt;P&gt;APPEND s_cpudt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we are expecting that it will retrieve the entries from table MKPF whose entry date falls between yesterday and today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Batch Job is scheduled to run every 10:00 GMT daily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the the program only retrieves the data where the entry time is between 00:00 to 10:00 GMT. Beyond 10:00 GMT is not being considered when the batch job is run the next day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need advice. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 06:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276509#M1530923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T06:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276510#M1530924</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;     Write as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_cpudt-high = sy-datum.&lt;/P&gt;&lt;P&gt;s_cpudt-low = sy-datum - 1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;s_cpudt-option = 'BT'&lt;/STRONG&gt;  &amp;lt;-- should be between ... BT&lt;/P&gt;&lt;P&gt;s_cpudt-sign = 'I'&lt;/P&gt;&lt;P&gt;APPEND s_cpudt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 06:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276510#M1530924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T06:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276511#M1530925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think that the values will still be changed once it comes into the selection screen. But I am note sure if it does not apply when the program is run via batch job. Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 06:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276511#M1530925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T06:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276512#M1530926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of all this you can set a dynamic date range in variant and use it in background job.&lt;/P&gt;&lt;P&gt;Thats the right way to do &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 07:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276512#M1530926</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-16T07:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276513#M1530927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that! But that is actually the current setting of the variant, it is dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 10:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276513#M1530927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T10:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Initialization when the program is run via batch job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276514#M1530928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the report executes in background, it has a variant, the parameters are changed between INITIALIZATION and AT SELECTION-SCREEN OUTPUT with those of the variant, so your range is erased with the variant value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to save the variant with the flag "Save field without values" for this parameter/select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 11:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-initialization-when-the-program-is-run-via-batch-job/m-p/7276514#M1530928</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-09-16T11:18:30Z</dc:date>
    </item>
  </channel>
</rss>

