Calculation Of days.

I am using FM HR_SEN_CALE_DAYS_DURATION to find the day diff.
When I pass to begda as 01.09.2006 and endda as 08.09.2006 then it returns
the duration as 8.
But I want calendar holidays to be considered in such case , here I have only 6 working days.
I expect output to be 6, to meet this which FM to be used ? Any idea?
Regards
Prashant

FM - 'DATE_CHECK_WORKINGDAY'
1. Not only the number of days,
but also the list of dates.
WORKING DAYS based upon the calendar id.
2. This program
(it has an independent form)
which will give such thing.
3. Just copy paste in new program.
REPORT abc.
data : num type i.
parameters : frdate type sy-datum default '20051216'.
parameters : todate type sy-datum default '20051221'.
perform getinfo using frdate todate changing num.
break-point.
*& Form getinfo
text
FORM getinfo USING fromdate todate CHANGING numofdays type i.
DATA : d TYPE sy-datum.
d = fromdate - 1.
DO.
d = d + 1.
IF d > todate.
EXIT.
endif.
CALL FUNCTION 'DATE_CHECK_WORKINGDAY'
EXPORTING
date = d
factory_calendar_id = '01'
message_type = 'I'
EXCEPTIONS
date_after_range = 1
date_before_range = 2
date_invalid = 3
date_no_workingday = 4
factory_calendar_not_found = 5
message_type_invalid = 6
OTHERS = 7.
IF sy-subrc = 0.
numofdays = numofdays + 1.
write :/ d.
ENDIF.
ENDDO.
ENDFORM. "getinfo

