<?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: find the date needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486946#M560961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for yr replies, but i need to make myself more clear i guess,&lt;/P&gt;&lt;P&gt;i need academic year dates, which mean, if we have past august then academic year dates are 01-08 current year and  31-07 prev year and if have not past the july then its 01-08 of prev year and 31-07 of next year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 10:11:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T10:11:33Z</dc:date>
    <item>
      <title>find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486940#M560955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a reqmnt,&lt;/P&gt;&lt;P&gt;I want to find out the dates of current academic year using sy-datum, it means if i provide date 06/07/07, the dates i need in return is 31-07-07 and 01-08-06. could anyone suggest how do i go bout it.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486940#M560955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486941#M560956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to find out the dates are in current year or not, then use the split statement and store the year part in a variable and compare with the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486941#M560956</guid>
      <dc:creator>S-H</dc:creator>
      <dc:date>2007-07-06T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486942#M560957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_date type sy-datum,&lt;/P&gt;&lt;P&gt;l_date1 type sy-datum,&lt;/P&gt;&lt;P&gt;l_date2 type sy-datum.&lt;/P&gt;&lt;P&gt;l_year(4) type n&lt;/P&gt;&lt;P&gt;l_month(2) type n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass l_date to SG_PS_GET_LAST_DAY_OF_MONTH you get last day in l_date1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_year = l_date1(4) - 1.&lt;/P&gt;&lt;P&gt;l_month = l_date1+4(2) +1.&lt;/P&gt;&lt;P&gt;concatenate l_year l_month '01' to l_date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Atish Sarda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486942#M560957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486943#M560958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;Use FM LAST_DAY_OF_MONTHS, it will give you last date and add 1 to that date. It will give you both the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means,&lt;/P&gt;&lt;P&gt;YOur date =&amp;gt; FM =&amp;gt; Last date (date1) &lt;/P&gt;&lt;P&gt;date2 = add 1 to last date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486943#M560958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486944#M560959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FM to get the last day of the given month....&lt;/P&gt;&lt;P&gt;JVA_LAST_DATE_OF_MONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486944#M560959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486945#M560960</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 get last day of the month using "FM LAST_DAY_OF_MONTHS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass your date current date and you get l;ast day of the month from this fumction module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I clearly did not understand your requirement can you be please more clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486945#M560960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486946#M560961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for yr replies, but i need to make myself more clear i guess,&lt;/P&gt;&lt;P&gt;i need academic year dates, which mean, if we have past august then academic year dates are 01-08 current year and  31-07 prev year and if have not past the july then its 01-08 of prev year and 31-07 of next year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486946#M560961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T10:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486947#M560962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; can you try combining  the FM RS_VARI_V_1_NEXT_MONTH returns the next months starting date. and the FM LAST_DAY_OF_MONTHS gives the last day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward pts if found usefull.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486947#M560962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T10:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486948#M560963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try based on the solutions given. You will get logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486948#M560963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486949#M560964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;FROM_DATE LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;TO_DATE LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;W_YEAR(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_date like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_date+4(2) LE '07'.&lt;/P&gt;&lt;P&gt;  W_YEAR = P_DATE+0(4).&lt;/P&gt;&lt;P&gt;  W_YEAR = W_YEAR - 1.&lt;/P&gt;&lt;P&gt;  CONCATENATE W_YEAR '0801' INTO FROM_DATE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  CONCATENATE P_DATE+0(4) '0801' INTO FROM_DATE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MONTH_PLUS_DETERMINE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      MONTHS        = 12&lt;/P&gt;&lt;P&gt;      OLDDATE       = FROM_DATE&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     NEWDATE       = TO_DATE .&lt;/P&gt;&lt;P&gt;  TO_DATE = TO_DATE - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ P_DATE,FROM_DATE,TO_DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486949#M560964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T10:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: find the date needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486950#M560965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the solution i gave, is what you asked for, right? If yes then don't forget to reward points &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-the-date-needed/m-p/2486950#M560965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T10:43:28Z</dc:date>
    </item>
  </channel>
</rss>

