<?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 help with dates!!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646012#M287428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in this case. for example i have to ranges of dates the begin and the end date. so for example the begin date is 01.01.2006 and the final date is 31.12.9999 so when i modify the end date to 31.12.2006 so, i want to put other row with the same values but the begin date i wanna put it for the next day in this case 01.01.2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this??? is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 03:38:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T03:38:54Z</dc:date>
    <item>
      <title>help with dates!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646012#M287428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in this case. for example i have to ranges of dates the begin and the end date. so for example the begin date is 01.01.2006 and the final date is 31.12.9999 so when i modify the end date to 31.12.2006 so, i want to put other row with the same values but the begin date i wanna put it for the next day in this case 01.01.2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this??? is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646012#M287428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646013#M287429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now, after first row, when ur inserting second row with changing end date then for begin date do this....take v1, v2, v3 as variable.&lt;/P&gt;&lt;P&gt;v1 = date+6(4).&lt;/P&gt;&lt;P&gt;v2 = date+0(2).&lt;/P&gt;&lt;P&gt;v3 = date+3(2).&lt;/P&gt;&lt;P&gt;v1 = v1 + 1.&lt;/P&gt;&lt;P&gt;concatenate v2 v3 v1 into date separated by '.'.&lt;/P&gt;&lt;P&gt;use this date........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646013#M287429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646014#M287430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT R_DATES. 
  TEMP = R_DATES-HIGH.
  R_DATES-HIGH = '12312006 '.
  MODIFY R_DATES.
  R_DATES-LOW = R_DATES-HIGH + 1.
  R_DATES-HIGH = TEMP.
  APPEND R_DATES.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646014#M287430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646015#M287431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope below code gives you some idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_datum for sy-datum obligatory.

at selection-screen.
  perform change_date.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  change_date
*&amp;amp;---------------------------------------------------------------------*
FORM change_date .

data: l_datum like sy-datum value '99991231',
      l_line type i.

describe table s_datum lines l_line.
loop at s_datum.
   if s_datum-high is initial.
      s_datum-high = l_datum.
      modify s_datum.
   elseif s_datum-high lt l_datum and sy-tabix eq l_line.
      s_datum-low = s_datum-high + 1.
      s_datum-high = l_datum.
      append s_datum.
   endif.
endloop.

ENDFORM.                    " change_date&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-dates/m-p/1646015#M287431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:48:41Z</dc:date>
    </item>
  </channel>
</rss>

