<?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 Date specification issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-specification-issue/m-p/5233875#M1209644</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;Based on the last rundate, default the current rundate-begda to last rundate and the current rundate-ennda to current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means if last rundate is 02/08/2009, and program is being executed today (02/18/2009) then current payroll rundate on selection screen will  default to 02/08/2009 u2013 02/17/2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 13:55:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T13:55:45Z</dc:date>
    <item>
      <title>Date specification issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-specification-issue/m-p/5233875#M1209644</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;Based on the last rundate, default the current rundate-begda to last rundate and the current rundate-ennda to current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means if last rundate is 02/08/2009, and program is being executed today (02/18/2009) then current payroll rundate on selection screen will  default to 02/08/2009 u2013 02/17/2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-specification-issue/m-p/5233875#M1209644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T13:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date specification issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-specification-issue/m-p/5233876#M1209645</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;You can try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS:
s_date FOR sy-datum.

INITIALIZATION.

  DATA:
  v_date TYPE datum,
  wa_indx    TYPE indx.

* Get the serial number for the file from DB table INDX
  IMPORT v_date = v_date
  FROM DATABASE indx(xy)
  TO wa_indx
  CLIENT sy-mandt ID 'SDN'.

  IF v_date IS INITIAL.
    s_date-sign = 'I'.
    s_date-option = 'BT'.
    s_date-low = sy-datum - 1.
    s_date-high = sy-datum - 1.
    APPEND s_date.

    v_date = sy-datum.
  ELSE.
    IF v_date = sy-datum.
      s_date-sign = 'I'.
      s_date-option = 'BT'.
      s_date-low = v_date.
      s_date-high = v_date.
      APPEND s_date.
    ELSE.
      s_date-sign = 'I'.
      s_date-option = 'BT'.
      s_date-low = v_date.
      s_date-high = sy-datum - 1.
      APPEND s_date.
    ENDIF.
  ENDIF.

* Export the date &amp;amp; serial number to DB
  EXPORT v_date = v_date
  TO DATABASE indx(xy)
  FROM wa_indx
  CLIENT sy-mandt ID 'SDN'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 24, 2009 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 14:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-specification-issue/m-p/5233876#M1209645</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-02-24T14:16:02Z</dc:date>
    </item>
  </channel>
</rss>

