<?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: Date into month in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057972#M970062</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;In my selection screen if the user gives the date from 11.01.2008 to 11.07.2008,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using the start date I am finding start date of the month and end date of the month by using FM HR_JP_MONTH_BEGIN_END_DATE,these two dates helps me to calculate Opening stock and closing stock of this month,in the same way I need to calculate remaing months Opening stock and closing stock in the selected Period,how to calculate remaining months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 05:10:39 GMT</pubDate>
    <dc:creator>former_member125931</dc:creator>
    <dc:date>2008-07-02T05:10:39Z</dc:date>
    <item>
      <title>Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057965#M970055</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 calculated  opening stock,closing stock based on the date,now I need to calculate based on month also,&lt;/P&gt;&lt;P&gt;Is any functionmodule is there to convert date into month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks@regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 09:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057965#M970055</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-06-30T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057966#M970056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM :&lt;/P&gt;&lt;P&gt;HR_HK_DIFF_BT_2_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass 04 to output_format ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 09:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057966#M970056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T09:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057967#M970057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM RP_CALC_DATE_IN_INTERVAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function &amp;lt;b&amp;gt;'RP_CALC_DATE_IN_INTERVAL'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              date      = '06/15/2006'&lt;/P&gt;&lt;P&gt;              days      = 14&lt;/P&gt;&lt;P&gt;              months    = 0&lt;/P&gt;&lt;P&gt;              signum    = '+'&lt;/P&gt;&lt;P&gt;              years     = 0&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              calc_date = wa_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add days month use + or use - to go back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057967#M970057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057968#M970058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM VELO03_DATE_TO_WEEK_OR_MONTH to convert ur date into month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give reward point if above solution is applicable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057968#M970058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057969#M970059</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 use FM "HR_SGPBS_YRS_MTHS_DAYS". to get the interval between two dates.&lt;/P&gt;&lt;P&gt;Using this FM you not only get the diff. in months but also in year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        beg_da        = s_budat-low    &amp;lt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; From date &lt;/P&gt;&lt;P&gt;        end_da        = s_budat-high   &amp;lt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; To date&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        no_day        = l_day&lt;/P&gt;&lt;P&gt;        no_month      = l_month&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        dateint_error = 1&lt;/P&gt;&lt;P&gt;        OTHERS        = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057969#M970059</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-06-30T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057970#M970060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this links:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5403435"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5377074"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057970#M970060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057971#M970061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the Function Module HR_AUPBS_MONTH_DAY and try&lt;/P&gt;&lt;P&gt;or else from the Transaction SE37 in the description type &lt;STRONG&gt;date&lt;/STRONG&gt; or &lt;STRONG&gt;month&lt;/STRONG&gt; and search.&lt;/P&gt;&lt;P&gt;U wil get number of function modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057971#M970061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057972#M970062</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;In my selection screen if the user gives the date from 11.01.2008 to 11.07.2008,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using the start date I am finding start date of the month and end date of the month by using FM HR_JP_MONTH_BEGIN_END_DATE,these two dates helps me to calculate Opening stock and closing stock of this month,in the same way I need to calculate remaing months Opening stock and closing stock in the selected Period,how to calculate remaining months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 05:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057972#M970062</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-07-02T05:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057973#M970063</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;list of FM try&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;CALCULATE_DATE : Calculates the future date based on the input .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  DATE_TO_DAY : Returns the Day for the entered date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  DATE_COMPUTE_DAY : Returns weekday for a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  DATE_GET_WEEK : Returns week for a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  RP_CALC_DATE_IN_INTERVAL : Add days / months to a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  DAY_ATTRIBUTES_GET : Returns attributes for a range of dates specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v  MONTH_NAMES_GET : Get the names of the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this willl solv ut problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 05:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057973#M970063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057974#M970064</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;Find the start date of month for 11.01.2008 and end date of month for 11.07.2008 .Now Using these two dates calculate Opening stock and closing stock during that period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 05:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057974#M970064</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-07-02T05:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057975#M970065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data:L_date type datum,
l_month type char2,
wa_T247 type T247.
 
l_date = sy-datum.
*internal valye in format YYYYMMDD
l_month = l_date+4(2).
select single * from t247
into wa_t247 where SPRAS = sy-langu and
MNR = l_month.
if sy-subrc = 0. 
  write: /1 wa_t247-mnr,10 wa_t247-LTX.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 05:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057975#M970065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T05:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057976#M970066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate stock for each and every month,user only gives the date period,now I  able to calculate starting month Opening stock ,closing stock,like way I need to find all the months selected in Selection screen date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 06:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057976#M970066</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-07-02T06:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057977#M970067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still my problem is not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 06:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057977#M970067</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-07-02T06:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057978#M970068</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;Maybe you need function "DATE_TO_PERIOD_CONVERT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 06:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057978#M970068</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-07-02T06:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date into month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057979#M970069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pole li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert date range into months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 06:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-into-month/m-p/4057979#M970069</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-07-02T06:59:11Z</dc:date>
    </item>
  </channel>
</rss>

