<?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: reg caluclating date range? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913526#M1146945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          You can use HR function modules but you need to to diclare some sturcture before using any hr function modules like tables: pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       i have an doubt about your requirement &lt;/P&gt;&lt;P&gt;do you want 30days in a month or as per calender month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me which one do you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arjun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2008 08:59:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-18T08:59:59Z</dc:date>
    <item>
      <title>reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913511#M1146930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; my requirement is i have to retrive data based on the one month date range given on the date in my selection screen . how to caluclate one month range for the given date ? is there any function module available ? can i use hr function modules in abap ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards &lt;/P&gt;&lt;P&gt;deepurd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 05:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913511#M1146930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T05:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913512#M1146931</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;&lt;/P&gt;&lt;P&gt;Derive year and Month of the date using &lt;STRONG&gt;CACS_DATE_GET_YEAR_MONTH&lt;/STRONG&gt; and use the below FM for first and last day of the month:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIRST_AND_LAST_DAY_IN_YEAR_GET
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Ponna on Dec 16, 2008 11:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913512#M1146931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913513#M1146932</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;&lt;/P&gt;&lt;P&gt;FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAY_ATTRIBUTES_GET : Returns attributes for a range of dates specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use any of the above fm as per your requirement.&lt;/P&gt;&lt;P&gt;you can use hr fm also in abap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;BabuSrinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913513#M1146932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913514#M1146933</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 &lt;STRONG&gt;BKK_GET_MONTH_LASTDAY&lt;/STRONG&gt; to get the last day of the month and use the following code to get the first day of month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;first_day = date.
first_day+6(2) = '01'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913514#M1146933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913515#M1146934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi buddies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; actually my requirement is i have to retrieve the data which is entered from the last one month of given date in selection screen? whatsthe function module for getting this&lt;/P&gt;&lt;P&gt;ex: suppose i given 20-11-2008&lt;/P&gt;&lt;P&gt; i have to retrieve the data between 20-10-2008 to 20-12-2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;deepurd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913515#M1146934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913516#M1146935</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 &lt;STRONG&gt;DATE_IN_FUTURE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First call it with your date and -30 to get previous month date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call it with your date and 30 to get next month date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : doc_date type RM06B-EEIND, from_date type d, to_date type d.

doc_date = '20112008'.

CALL FUNCTION 'DATE_IN_FUTURE'
  EXPORTING
    anzahl_tage                   = '-30'
    import_datum                  = doc_date
 IMPORTING
*   EXPORT_DATUM_EXT_FORMAT       =
   EXPORT_DATUM_INT_FORMAT       = from_date. " this will become 21102008

CALL FUNCTION 'DATE_IN_FUTURE'
  EXPORTING
    anzahl_tage                   = '30'
    import_datum                  = doc_date
 IMPORTING
*   EXPORT_DATUM_EXT_FORMAT       =
   EXPORT_DATUM_INT_FORMAT       = to_date.  " this will become 20122008&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karthik D on Dec 16, 2008 12:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913516#M1146935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913517#M1146936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi karthik &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to caluclate -1month&lt;/P&gt;&lt;P&gt;for few months there will be 28 days for few 31 days &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913517#M1146936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913518#M1146937</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;Its seems like its not possible. Because, if you give 20.11.2008 and want previous month and next month data, what will you consider November's No. of days or October's No. of days or December's No. of days ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let me know which one you want to consider in this case so that i can guide accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913518#M1146937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913519#M1146938</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 this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: d1 like sy-datum,
        d2 like sy-datum.
  d2 = sy-datum.
  d2+6(2) = '01'.
  d2 = d2 - 1. "prev mnth last date
  d1 = d2.
  d1+6(2) = '01'. "prev mnth start date
write : / d1,d2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 07:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913519#M1146938</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-12-16T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913520#M1146939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          You can use HR function modules but you need to to diclare some sturcture before using any hr function modules like tables: pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       i have an doubt about your requirement &lt;/P&gt;&lt;P&gt;do you want 30days in a month or as per calender month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me which one do you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arjun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 07:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913520#M1146939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913521#M1146940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understood correctly, no need for FM use the following code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : doc_date type d, from_date type d, to_date type d, month(2) type n.

doc_date = '20081120'.
month = doc_date+4(2).
from_date = doc_date.

