<?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: Re: Reg date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704520#M626490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;use the below logic to get the required date... hope this will help u in solving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE1&lt;EM&gt;6(2) = sy-datum&lt;/EM&gt;6(2) + 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Give points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 08:53:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T08:53:13Z</dc:date>
    <item>
      <title>Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704516#M626486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in selection screen i require as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document Date  07/14/2007  to 08/13/2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my code is displaying like this  07/01/2007  08/13/2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to change in my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt; LAST_MONTH_LAST_DAY = SY-DATUM.&lt;/P&gt;&lt;P&gt;               LAST_MONTH_LAST_DAY+6(2) = 01.&lt;/P&gt;&lt;P&gt;               LAST_MONTH_LAST_DAY = LAST_MONTH_LAST_DAY - 1.&lt;/P&gt;&lt;P&gt;               DATE1 = LAST_MONTH_LAST_DAY .&lt;/P&gt;&lt;P&gt;               DATE1+6(2) = 01.   "set the date to first of month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MOVE: 'BT' TO s_audat-OPTION,&lt;/P&gt;&lt;P&gt;        DATE1 TO s_audat-LOW,&lt;/P&gt;&lt;P&gt;         sy-datum TO s_audat-HIGH.&lt;/P&gt;&lt;P&gt;  APPEND s_audat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704516#M626486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704517#M626487</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;You can perhaps use a fonction module to compute your date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;One month less&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SALP_CALC_DATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; IN_RECTYPE = 'M'&lt;/P&gt;&lt;P&gt; IN_NBR_DWXMQY  = -1&lt;/P&gt;&lt;P&gt; IN_DATE                = sy-datum&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt; OUT_DATE = result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One day more&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SALP_CALC_DATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; IN_RECTYPE = 'D'&lt;/P&gt;&lt;P&gt; IN_NBR_DWXMQY  = +1&lt;/P&gt;&lt;P&gt; IN_DATE                = result&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt; OUT_DATE = result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopte it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mathieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704517#M626487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704518#M626488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathieu ILHE ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     can u include my code in the function modules, coz i dont know what parameters i should import n export&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704518#M626488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704519#M626489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data &amp;lt;b&amp;gt;result&amp;lt;/b&amp;gt; will contain sy-datum - 1 month + 1 day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it what you need ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just replace &amp;lt;b&amp;gt;result &amp;lt;/b&amp;gt;by your &amp;lt;b&amp;gt;data1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;One month less&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SALP_CALC_DATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IN_RECTYPE = 'M'&lt;/P&gt;&lt;P&gt;IN_NBR_DWXMQY = -1&lt;/P&gt;&lt;P&gt;IN_DATE = sy-datum&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUT_DATE = data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;One day more&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SALP_CALC_DATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IN_RECTYPE = 'D'&lt;/P&gt;&lt;P&gt;IN_NBR_DWXMQY = +1&lt;/P&gt;&lt;P&gt;IN_DATE = data1&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUT_DATE = data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'BT' TO s_audat-OPTION,&lt;/P&gt;&lt;P&gt;DATE1 TO s_audat-LOW,&lt;/P&gt;&lt;P&gt;sy-datum TO s_audat-HIGH.&lt;/P&gt;&lt;P&gt;APPEND s_audat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mathieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704519#M626489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704520#M626490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;use the below logic to get the required date... hope this will help u in solving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE1&lt;EM&gt;6(2) = sy-datum&lt;/EM&gt;6(2) + 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Give points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704520#M626490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704521#M626491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhamodaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this method is that you will have problems at end of month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it work on the 31th July ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704521#M626491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704522#M626492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! sravanthigopal  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: from_date like sy-datum,&lt;/P&gt;&lt;P&gt;        to_date like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;       to_date = sy-datum.&lt;/P&gt;&lt;P&gt;       from_date = from_date - 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'I' to so_date-sign.&lt;/P&gt;&lt;P&gt;  MOVE 'EQ' to so_date-option.&lt;/P&gt;&lt;P&gt;  MOVE from_date to so_date-low.&lt;/P&gt;&lt;P&gt;  MOVE to_date to so_date-high.&lt;/P&gt;&lt;P&gt;  append so_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its Useful Reward it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nagulan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 09:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704522#M626492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T09:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704523#M626493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathieu,&lt;/P&gt;&lt;P&gt;   if i use the function module it is showing the below one&lt;/P&gt;&lt;P&gt;   it is showing 07/14/2008  08/13/2007  instead of -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; incorrect&lt;/P&gt;&lt;P&gt;                       07/14/2007     08/13/2007  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;correct should show same year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 09:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704523#M626493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704524#M626494</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;This is the code for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_DATE FOR SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  S_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  S_DATE-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  S_DATE-LOW  = SY-DATUM.&lt;/P&gt;&lt;P&gt;  S_DATE-LOW+6(2) = '01'.     "First day of Current month&lt;/P&gt;&lt;P&gt;  S_DATE-HIGH = SY-DATUM.  "Current Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND S_DATE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 09:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704524#M626494</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-13T09:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reg date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704525#M626495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;try this code this will work for all date...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;give pionts if use ful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : LAST_MONTH_LAST_DAY type sy-datum,&lt;/P&gt;&lt;P&gt;       date1  type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : input type sy-datum,&lt;/P&gt;&lt;P&gt;       last_date_of_this_month type sy-datum,&lt;/P&gt;&lt;P&gt;       date2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input = '20070731'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    day_in                  = input&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   LAST_DAY_OF_MONTH       = last_date_of_this_month&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAY_IN_NO_DATE          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                  = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date2 = last_date_of_this_month+6(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LAST_MONTH_LAST_DAY = input.&lt;/P&gt;&lt;P&gt;lAST_MONTH_LAST_DAY+6(2) = 01.&lt;/P&gt;&lt;P&gt;if ( INPUT+6(2) &amp;lt; date2 ).&lt;/P&gt;&lt;P&gt;  LAST_MONTH_LAST_DAY = LAST_MONTH_LAST_DAY - 1.&lt;/P&gt;&lt;P&gt;  DATE1 = LAST_MONTH_LAST_DAY .&lt;/P&gt;&lt;P&gt;  DATE1&lt;EM&gt;6(2) = input&lt;/EM&gt;6(2) + 01. "set the date to first of month&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  DATE1 = LAST_MONTH_LAST_DAY .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / input, DATE1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 11:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reg-date/m-p/2704525#M626495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T11:44:10Z</dc:date>
    </item>
  </channel>
</rss>