Similar Messages

  • How to address HP Printer Software Update 3.0, iTunes 12.0.1 update that sits in the App Store, 'Calculating' for days with no install?

    The App Store indicates there is a Software Update that appears to include the HP Printer Software Update 3.0 and iTunes 12.0.1
    Unfortunately, the software update fails to install. Instead, it just sits there 'Calculating' for days with no progression on the status bar of the overall update.
    The update buttons of both the HP Printer Software Update 3.0 and iTunes 12.0.1 are both greyed out, with no progress bar.
    Not sure of what the issue is, there is no warning or error dialog box that appears or any indication of an application that may be interfering with the install.
    Any advice? 
    MacBook Pro (17-inch, Early 2011) 2.3 GHz Core i7, 4GB RAM

    Thanks for the suggestion. I wanted to install the individual updates but because I had settings to automatically download and install updates, whenever I opened the App Store, the system would try to download and install, preventing me from canceling the update to execute each application update one at a time.
    After changing the settings from automatically downloading and applying updates, followed by a restart. I was able to open the App Store and run each individual update.
    Thanks again.

  • Calculating Business Days in a Date Range

    I have two questions:
    1. Does anyone know a better formula for calculating business days in totals?
    I am currently using the formula in https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/701a52c3-6b1e-2b10-21b3-a6e101be1a0f
    I tailored to my needs.  However, there are still a lot of manual maintenance every year. 
    2. I have many reports that need the formula.  It is very consuming to update the formula in each report.  Does anyone know a better way to do it? 
    I use Crystal XI. 11.0.0.895.  We do have a Crystal Enterprise server hosted in another department.

    Not sure if this is any simpler but you could save this as a custom function, that way you will have to modify it once a year for the holidays.
    numbervar days;
    datevar date1 := minimum({?My Parameter});
    datevar date2 := maximum({?My Parameter});
    days := DateDiff ("d", date1, date2) -
    DateDiff ("ww", date1, date2, crSaturday) -
    DateDiff ("ww", date1, date2, crSunday);    // this will give you the number of business days
                                                        // (excluding Saturdays and Sundays) for a given date range.
    // then, for each holiday, you can enter lines like this
    if date(2008,01,01) in {?My Parameter} then days := days - 1;
    // The final tally of DAYS should give you the total business days in a date range.
    totext(days,0);
    where {?My Parameter} is the date range.

  • Calculating work days in a function

    I have a function that will count the total number of days between two weeks. ie May 19, 2010 to June 18, 2010 is 30 total days in my cycle. We dont work on weekend so that 30 days is not correct. The formula below is how i'm calculating the days between cycles. Is there any way to not count the weekends in my cycle? Please see formula below:
    TIMESTAMPDIFF(SQL_TSI_DAY, "Release Dim"."Release Cycle Start Date", "Release Dim"."Release Cycle End Date")

    Thanks Hammett81.
    I used your formula but it's still calculating the days in my cycle as 30. My start date comes from my column "Release Dim"."Release Cycle Start Date" and my end date comes from the column "Release Dim"."Release Cycle End Date". Can you tell me why the formula below is giving me the weekends included in my count?
    Thanks a million for all your help.
    TIMESTAMPDIFF(SQL_TSI_DAY,TIMESTAMPADD( SQL_TSI_DAY, 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date"),"Release Dim"."Release Cycle Start Date"),TIMESTAMPADD(SQL_TSI_DAY, 7-DAYOFWEEK("Release Dim"."Release Cycle End Date"),"Release Dim"."Release Cycle End Date"))+ CASE 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date") WHEN 6 THEN 5 ELSE 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date") END-CASE 7-DAYOFWEEK("Release Dim"."Release Cycle End Date") WHEN 6 THEN 5 ELSE 7-DAYOFWEEK("Release Dim"."Release Cycle End Date") END

  • MRP Calculation of days

    Hi,
    How in the system the calculation of days is done
    My query is I have material 'A' as a raw which required 30 days of time for procurement.
    After proucrement of 'A' it is consumed in 'X' material as in house production.
    So while setting the the days in mateirlal master how the days are put to get final material 'X' done in 37 days.
    Here how the MRP calculate the days as from starting day if am doing mrp run today.
    Regards
    Rajesh

    Hi,
    You are asking about how the scheduling is carrying out in SAP system.
    1. There are two types of scheduling.
    a)Basic dates scheduling :
    This is independent of required qty. This will take time from material master mrp2 view.
    b) Lead time scheduling:
    This is dependent of requirement qty. This will take time from routing. This is very accurate.
    2.To calculate total days(37 days):
    For inhouse production, system will consider Inhouse production time( mrp 2 view),GR processing time, Opening period.
    For External procurement system will consider Processing time for purchasing (OPPQ), Planned delivery time(MRP2),GR processing time(mrp2).
    3.Here how the MRP calculate the days as from starting day if am doing mrp run today
    Say your requirement is 100 nos on 15.03.08. Suppose if you run  MRP today, system schedules the dates by scheduling types ex. Backward Scheduling, Forward scheduling, Today Scheduling (settings in tcode OPU5)from your requirement date.First it will schedule for material X then for material A.
    Hope  you have got some idea about scheduling.

  • Calculating Work Day Formulas

    We've recently adopted BOBJ/Webi at my company and I find the software to be rather easy to use in some instances and mind-wreckingly hard in others. One roadblock myself and other users are bumping into is calculating work days. A definition of a work day in this instance would be Monday through Friday. The monkey wrench is that we would also like to subtract out holidays, such as July 4th and Thanksgiving. Then end product would be calculating out what work day the current date is and how many days it is out of so that a simple straight-line extrapolation can be made (Metric/Current Work Day)*Total Work Days. Also, what we invoice/ship is not accounted for until the following day... for example, today (2.22.10) would be the 15th workday in February out of 20 total work days.
    Appreciate any and all help/assistance/counsel I can get on this.
    Ryan

    Hi Ryan,
    If I have understood your question then I think following solution may help you.
    Do you have your Universe created on the top of BW query or is it some other Database?
    If it is some other database then create couple of Filter at Universe level: Such as Holidays so that you can use this one to subtract holidays:
    For Example:
    ucase(Calendar_year_lookup.Holiday_Flag)
    ucase(Calendar_year_lookup.Holiday_Flag) = 'Y'
    Then you create another Dimension for Work days that would be between Monday to Friday.
    Once they are created in Universe you export Universe.
    Now create a formula where you would use month minus custom dimension workdays and minus holidays to get actual work days which would be from Monday to Friday and son on.
    Basically we can achieve this by using filters and formulas.
    Wish you good luck.
    Bashir Awan

  • Interest Calculation base days

    Dear All,
    I have configured interest calculation for line item & balances with the calender type as G.
    During the execution of FINT, system consideres base days as 366. Our fiscal year is April 2008 - March 2009. Summing up the days it is only 365.
    Please let me know the solution so that system calculates the interest based on 365 days.
    Thanks & Regards,
    Ajay Gupte

    HI
    WHAT EVER CONFIGURED NO  NEED TO TAKE IN TO CONSIDRATION EVERY TIME.AS PER DAYA PER ANNUM U NEED TO TAKE
    FOR EXAMPLE DAYS IN A YEAE LIKE 365 OR 366
    GO TO OBAA
    SELECT INTETEST CALCULATION INDICATOR OR ACCOUNT NUMBER
    PRESS ON DETAILS BUTTON
    GO TO CALANDER TYPE GIVE WHAT EVER U WANT
    B  30/360  
    J  30/365
    F 28,..,31/360
    G 28,..,31/365
    I .E AS PER U R REQUIREMENT
    DO THE SAME IN GOLDEN CLINET AND TRANSPORT TO QUALITY LATER TRANSPORT TO PRODUCTION
    I THINK NED FULL
    SUMATHI
    ACCENTURE

  • Calculating Business Days(Start_dt - End_dt)

    Hi Friends,
    Could anyone of you help me to find out the business days(Excluding Saturdays and Sundays) between two dates.
    The difference should be calculated of both the Start_dt and End_dt values truncated. The result should be calculated and stored according to business days, it means weekend days are to be ignored.
    create table sample (id number,start_dt date,end_dt date). The table values are as follows;
    ID ; start_dt ; End_dt
    1 ; 08-02-2012 ; 15-02-2012
    2 ; 30-12-2011 ; 15-02-2012
    My output should be;
    ID ; start_dt ; End_dt ; Expected Business Days (Excluding Weekends)
    1 ; 08-02-2012 ; 15-02-2012 ; 4
    2 ; 30-12-2011 ; 15-02-2012 ; 33
    Please note that, the Start Date and End Date can be any date from any year. Please help me on this.
    Regards,
    Williams.
    Edited by: Williams on Feb 8, 2012 6:28 PM
    Edited by: Williams on Feb 8, 2012 6:29 PM

    Here's my first cut at it.
    SQL> WITH sample AS
      2  (
      3     SELECT 1 AS id, TO_DATE('08-02-2012','DD-MM-YYYY') AS start_dt, TO_DATE('15-02-2012','DD-MM-YYYY') AS end_dt FROM DUAL UNION ALL
      4     SELECT 2 AS id, TO_DATE('30-12-2011','DD-MM-YYYY') AS start_dt, TO_DATE('15-02-2012','DD-MM-YYYY') AS end_dt FROM DUAL
      5  )
      6  /* END SAMPLE DATA */
      7  SELECT id
      8       , start_dt
      9       , end_dt
    10       , COUNT(*)
    11  FROM   sample
    12  JOIN   ( /* Exclude Weekends */
    13           SELECT dt
    14           FROM  ( /* Generate a range that includes all days */
    15                   SELECT min_start_dt + (LEVEL - 1) AS dt
    16                        , TO_CHAR
    17                          ( min_start_dt + (LEVEL - 1)
    18                          , 'fmDAY'
    19                          , 'NLS_DATE_LANGUAGE=AMERICAN'
    20                          ) AS dy
    21                   FROM   ( SELECT MIN(start_dt) AS min_start_dt
    22                                 , MAX(end_dt)   AS max_end_dt
    23                            FROM   sample
    24                          )
    25                   CONNECT BY LEVEL <= max_end_dt - min_start_dt + 1
    26                 )
    27           WHERE dy NOT IN ('SATURDAY','SUNDAY')
    28         ) dys ON dys.dt BETWEEN start_dt AND end_dt
    29  GROUP BY id
    30         , start_dt
    31         , end_dt
    32  /
            ID START_DT            END_DT                COUNT(*)
             2 12/30/2011 00:00:00 02/15/2012 00:00:00         34
             1 02/08/2012 00:00:00 02/15/2012 00:00:00          6
    2 rows selected.I got different results then you though. Can you say why your counts are what they are?

  • Calculating 60 days from last run date and sum a total for those 60 days

    I need to calculate 60 days from last run date (I will create prompts), then take that number to sum a total of items.
    Can someone be of assistance.

    Hi,
    You can create a calculation to calculate 60 days before your run date. e.g. if rundate is your date item then the calculation will be:
    rundate-60
    Rod West

  • Suggestions on calculating work days instead of Calendar days

    Hi there,
    I would like for someone to suggest how would I approach a project in calculating a date that would consider if a date is a holiday or a work day. For example: If I take current date + 7 normally it would be a week (7 days). However, if a day in that week is a holiday, then it would return the 8th day. If the 8th day falls into a weekend, then, get the next work date.
    Any ideas would be greatly appreciated.
    Thanks for your assistance in advance.

    Thanks. This give me a pretty good start. I am thinking that I need a table that store holidays (Non-work days excluding weekend). Once I load this table into memory, then I would check the first date + 7. Then compare the two dates against the array to see if there is a holiday. If there is, then I would increment the end date by 1 and validay if it is a weekend date. If it is, I would continue to incurement until it is nolonger an weekend date. Once I have that, I would check the date against the array (where I left off) and continue to validate to see if there are more holidays.
    What do you think about this approach?

  • Function for calculating working days

    Dear Oracle
    Is there any function to calculate no of working days if I pass From date & To date?.
    Thanks
    Christy.

    This would work for normal weekdays, but what about bank holidays?
    They change from country to country, so you need to create a package yourself.
    We got one that looks like the following:
    create or replace
    package body zentr_date_functions as
      function eastern (p_year in number) return date is
        -- Get easter sunday (working from 1900 to 2099)
        -- CKL 02.09.1998 nach c't 18/98
        l_a pls_integer;
        l_b pls_integer;
        l_c pls_integer;
        l_d pls_integer;
        l_e pls_integer;
        l_p pls_integer;
        function make_date(p_d in pls_integer, p_m in pls_integer, p_y in pls_integer) return date is
        begin
          return to_date(to_char(p_d, '00')||to_char(p_m, '00')||to_char(p_y, '0000'), 'DDMMYYYY');
        end;
      begin
        if p_year not between 1900 and 2099 then
          return null;
        end if;
        l_a := mod(p_year, 19);
        l_b := mod(p_year, 4);
        l_c := mod(p_year, 7);
        l_d := mod(19 * l_a + 24, 30);
        l_e := mod(2 * l_b + 4 * l_c + 6 * l_d + 5, 7);
        l_p := 22 + l_d + l_e;
        if l_p > 31 then
          if l_p = 56 and l_d = 28 and l_a > 10 then
            return make_date(18, 4, p_year);
          elsif l_p = 57 then
            return make_date(19, 4, p_year);
          else
            return make_date(l_p - 31, 4, p_year);
          end if;
        else
          return make_date(l_p, 3, p_year);
        end if;
      end eastern;
      function is_workday (p_date in date) return number as
        -- is this a working day?
        l_eastern date;
      begin
        if to_char(p_date, 'DY', 'NLS_DATE_LANGUAGE = AMERICAN') in ('SAT', 'SUN') then
          return 0;
        end if;
        if to_char(p_date, 'DDMM') in ('0101', '0105', '0310', '2412', '2512', '2612', '3112') then
          -- fixed date bank holidays in lower saxony, Germany
          return 0;
        end if;
        if to_number(to_char(p_date, 'MM')) not between 3 and 6 then
          return 1;
        end if;
        if to_number(to_char(p_date, 'YYYY')) not between 1900 and 2099 then
          -- calculation not possible
          return null;
        end if;
        l_eastern := eastern (to_number(to_char(p_date, 'YYYY')));
        if trunc(p_date) in (l_eastern - 2, l_eastern + 1, l_eastern + 39, l_eastern + 50) then
          -- good friday, easter monday, ascension day, pentecost monday
          return 0;
        end if;
        return 1;
      end is_workday;
      function workdays_between (p_date1 in date, p_date2 in date) return number as
        -- count number of working days between  p_date1 and p_date2 (incl. both)
        l_count pls_integer := 0;
      begin
        for i in 0 .. p_date2 - p_date1 loop
          l_count := l_count + is_workday(p_date1 + i);
        end loop;
        return l_count;
      end workdays_between;
    end;
    /

  • Calculating Vacation Days using a query

    Hi everyone. I have an issue with the following query provided by Pollywog. He did a great job on it however there is a bit of a problem in the way it operates. What it does is calculate the number of days for this year excluding saturday and sunday. It also has a cutoff date, July 1st. This is where the problem lies.
    Currently if the user chooses a vacation day that includes the cut off date. So from june 30th to july 5th it doesn't bundles it together and calculates it into the next year total. So if you have a vacation from June 15th to July 2nd it all goes into your next year's vacation days.
    What I want is to have this year's vacation days be calculated into this year and next year to be calculated into next year. So if you have the June 15th to July 2nd vacation it would add 11 days to This year's total and 2 days to next year's total.
    WITH t AS (  SELECT id,
                        MAX (strt) strt,
                        MAX (finish) finish,
                        SUM (dys) days_off
                   FROM (SELECT id,
                                strt,
                                finish,
                                CASE
                                   WHEN TO_CHAR (dy, 'day') LIKE 'saturday%' THEN 0
                                   WHEN TO_CHAR (dy, 'day') LIKE 'sunday%' THEN 0
                                   ELSE 1
                                END
                                   dys
                           FROM vacations
                         MODEL
                            PARTITION BY (ID id)
                            DIMENSION BY (0 d)
                            MEASURES (POCETAK strt, KRAJ finish, POCETAK dy)
                            RULES
                               (dy [FOR d FROM 1 TO finish[0] - strt[0] INCREMENT 1] =
                                     (NVL (dy[CV () - 1], dy[CV ()]) + 1)))
               GROUP BY id
               ORDER BY id)
    SELECT t.id,
           t.strt,
           t.finish,
           t.days_off,
           vacations.korisnik,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              this_years_running_total,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik)
              this_years_grand_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              next_years_running_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik)
              next_years_grand_total
      FROM t, vacations
    WHERE t.id = vacations.idLooking forward to any ideas you can offer

    hi,
    You need to write a code to get the key figure and characterstics value.
    First step is to defined the structure of all the field that you want to read.
    This table I_AXIS_DATA will contain the characterstics.
    This table I_CELL_DATA will contain the keyfigure.
    Please find the code.
                READ TABLE I_AXIS_DATA INTO WA_AXIS_DATA WITH KEY AXIS = '001' .
                IF SY-SUBRC = 0.
                  LOOP AT WA_AXIS_DATA-SET INTO WA_SET.
                        INDEX = INDEX + 1.
                        IF WA_SET-CHANM = 'infoobject name'.
                          WA_ROW_COL-fields = WA_SET-CHAVL_EXT .
                        ENDIF.
                        IF WA_SET-CHANM = 'infoobject name'.
                          WA_ROW_COL-field2 = WA_SET-CHAVL_EXT.
                        ENDIF.
                  ENDLOOP.
                ENDIF.
    ******* POPULATE COLUMNS AGAINST ROWS
                CLEAR WA_ROW_COL.
                V_COUNT = 1.
                INDEX = 1.
                LOOP AT IT_ROW_COL INTO WA_ROW_COL.
                  WHILE ( V_COUNT <= V_NUMOFKEYF ).
                        READ TABLE I_CELL_DATA INTO WA_CELL_DATA INDEX INDEX.
                        IF V_COUNT = 1.
                          WA_ROW_COL-keyfigure = WA_CELL_DATA-FORMATTED_VALUE.
                        ENDIF.
                        V_COUNT = V_COUNT + 1.
                        INDEX = INDEX + 1.
                        CLEAR WA_CELL_DATA.
                  ENDWHILE.
                  APPEND WA_ROW_COL TO IT_R_C_H.
                  V_COUNT = 1.
    Hope this is helpful.
    Thanks,
    Saveen Kumar

  • How to calculated "Target days' supply" in SOP Planning

    Hello all
    after input "Target days' supply" in SOP. then run "Create Product Plan"
    there will create production plan in screen. thus i used "Target days' supply" strategy.
    there have one quesion, how to calculated product quantity?
    Thanks.

    Dear,
    System calculate days supply automaticly, this that no of days required to maintain that stock level,
    In the standard planning table, choose Edit-Create production plan-and the desired strategy (either Synchronous to sales, Zero stock level, Target stock level, Target daysu2019 supply, or Plan externally).
    Please refer this link for help,
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/631fdf43a211d189410000e829fbbd/frameset.htm
    Regards,
    R.Brahmankar

  • Simple date calculation: add days to a date

    Hi,
    I'm looking for a function module in APO that can simply add a number of days to a date.
    I know I can code (date + days) but would rather a module if possible.
    Thks,
    William

    I know FM /SAPAPO/MSDP_SNPHEU_DAYS_ADD is used in SNP ... but not sure it is suitable for you.

  • Need Help Calculating Business Days AND omitting Holidays...

    Post Author: dkotenoglou
    CA Forum: Formula
    Thanks to the people here I was able to get a nice formula to help me calculate the amount of business days between two days.//Crystal syntax
    Local DateTimeVar d1 := ;
    Local DateTimeVar d2 := ;
    DateDiff ("d", d1, d2) -
         DateDiff ("ww", d1, d2, crSaturday) - 
         DateDiff ("ww", d1, d2, crSunday) This works great.  I wanted to add the ability to omit US Holidays.  Now this is a straight Crystal Reports install without an SQL backend so I cannot use any formulas there.Is there a parameter? I can use to manually create a table of dates to omit?  The only reason I ask is that our company was closed during the holidays so my day reports are really high. I do not mind typing a long list of days manually (12/24/2007, 12/25/2007, etc) but I need to know how to best integrate that list into the formula.  

    Post Author: V361
    CA Forum: Formula
    If you have CR XI, there is another example as well, in the sample reports,  look at feature examples, custom functions.rpt   this code is from that example.
    Function cdDateAddSkipHolidays (nWorkingDays As Number, startDateTime As DateTime) As DateTime    'the result = startDateTime + nWorkingDays + nHolidays (including weekends)    'the algorithm below also works when nWorkingDays is negative
        Dim totalDays    'give a rough estimate for total days. For each 5 work days there are 7    'days. Also add in an extra 2 weekend days to account for a partial week.    totalDays = Fix(nWorkingDays * 7 / 5 + 1) + 2
        Dim iteratedDiff    iteratedDiff = cdDateDiffSkipHolidays (startDateTime, startDateTime + totalDays)
        If (iteratedDiff >= nWorkingDays) Then        Do While iteratedDiff >= nWorkingDays            totalDays = totalDays - 1            iteratedDiff = cdDateDiffSkipHolidays (startDateTime, startDateTime + totalDays)        Loop        cdDateAddSkipHolidays = startDateTime + totalDays + 1    Else        Do While iteratedDiff < nWorkingDays            totalDays = totalDays + 1            iteratedDiff = cdDateDiffSkipHolidays (startDateTime, startDateTime + totalDays)        Loop         cdDateAddSkipHolidays = startDateTime + totalDays    End If
    End Function

  • Function module for calculating next day's date

    Dear all,
    We have a requirement of displaying transaction validity date on SAP smart form. The date input is available from the transaction.
    We need to add 1 day to this to get correct date printed in the output. We applied the logic of 'input date +1', but this logic does not give correct output when the final date co-incides with change in month (i.e 1st of next month).
    Is there any function module available which would do the addition in proper date format and calculate next day's date correctly?
    Regards,
    DS

    Use FM RP_CALC_DATE_IN_INTERVAL
    Example :
    data: v_curr type sy-datum,
    v_next type sy-datum.
    v_curr = '20080415'.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
    DATE = v_curr
    DAYS = '01'
    MONTHS = '0'
    SIGNUM = '+'
    YEARS = 0
    IMPORTING
    CALC_DATE = v_next.
    write:/5 'Current date', v_curr.
    write:/5 'Future date', v_next.

Maybe you are looking for

  • Can not see assignment block conditions in rule policy

    Hi gurus, I can't define any conditions in a new lead distribution rule. When I create a rule under a rule folder I can see the assignment blocks "Rule Details", "Actions" and "Preview", but I can't see the assignment block "Conditions" in order to d

  • Physical file location in SAP when OPEN DATASET command is used

    Hi, I have used below sample code from SAP help in my program. If you notice, I have not specified the file path however I am able to open and read this file whenever I want. Could anybody let me know where exactly is this file physically located. I

  • Is there a version 7 of Firefox and when did it come out?

    I am receiving email messages from other than Mozilla, which indicate a version 7 of Foxfire is available. However, after reading some of the comments on the Mozilla site, I am wondering about the reliability of the new version, or if the information

  • Can not sign into FaceTime or iMessage on ipad air

    For some reason I can not sign into FaceTime or iMessage using my Apple ID anymore. They both used to work, but they just stopped.. Now when I try to sign back in I get a message than an error occurred during sign in. I use two different Apple id's,

  • How do I change my Bluetooth name

    Can anyone tell me how I change my Bluetooth name