<?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 Problems with function RP_CALC_DATE_IN_INTERVAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603572#M867929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used this function successfully in the past for date calculations.  However, it only accepts parameters for days to calculate that are of two digits in length.  Is there any other function out there with the same functionality, but will accept parameters greater than 2 digits in length?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 19:05:06 GMT</pubDate>
    <dc:creator>former_member393151</dc:creator>
    <dc:date>2008-03-27T19:05:06Z</dc:date>
    <item>
      <title>Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603572#M867929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used this function successfully in the past for date calculations.  However, it only accepts parameters for days to calculate that are of two digits in length.  Is there any other function out there with the same functionality, but will accept parameters greater than 2 digits in length?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 19:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603572#M867929</guid>
      <dc:creator>former_member393151</dc:creator>
      <dc:date>2008-03-27T19:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603573#M867930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Heather,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   But why do you want 3 digits??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  because when it exceeds 31 days , increase the month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you want to subtract/add only no of days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  date +  no of days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  20080327  + 125&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 19:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603573#M867930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T19:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603574#M867931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That function module requires you to use years, days and months, rather than one unit like days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess you could always write your own very simple routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zz_temp.

data:  g_today    type d.
data:  g_future   type d.


g_today = sy-datum.

g_future = g_today + 333.

write g_future.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 19:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603574#M867931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T19:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603575#M867932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: v_date_store type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    date      = sy-datum&lt;/P&gt;&lt;P&gt;    days      = 10&lt;/P&gt;&lt;P&gt;    months    = 00&lt;/P&gt;&lt;P&gt;    signum    = '+'&lt;/P&gt;&lt;P&gt;    years     = 00&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    calc_date = v_date_store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_date_store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the date range is only 1-31 means 2 char field , why u require the 3 char field like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 19:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603575#M867932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T19:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603576#M867933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I require a longer field because I'm pulling it from a table with master data (and can't control the users to only enter in a 2 character long field).  Just hoping that I wouldn't have to code around this - and that there would be another option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 19:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603576#M867933</guid>
      <dc:creator>former_member393151</dc:creator>
      <dc:date>2008-03-27T19:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603577#M867934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi if you pass more than the  2 chars it shows a type conflict in the fm and it will give the dump..so do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u had a field of length 7 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:p_date(2) type c.&lt;/P&gt;&lt;P&gt;data: v_data(7) type c value '1234567'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to pass the 2 char value use the offset condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_date = v_data+0(2) .&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;p_date = v_date+5(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it a table field ..&lt;/P&gt;&lt;P&gt;v_test = itab-field.&lt;/P&gt;&lt;P&gt;p_date = v_test+0(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 20:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603577#M867934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T20:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603578#M867935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heather,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to resolve this issue. I have a similar situation where I would need to calculate an end date on the basis of a start date and the number of days between the start and end dates and the number of days could be any length. One solution would be to parse the number of days internally by splitting it into days, months and years and pass it to the afore mentioned Function Module. Did you find a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Puja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 15:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603578#M867935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603579#M867936</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;Go through this link:&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="4990694"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&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>Thu, 12 Jun 2008 15:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603579#M867936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with function RP_CALC_DATE_IN_INTERVAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603580#M867937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe what I did was write a loop around the the call - reducing the number of days until I got a number it would work with.   Not very elegant but it works....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 16:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-function-rp-calc-date-in-interval/m-p/3603580#M867937</guid>
      <dc:creator>former_member393151</dc:creator>
      <dc:date>2008-06-12T16:54:17Z</dc:date>
    </item>
  </channel>
</rss>

