<?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: increment date (calday) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672475#M1098935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the calculate_date function and pass the date in yyyyddmm format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 13:43:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T13:43:03Z</dc:date>
    <item>
      <title>increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672465#M1098925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need sb to give me a hand with the issue of increasing date (calday). I initializad :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   date = '01012006'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do the the increment? :  date = date + 1.  (in order to have date = '02012006')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or:          CALL FUNCTION 'CALCULATE_DATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            days        = '+1'&lt;/P&gt;&lt;P&gt;            start_date  = date&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            result_date = date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672465#M1098925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672466#M1098926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this.&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      = initial_date&lt;/P&gt;&lt;P&gt;        days      = 01&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 = increm_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672466#M1098926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672467#M1098927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672467#M1098927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672468#M1098928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the data type of the field date ? &lt;/P&gt;&lt;P&gt;you can use the function CALCULATE_DATE&lt;/P&gt;&lt;P&gt;but the date format that it accepts is of type sy-datum ( yyyymmdd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672468#M1098928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672469#M1098929</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 the function is better because its compatible with different format of dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to handle this explicitly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672469#M1098929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672470#M1098930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used ddmmyyyy. It must be for that reason.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672470#M1098930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672471#M1098931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need the next working day or the next date only. For next working day you need to know the type of calender you need to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672471#M1098931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672472#M1098932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get next working day you can use the FM 'BKK_ADD_WORKINGDAY'. Here you need to put the calender type used for your need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672472#M1098932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672473#M1098933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get next working day you can use the FM 'BKK_ADD_WORKINGDAY'. Here you need to put the calender type used for your need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672473#M1098933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672474#M1098934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the next date only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672474#M1098934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672475#M1098935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the calculate_date function and pass the date in yyyyddmm format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672475#M1098935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672476#M1098936</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;I think this thread is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required solution was found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't try to wast the time of the guy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672476#M1098936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672477#M1098937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got error...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672477#M1098937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672478#M1098938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672478#M1098938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672479#M1098939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to abap. I intend to write a routine for a transformation rule (in BW). Here's a portion of the code: (I got  red in the BW Monitor and the system points towards CALL FUNCTION 'CALCULATE_DATE' - the cursor blinks in front of CALL FUNCTION 'CALCULATE_DATE') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: e_s_result type &lt;U&gt;ty&lt;/U&gt;s_TG_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: e_t_result type &lt;U&gt;ty&lt;/U&gt;t_TG_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: data like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at RESULT_PACKAGE into e_s_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data = '20080101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      do 1000 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if data &amp;gt;= e_s_result-/bic/zabdatum and data &amp;lt;=&lt;/P&gt;&lt;P&gt;        e_s_result-/bic/zbisdatum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          move data to e_s_result-calday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          append e_s_result to e_t_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      data = data + 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CALCULATE_DATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            days        = '+1'&lt;/P&gt;&lt;P&gt;            start_date  = data&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            result_date = data.&lt;/P&gt;&lt;P&gt;&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 = data&lt;/P&gt;&lt;P&gt;*days = 01&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 = data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data = '20080102'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh RESULT_PACKAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move e_t_result[] to RESULT_PACKAGE[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672479#M1098939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672480#M1098940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian - you're making this &lt;EM&gt;far&lt;/EM&gt; too complicated. all you have to do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

DATA: date_in TYPE sy-datum VALUE '20080101',
      date_out TYPE sy-datum.

date_out = date_in + 1.

WRITE: /001 date_in, date_out.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672480#M1098940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672481#M1098941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it worked  in se38. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose it's my code in bw routine which is at fault....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672481#M1098941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: increment date (calday)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672482#M1098942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function modules can be a great help for re-usability of code. But they do have an interface which must be understood. If there is no documentation and you are new to ABAP, it's often easy to code yourself. You learn more and in this case, it's dead simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment-date-calday/m-p/4672482#M1098942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T14:47:19Z</dc:date>
    </item>
  </channel>
</rss>

