<?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 problem in adding month to date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321607#M1835515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually my requirement is to add 1 month to input date which is having range (FROM DATE&amp;nbsp; and TO DATE ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say, my input is for&amp;nbsp; From date is&amp;nbsp; 01.04.2014&amp;nbsp; and TO Date is 30.04.2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i'm expecting From Date is 01.05.2014&amp;nbsp;&amp;nbsp; and TO Date is 31.05.2014 after adding month as may month contains 31 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report i have used "RE_ADD_MONTH_TO_DATE" function module. it's giving me TO date is 30.05.2014 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody please give me some idea .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2014 14:29:14 GMT</pubDate>
    <dc:creator>satish_kumar127</dc:creator>
    <dc:date>2014-05-16T14:29:14Z</dc:date>
    <item>
      <title>problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321607#M1835515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually my requirement is to add 1 month to input date which is having range (FROM DATE&amp;nbsp; and TO DATE ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say, my input is for&amp;nbsp; From date is&amp;nbsp; 01.04.2014&amp;nbsp; and TO Date is 30.04.2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i'm expecting From Date is 01.05.2014&amp;nbsp;&amp;nbsp; and TO Date is 31.05.2014 after adding month as may month contains 31 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report i have used "RE_ADD_MONTH_TO_DATE" function module. it's giving me TO date is 30.05.2014 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody please give me some idea .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321607#M1835515</guid>
      <dc:creator>satish_kumar127</dc:creator>
      <dc:date>2014-05-16T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321608#M1835516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;use this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;CALL FUNCTION 'MONTH_PLUS_DETERMINE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; months&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; olddate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-datum&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; NEWDATE = l_fecha .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Miguel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321608#M1835516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-16T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321609#M1835517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Thanks for ur prompt reply,&amp;nbsp; but I've tried and failed to make this work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;As i've already mentioned in my query ,&amp;nbsp; given input is 30.04.2014 and it's giving me 30.05.2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;but i'm expecting 31.05.2014.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;satish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321609#M1835517</guid>
      <dc:creator>satish_kumar127</dc:creator>
      <dc:date>2014-05-16T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321610#M1835518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are asking for 1 month from the input date.&lt;/P&gt;&lt;P&gt;it sounds like what you are after is the last day of the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;several ways you can do this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one way....take the 1st day of a month and subtract 1 from it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use one of the many date functions, like&lt;/P&gt;&lt;P&gt;FKK_GET_LAST_DAY_OF_MONTH for example....only need to supply the date in and last day is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/454701" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321610#M1835518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-16T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321611#M1835519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so, what u need to do is to first count the days of the months, some months 30 or 31..then add those days to the date by normal add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;l_date1 =&amp;nbsp; 01.04.2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; par_month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '05'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; par_year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '2014'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; PAR_DAYS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = l_dias .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;l_date = &lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; l_date1 &lt;/SPAN&gt;+ l_days.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Miguel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321611#M1835519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-16T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321612#M1835520</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;add first 1 month than try FM: LAST_DAY_OF_MONTH-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321612#M1835520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-16T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem in adding month to date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321613#M1835521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u all for your valuable time and helpful replies. problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 15:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-adding-month-to-date/m-p/10321613#M1835521</guid>
      <dc:creator>satish_kumar127</dc:creator>
      <dc:date>2014-05-16T15:14:32Z</dc:date>
    </item>
  </channel>
</rss>

