<?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: FM name....???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142436#M990415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;v  WEEK_GET_FIRST_DAY : Get the first day of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this moght help u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 05:10:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T05:10:08Z</dc:date>
    <item>
      <title>FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142432#M990411</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;can anyone tell me FM name to get the date of 6 month back from today...????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142432#M990411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142433#M990412</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;Check this link-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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="5745894"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142433#M990412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142434#M990413</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;there is no need of any function modules you can subtract the number of days from the given date then you will get the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142434#M990413</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-18T05:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142435#M990414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the function module &lt;STRONG&gt;CALCULATE_DATE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142435#M990414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142436#M990415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;v  WEEK_GET_FIRST_DAY : Get the first day of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this moght help u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142436#M990415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142437#M990416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these function modules for date calculations:&lt;/P&gt;&lt;P&gt;&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;DATE_TO_DAY : Returns the Day for the entered date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_COMPUTE_DAY : Returns weekday for a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_GET_WEEK : Returns week for a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP_CALC_DATE_IN_INTERVAL : Add days / months to a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;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;MONTH_NAMES_GET : Get the names of the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WEEK_GET_FIRST_DAY : Get the first day of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SD_CALC_DURATION_FROM_DATETIME : Find the difference between two date/time and report the difference in hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_MC_TIME_DIFFERENCE : Find the time difference between two date/time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_99S_INTERVAL_BETWEEN_DATES : Difference between two dates in days, weeks, months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LAST_DAY_OF_MONTHS : Returns the last day of the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CHECK_PLAUSIBILITY :Check for the invalid date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142437#M990416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142438#M990417</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;&lt;/P&gt;&lt;P&gt;Try the FM: &lt;STRONG&gt;RP_CALC_DATE_IN_INTERVAL&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the parameters set the parameter SIGNUM = '-' . ( Minus Sign )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142438#M990417</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-07-18T05:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142439#M990418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try this FM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_PLUS_DETERMINE &lt;/P&gt;&lt;P&gt;           Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: new_date type d.

CALL FUNCTION 'MONTH_PLUS_DETERMINE'
  EXPORTING
    months        = -5       " Negative to subtract from old date, positive to add
    olddate       = sy-datum
 IMPORTING
   NEWDATE       = new_date.

write: / new_date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142439#M990418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142440#M990419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM MONTH_PLUS_DETERMINE. Call this FM with a -ve value for month as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONTH_PLUS_DETERMINE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;MONTHS  = '-6'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          OLDDATE = SY-DATUM&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          NEWDATE = V_NEXTMONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142440#M990419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: FM name....????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142441#M990420</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;PRE&gt;&lt;CODE&gt;DATA: P_MONTHS LIKE T5A4A-DLYMO,
      P_SIGNUM LIKE T5A4A-SPLIT VALUE '+',
      DAYS LIKE T5A4A-DLYDY,
      YEARS LIKE T5A4A-DLYYR,
      NEW_DATE LIKE P0001-BEGDA.

PARAMETERS: P_DATE LIKE P0001-BEGDA.

CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
  EXPORTING
    DATE            = P_DATE
    DAYS            = '0'
    MONTHS          = '06'
   SIGNUM          =  '-'
    YEARS           = '00'
 IMPORTING
   CALC_DATE       = NEW_DATE.

WRITE: NEW_DATE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even we have another function module 'months_plus_determine'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 05:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-name/m-p/4142441#M990420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T05:50:31Z</dc:date>
    </item>
  </channel>
</rss>