IF month NE '01'.  " If not january
     from_date+4(2) = Month - 1. "Assign the previous month
ELSE.                                            " if January
    from_Date(4) = from_Date(4) - 1.  " Assign previous year
    from_date+4(2) = '12'.                  " Assign December
ENDIF.

to_date = doc_date.
IFmonth NE '12'.  " If not December
   to_date+4(2) = Month + 1. "Assign the next month
ELSE.                                      " if December
  to_Date(4) = to_Date(4) + 1.    " Assign next year
  to_date+4(2) = '01'.                 " Assign January
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If given date is 20.11.2008 then from_Date = 20.10.2008 &amp;amp; to_date = 20.12.2008&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If given date is 20.12.2008 then from_Date = 20.11.2008 &amp;amp; to_date = 20.01.2009&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If given date is 20.01.2008 then from_Date = 20.12.2007 &amp;amp; to_date = 20.02.2008&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karthik D on Dec 16, 2008 12:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 07:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913521#M1146940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T07:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913522#M1146941</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 use the below FM 'RP_CALC_DATE_IN_INTERVAL'&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            = '20081020'&lt;/P&gt;&lt;P&gt;    months          =  1  &lt;/P&gt;&lt;P&gt;    SIGNUM          = '+'      &lt;/P&gt;&lt;P&gt;     "if you want 1 month less then use '-' (MINUS) symbol. if you want 1 month more then use '+' (PLUS) symbol&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     CALC_DATE       = '20080920'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Hope this may helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 07:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913522#M1146941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T07:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913523#M1146942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sravanthi&lt;/P&gt;&lt;P&gt;              when i was trying to use the HR function module its giving dump .&lt;/P&gt;&lt;P&gt;              my requiremnt is &lt;/P&gt;&lt;P&gt;              if selection screen input date is 25-12-2008 i have to retrive documents posted within 1 month range . data between 24-11-2008 to 25-12-2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;deepurd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913523#M1146942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913524#M1146943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepu RD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the method SUBTRACT_MONTHS_FROM_DATE of the Class CL_HRPAD_DATE_COMPUTATIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  l_v_month TYPE i VALUE '1',
  v_date2 TYPE TYPE datum.

      TRY.
          CALL METHOD _HRPAD_DATE_COMPUTATIONS=&amp;gt;SUBTRACT_MONTHS_FROM_DATE
            EXPORTING
              start_date = p_date1 "To Date - Higher Value 
              months     = l_v_month
            RECEIVING
              date       = v_date2.
        CATCH cx_hrpa_violated_postcondition .
      ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913524#M1146943</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-12-16T09:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913525#M1146944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;First You told this;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;actually my requirement is i have to retrieve the data which is entered from the last one month of given date &amp;gt;in selection screen? whatsthe function module for getting this&lt;/P&gt;&lt;P&gt;&amp;gt;ex: suppose i given &lt;STRONG&gt;20-11-2008&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;i have to retrieve the data between &lt;STRONG&gt;20-10-2008 to 20-12-2008&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Now you are telling this;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi sravanthi&lt;/P&gt;&lt;P&gt;&amp;gt;               when i was trying to use the HR function module its giving dump .&lt;/P&gt;&lt;P&gt;&amp;gt;               my requiremnt is &lt;/P&gt;&lt;P&gt;&amp;gt;               if selection screen input date is &lt;STRONG&gt;25-12-2008&lt;/STRONG&gt; i have to retrive documents posted within 1 month range . data between &lt;STRONG&gt;24-11-2008 to 25-12-2008&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards&lt;/P&gt;&lt;P&gt;&amp;gt; deepurd&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Do you know that thus you are effectively wasting yours as well as others time?

Can't you use the above codings and FM's given by all to achieve your requirement.

First of all you come to a conclusion on what you want, then you can arrive at the solution using all the above inputs and ideas.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913525#M1146944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913526#M1146945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          You can use HR function modules but you need to to diclare some sturcture before using any hr function modules like tables: pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       i have an doubt about your requirement &lt;/P&gt;&lt;P&gt;do you want 30days in a month or as per calender month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me which one do you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arjun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 08:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913526#M1146945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: reg caluclating date range?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913527#M1146946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tyu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 09:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-caluclating-date-range/m-p/4913527#M1146946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T09:29:59Z</dc:date>
    </item>
  </channel>
</rss>

