<?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: which function is used for  adding days to given month in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237220#M481940</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 FM &amp;lt;b&amp;gt;RP_CALC_DATE_IN_INTERVAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function &amp;lt;b&amp;gt;'RP_CALC_DATE_IN_INTERVAL'&amp;lt;/b&amp;gt;
         exporting
              date      = '06/15/2006'
              days      = 14
              months    = 0
              signum    = '+'
              years     = 0
         importing
              calc_date = wa_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 05:54:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-07T05:54:08Z</dc:date>
    <item>
      <title>which function is used for  adding days to given month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237219#M481939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which function is used for  adding days to given month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 05:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237219#M481939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T05:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: which function is used for  adding days to given month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237220#M481940</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 FM &amp;lt;b&amp;gt;RP_CALC_DATE_IN_INTERVAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function &amp;lt;b&amp;gt;'RP_CALC_DATE_IN_INTERVAL'&amp;lt;/b&amp;gt;
         exporting
              date      = '06/15/2006'
              days      = 14
              months    = 0
              signum    = '+'
              years     = 0
         importing
              calc_date = wa_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 05:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237220#M481940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T05:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: which function is used for  adding days to given month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237221#M481941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagrut,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good ... Check out the following examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Get a date&amp;lt;/b&amp;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;WEEK_GET_FIRST_DAY Returns first day for a week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP_LAST_DAY_OF_MONTHS Returns last day of month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRST_DAY_IN_PERIOD_GET Get first day of a period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LAST_DAY_IN_PERIOD_GET Get last day of a period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP_LAST_DAY_OF_MONTHS Determine last day of month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Date calculations&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc. &lt;/P&gt;&lt;P&gt;DATE_IN_FUTURE Calculate a date N days in the future. &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;RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates &lt;/P&gt;&lt;P&gt;MONTH_PLUS_DETERMINE 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;P&gt;DATE_CREATE Calculates a date from the input parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: DATE_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DATE_CREATE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   anzahl_jahre  = 1&lt;/P&gt;&lt;P&gt;   anzahl_monate = 2&lt;/P&gt;&lt;P&gt;   anzahl_tage   = 3&lt;/P&gt;&lt;P&gt;   datum_ein     = '20010101'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   datum_aus     = l_new_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Result:&lt;/P&gt;&lt;P&gt;   l_new_date = 20020304&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: MONTH_PLUS_DETERMINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: new_date type d.&lt;/P&gt;&lt;P&gt;&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 = -5 " Negative to subtract from old date, positive to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;olddate = sy-datum&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;NEWDATE = new_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / new_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Hollidays&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &amp;amp;/ Holiday Calendar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the &lt;/P&gt;&lt;P&gt;date is a holiday by checking the parameter HOLIDAY_FOUND. &lt;/P&gt;&lt;P&gt;Example: HOLIDAY_CHECK_AND_GET_INFO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ld_date                 like scal-datum  default sy-datum,&lt;/P&gt;&lt;P&gt;      lc_holiday_cal_id       like scal-hcalid default 'CA',&lt;/P&gt;&lt;P&gt;      ltab_holiday_attributes like thol occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      lc_holiday_found        like scal-indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    date                               = ld_date&lt;/P&gt;&lt;P&gt;    holiday_calendar_id                = lc_holiday_cal_id&lt;/P&gt;&lt;P&gt;    WITH_HOLIDAY_ATTRIBUTES            = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    HOLIDAY_FOUND                      = lc_holiday_found&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    holiday_attributes                 = ltab_holiday_attributes&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CALENDAR_BUFFER_NOT_LOADABLE       = 1&lt;/P&gt;&lt;P&gt;    DATE_AFTER_RANGE                   = 2&lt;/P&gt;&lt;P&gt;    DATE_BEFORE_RANGE                  = 3&lt;/P&gt;&lt;P&gt;    DATE_INVALID                       = 4&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_ID_MISSING        = 5&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_NOT_FOUND         = 6&lt;/P&gt;&lt;P&gt;    OTHERS                             = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   lc_holiday_found = 'X'.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is a holiday'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is not a holiday, or there was an error calling the function'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converting dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -&amp;gt; 20000328 Can also be used to check if a date is valid ( sy-subrc &amp;lt;&amp;gt; 0 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function to return literal for month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he table you want to use is T247. You can also use the function MONTH_NAMES_GET. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try table T015M. It has the month number in it's key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formatting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATUMSAUFBEREITUNG Format date as the user settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_NAMES_GET It returns all the month and names in repective language. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck and thanks &lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237221#M481941</guid>
      <dc:creator>ashok_kumar24116</dc:creator>
      <dc:date>2007-05-07T06:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: which function is used for  adding days to given month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237222#M481942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagrut,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link might be helpful for you,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives us a list of possible function modules that can be made use of for various conversion related to dates and currencies.Check out this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward graciously if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-function-is-used-for-adding-days-to-given-month/m-p/2237222#M481942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T06:05:18Z</dc:date>
    </item>
  </channel>
</rss>

