<?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: current month in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650096#M610823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&gt;&lt;P&gt;parameters: month(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate sy-datum+0(4) month '01' to from_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DAY_IN            = FROM_DATE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      LAST_DAY_OF_MONTH = TO_DATE&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      DAY_IN_NOT_VALID  = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ from_date, to_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query.&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2007 06:54:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-17T06:54:17Z</dc:date>
    <item>
      <title>current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650093#M610820</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 display date based on the current month on the selection screen.if it is august the date range should be 1/7/2007 to 31/8/2007.like wise i have to display for each month how can i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650093#M610820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650094#M610821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varsha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_DATE FOR SY-DATUM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    S_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;    S_DATE-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;    S_DATE-LOW =  SY-DATUM.&lt;/P&gt;&lt;P&gt;    S_DATE-LOW+6(2) = '01'.&lt;/P&gt;&lt;P&gt;    S_DATE-HIGH = SY-DATUM.&lt;/P&gt;&lt;P&gt;    S_DATE-HIGH+6(2) = '01'.&lt;/P&gt;&lt;P&gt;    ADD 1 TO S_DATE-HIGH+4(2).&lt;/P&gt;&lt;P&gt;    SUBTRACT 1 FROM S_DATE-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND S_DATE.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650094#M610821</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-17T06:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650095#M610822</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;use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP_LAST_DAY_OF_MONTHS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will give the last date of the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will be giving the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then current date is&lt;/P&gt;&lt;P&gt; 01/month/year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give it as export and get the last date and display it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DAY_IN            = R_FDATE-HIGH&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        LAST_DAY_OF_MONTH = G_LTDT&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        DAY_IN_NO_DATE    = 1&lt;/P&gt;&lt;P&gt;        OTHERS            = 2.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650095#M610822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650096#M610823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&gt;&lt;P&gt;parameters: month(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate sy-datum+0(4) month '01' to from_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DAY_IN            = FROM_DATE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      LAST_DAY_OF_MONTH = TO_DATE&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      DAY_IN_NOT_VALID  = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ from_date, to_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query.&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650096#M610823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650097#M610824</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;Use the function module &lt;/P&gt;&lt;P&gt;HR_JP_MONTH_BEGIN_END_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass sy-datum and get begin and end dates of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 07:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650097#M610824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650098#M610825</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;Try  FM     &amp;lt;b&amp;gt;RP_LAST_DAY_OF_MONTHS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 07:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650098#M610825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T07:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: current month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650099#M610826</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;below code will satisfy your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZKK_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_DATE FOR SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_DATE1 LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;           V_DATE2 LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: P_INTRANGE LIKE RSINTRANGE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_VARI_V_1_LAST_MONTH'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      P_DATE     = V_DATE1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      P_INTRANGE = P_INTRANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DAY_IN            = SY-DATUM&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      LAST_DAY_OF_MONTH = V_DATE2&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      DAY_IN_NO_DATE    = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_DATE-LOW = V_DATE1.&lt;/P&gt;&lt;P&gt;  S_DATE-HIGH = V_DATE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND S_DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 07:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-month/m-p/2650099#M610826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T07:45:48Z</dc:date>
    </item>
  </channel>
</rss>

