To find the no of working days b/w given date

Hi ABAP Experts,
         Here i have one requirement .
         table is tfacs
          in  this table i want to know the no of working days b/w  the given date. Here i have attached my code .pls go through it and do me needful.
TABLES : tfacs,vbrk.
DATA: BEGIN OF ty_tfacs OCCURS 0,
        ident TYPE tfacs-ident,
        jahr TYPE tfacs-jahr,
        mon01 TYPE tfacs-mon01,
        mon02 TYPE tfacs-mon02,
        mon03 TYPE tfacs-mon03,
        mon04 TYPE tfacs-mon04,
        mon05 TYPE tfacs-mon05,
        mon06 TYPE tfacs-mon06,
        mon07 TYPE tfacs-mon07,
        mon08 TYPE tfacs-mon08,
        mon09 TYPE tfacs-mon09,
        mon10 TYPE tfacs-mon10,
        mon11 TYPE tfacs-mon11,
        mon12 TYPE tfacs-mon12,
        basis TYPE tfacs-basis,
        fenum TYPE tfacs-fenum,
        wenum TYPE tfacs-wenum,
        load TYPE  tfacs-load,
        string1(31) TYPE c,
        string2(31) TYPE c,
        string3(31) TYPE c,
        string4(31) TYPE c,
        string5(31) TYPE c,
        string6(31) TYPE c,
        string7(31) TYPE c,
        string8(31) TYPE c,
        string9(31) TYPE c,
        string10(31) TYPE c,
        string11(31) TYPE c,
        string12(31) TYPE c,
        uk(31) TYPE c,
        total1 TYPE i,
        total2 TYPE i,
        total3 TYPE i,
        total4 TYPE i,
        total5 TYPE i,
        total6 TYPE i,
        total7 TYPE i,
        total8 TYPE i,
        total9 TYPE i,
        total10 TYPE i,
        total11 TYPE i,
        total12 TYPE i,
        END OF ty_tfacs.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_jahr FOR tfacs-jahr MODIF ID b1.
SELECT-OPTIONS : mon FOR tfacs-mon01  MODIF ID b1.
SELECT-OPTIONS :  s_month FOR vbrk-erdat MODIF ID b2.
SELECTION-SCREEN : END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME.
PARAMETERS  r1 RADIOBUTTON GROUP c DEFAULT 'X' USER-COMMAND flag .
PARAMETERS  r2 RADIOBUTTON GROUP c .
SELECTION-SCREEN END OF BLOCK b.
         INITIALIZATION
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
  IF r1 NE space.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'B2'.
        screen-output = 1.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'B1'.
        screen-output = 1.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
          start - of - selection
start-of-selection.
  IF r1 = 'X'.
    PERFORM get-data.
    PERFORM display-data.
  ENDIF.
&      form  get-data
       text
  -->  p1        text
  <--  p2        text
form get-data .
  DATA :  total1  TYPE i.
  SELECT * FROM tfacs INTO TABLE ty_tfacs
                                 WHERE ident EQ 'IN'
                                 AND   jahr IN s_jahr.
  LOOP AT  ty_tfacs WHERE ident = 'IN'.
    IF sy-subrc EQ 0.
      PERFORM get_string USING ty_tfacs-string1
                               ty_tfacs-mon01
                               ty_tfacs-total1.
      PERFORM get_string USING ty_tfacs-string2
                                ty_tfacs-mon02
                                ty_tfacs-total2.
      PERFORM get_string USING ty_tfacs-string3
                               ty_tfacs-mon03
                               ty_tfacs-total3.
      PERFORM get_string USING ty_tfacs-string4
                                     ty_tfacs-mon04
                                     ty_tfacs-total4.
      PERFORM get_string USING ty_tfacs-string5
                                     ty_tfacs-mon05
                                     ty_tfacs-total5.
      PERFORM get_string USING ty_tfacs-string6
                                     ty_tfacs-mon06
                                     ty_tfacs-total6.
      PERFORM get_string USING ty_tfacs-string7
                                     ty_tfacs-mon07
                                     ty_tfacs-total7.
      PERFORM get_string USING ty_tfacs-string8
                                     ty_tfacs-mon08
                                     ty_tfacs-total8.
      PERFORM get_string USING ty_tfacs-string9
                                     ty_tfacs-mon09
                                     ty_tfacs-total9.
      PERFORM get_string USING ty_tfacs-string10
                                     ty_tfacs-mon10
                                     ty_tfacs-total10.
      PERFORM get_string USING ty_tfacs-string11
                                     ty_tfacs-mon11
                                     ty_tfacs-total11.
      PERFORM get_string USING ty_tfacs-string12
                                     ty_tfacs-mon12
                                     ty_tfacs-total12.
    ENDIF.
    ty_tfacs-uk = ty_tfacs-total1 + ty_tfacs-total2
                  + ty_tfacs-total3 + ty_tfacs-total4
                  + ty_tfacs-total5 + ty_tfacs-total6
                  + ty_tfacs-total7 + ty_tfacs-total8
                  + ty_tfacs-total9 + ty_tfacs-total10
                  + ty_tfacs-total11 + ty_tfacs-total12.
    MODIFY  ty_tfacs TRANSPORTING  total1 total2 total3
                                   total4 total5 total6
                                   total7 total8 total9
                                   total10 total11 total12
                                   uk.
  ENDLOOP.
PERFORM write1-data USING 'COU' 'YEAR' 'MONTH01'
                           'MONTH02' 'MONTH03' 'MONTH04'
                           'MONTH05' 'MONTH06' 'MONTH07'
                           'MONTH08' 'MONTH09' 'MONTH10'
                           'MONTH11' 'MONTH12' 'TOTAL WDAYS' .
LOOP AT ty_tfacs.
   PERFORM write1-data USING ty_tfacs-ident ty_tfacs-jahr
                             ty_tfacs-total1 ty_tfacs-total2
                             ty_tfacs-total3 ty_tfacs-total4
                             ty_tfacs-total5 ty_tfacs-total6
                             ty_tfacs-total7 ty_tfacs-total8
                             ty_tfacs-total9 ty_tfacs-total10
                             ty_tfacs-total11 ty_tfacs-total12
                             ty_tfacs-uk.
ENDLOOP.
ENDFORM.                    " get-data
TOP-OF-PAGE.
  FORMAT COLOR 5 ON.
  WRITE :/10 'COUNTRY',
          20 'YEARS',
          35 'MON01',
          45 'MON02',
          55 'MON03',
          65 'MON04',
          75 'MON05',
          85 'MON06',
          95 'MON07',
          105 'MON08',
          115 'MON09',
          125 'MON10',
          135 'MON11',
          145 'MON12',
          170 'total wdays'.
  FORMAT COLOR OFF.
  WRITE :/ SY-ULINE.
*&      Form  display-data
      text
-->  p1        text
<--  p2        text
FORM display-data .
  LOOP AT ty_tfacs.
    WRITE :/10 ty_tfacs-ident,
            20 ty_tfacs-jahr,
            30 ty_tfacs-total1,
            40 ty_tfacs-total2,
            50 ty_tfacs-total3,
            60 ty_tfacs-total4,
            70 ty_tfacs-total5,
            80 ty_tfacs-total6,
            90 ty_tfacs-total7,
           100 ty_tfacs-total8,
           110 ty_tfacs-total9,
           120 ty_tfacs-total10,
           130 ty_tfacs-total11,
           140 ty_tfacs-total12,
           150 ty_tfacs-uk.
  ENDLOOP.
ENDFORM.                    " display-data
*&      form  get_string
      text
     -->p_0250   text
     -->p_0251   text
     -->p_0252   text
form get_string  using    p_0250   " month
                          p_0251   " string
                          p_0252.  " total
p_0250 = p_0251.  " move month to string
TRANSLATE p_0250 USING '0 ' . " translate
CONDENSE p_0250  NO-GAPS.     " condense
p_0252 = STRLEN( p_0250 ).    " pass length of string to total
ENDFORM.                    " get_string
***&      Form  write1-data
      text
     -->P_0306   text
     -->P_0307   text
     -->P_0308   text
     -->P_0309   text
     -->P_0310   text
     -->P_0311   text
     -->P_0312   text
     -->P_0313   text
     -->P_0314   text
     -->P_0315   text
     -->P_0316   text
     -->P_0317   text
     -->P_0318   text
     -->P_0319   text
     -->P_0320   text
*form write1-data  using    p_0306
                          p_0307
                          p_0308
                          p_0309
                          p_0310
                          p_0311
                          p_0312
                          p_0313
                          p_0314
                          p_0315
                          p_0316
                          p_0317
                          p_0318
                          p_0319
                          p_0320.
*WRITE :/ p_0306,
        p_0307,
        p_0308 left-justified,
        p_0309 left-justified,
        p_0310 left-justified,
        p_0311 left-justified,
        p_0312 left-justified,
        p_0313 left-justified,
        p_0314 left-justified,
        p_0315 left-justified,
        p_0316 left-justified,
        p_0317 left-justified,
        p_0318 left-justified,
        p_0319 left-justified,
        p_0320 left-justified.
*ENDFORM. " write1-data
from this report what i am getting is year and its 12 months but my requirement is i will give date using select options and i should get the total no of  working days in b/w this date.

Use the following code to find no of working days b/w given date. Use the correct factory_calendar_id in the function module. L_DAYS will display the required result:
PARAMETERS: p_date1 TYPE sydatum,
           p_date2 TYPE sydatum.
DATA: date1        LIKE scal-date,
     date2        LIKE scal-date,
     correction   LIKE scal-indicator,
     calendar     LIKE scal-fcalid,
     factorydate1  LIKE scal-facdate,
     workday1      LIKE scal-indicator,
     factorydate2  LIKE scal-facdate,
     workday2      LIKE scal-indicator,
     l_days TYPE scal-facdate.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
  EXPORTING
    date                       = p_date1
    correct_option             = '+'
    factory_calendar_id        = 'US'
  IMPORTING
    date                       = date1
    factorydate                = factorydate1
    workingday_indicator       = workday1
  EXCEPTIONS
    correct_option_invalid     = 1
    date_after_range           = 2
    date_before_range          = 3
    date_invalid               = 4
    factory_calendar_not_found = 5.
IF sy-subrc = 0.
  CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
    EXPORTING
      date                       = p_date2
      correct_option             = '+'
      factory_calendar_id        = 'US'
    IMPORTING
      date                       = date2
      factorydate                = factorydate2
      workingday_indicator       = workday2
    EXCEPTIONS
      correct_option_invalid     = 1
      date_after_range           = 2
      date_before_range          = 3
      date_invalid               = 4
      factory_calendar_not_found = 5.
  IF sy-subrc = 0.
    l_days = factorydate2 - factorydate1.
    WRITE: / l_days.
  ENDIF.
ENDIF.

Similar Messages

  • How can i find out the next 2 working days.

    Hi Experts,
    Based on a given date, i would like to find out the next 2 working days.
    Help me out.
    Regards,
    Mansi.

    Hi,
    Use this FM WRF_PSCD_GET_NEXT_WORKDAY
    first get the first working day and pass that day again to get the next working day
    and also pass the calender id for the same
    Import parameters               Value
    I Import parameters               Value
    I_DATE                          09/15/2007
    I_CALENDAR1                     US
    I_CALENDAR2
    Export parameters               Value
    E_WORKDAY                       09/17/2007
    Regards
    Shiva

  • ABAP - Function module to get the number of working days between 2 days

    Hi gentlemen,
    I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
    I didn't find anything...
    Has any of you already written a function module to get this ?
    A great thanks in advance.
    Jacques Lagrif

    Hi ,
    you can try this ,
    when you require the number of working days between D1 and D2
    Total No of Days will be
    D2 - D1
    No of holidays between D1 and D2 , use the FM HOLIDAY_GET
    Pass the From date , to date , and the factory calendar to get the of Holidays
    Total no of days - Number of Holidays will your Working days
    Regards,
    Sathya

  • Get the number of working days based on factory calendr for a range of mont

    Dear all,
    We are using BI7.00 . In one of our reports we have the following requirement.
    The range of months will be given in the selection screen for example 01.2008 to 11.2008, when the query is executed, i want system to calculate the number of working days for each month of the year (for what values provided in the selection field ) and display the same. i.e., as mentioned below.
    Month                         days.
    01.2008                        22
    02.2008                        18
    03.2008                        25  etc., Kinldy provide steps for adopting the same. If it can be adopted only through customer exit also provide the code and parameters that has to be used.
    Regards,
    M.M

    hi,
    Try the following logic to find out the no.of working days in a month based on your calendar.
    parameters : mny(6).    " input format should be  yyyymm
    data : d1 like sy-datum,
           d2 like sy-datum,
           d3 like sy-datum,
           v_nds type i.
    concatenate  mny '01' into d1.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN            = d1
      IMPORTING
        LAST_DAY_OF_MONTH = d2
      EXCEPTIONS
        DAY_IN_NOT_VALID  = 1
        OTHERS            = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    do 30 times.
      CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
        EXPORTING
          CORRECT_OPTION      = '+'
          DATE                = d1
          FACTORY_CALENDAR_ID = ' A'    " your factory calendar ID
        IMPORTING
          DATE                = d3.
      if d1 = d3.
        d1 = d1 + 1.
        v_nds = v_nds + 1.
      else.
        d1 = d3.
      endif.
      if d3 ge d2.
        exit.
      endif.
    enddo.
    write : 'No of working days ', v_nds.
    hope it helps...
    regards,
    raju

  • To see the number of working days and leave of an employee for year

    HI SAP GURUS,
    I want to see the the number of working days and leave of all employees of the organisation for a year. Please tell me is there any report or any transaction code in sap to see the working days and leave for all employees.
    Thanks & Regards
    Surupa

    Hi,
    call transaction PT64.
    Best Regards
    Bernd

  • Find the 'DAY' for a given 'DATE'

    Hi Folks,
    I need a help regarding finding the day for a given date.
    My requirement is that..,
             If I enter a date using 'parameters', it should write the 'day' for the corresponding date.
    To be more specific.....,
    if I enter date as ' 07/15/2008 ' it should return me  the day as 'Tuesday'.
    Regards,
    Naveen G

    HI,
    FM LIST WITH RESPECT TO DAY, WEEK, AND MONTH.
    CALCULATE_DATE : Calculates the future date based on the input .
    DATE_TO_DAY : Returns the Day for the entered date.
    DATE_COMPUTE_DAY : Returns weekday for a date
    DATE_GET_WEEK : Returns week for a date
    RP_CALC_DATE_IN_INTERVAL : Add days / months to a date
    MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.
    END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.
    HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
    FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.
    MONTH_NAMES_GET : Get the names of the month
    WEEK_GET_FIRST_DAY : Get the first day of the week
    HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format
    SD_CALC_DURATION_FROM_DATETIME : Find the difference between two date/time and report the difference in hours
    L_MC_TIME_DIFFERENCE : Find the time difference between two date/time
    HR_99S_INTERVAL_BETWEEN_DATES : Difference between two dates in days, weeks, months
    LAST_DAY_OF_MONTHS : Returns the last day of the month
    DATE_CHECK_PLAUSIBILITY :Check for the invalid date.
    Reward points if useful,
    siri

  • Showing current date and the last 250 working days

    Hi,
    we need to report the current day and the last 250 working days. How can I implement this into the BEx by using a variable for the current day selection. How can the selection of the last 250 working days work?
    Thanx
    René

    Hi Rene,
    I think that you have to go for a customer exit variable with multiple selections. The exit will calculate all these work days and place them into output for restriction.
    Best regards,
    Eugene

  • To get the list of working days-3 to working days+10 of every month

    Hi,
    I am looking for a query,which will give me the list of working days in a column (except Saturday and Sunday)ranging from
    [Working day- 3] to [Working day +10]of each month from (April 2014 ) till 2016 December.Could you please help me in achiving it.
    Note :Working day -3 means ,When the first working day of a month is [ 1st April ,Monday].
    So it has to result as March 27,28 and 29 as my last working days.
    Same logic applies for Working day +10(it needs to give total 10 dates,which excludes Saturday and Sunday)
    Regards,
    Ramesh

    DECLARE @monthDate datetime
    SET @MonthDate = '20140401'
    SELECT [Date]
    FROM
    SELECT [Date],ROW_NUMBER() OVER (PARTITION BY DATEDIFF(mm,0,[Date]) ORDER BY [Date]) AS Seq,
    ROW_NUMBER() OVER (PARTITION BY DATEDIFF(mm,0,[Date]) ORDER BY [Date] DESC) AS BSeq
    FROM dbo.CalendarTable(DATEADD(dd,- 10,@MonthDate),DATEADD(yy,2,@MonthDate),1,0)
    )t
    WHERE (Seq BETWEEN 2 AND 11 AND [DATE] > @MonthDate)
    OR BSeq BETWEEN 1 AND 3
    ORDER BY [Date]
    CalendarTable can be found here
    http://visakhm.blogspot.in/2010/02/generating-calendar-table.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to find the number of references created for a given  object ??

    How to find the number of references created for a given object in a big application environment.
    That means, if i give any object name (of my application) as input, then how can i find the[b] number of references created for that particular object ??

    Please do not post the same question multiple times.
    As for your original question, there is no direct way to do it.
    Especially not the way you phrased it,
    since objects don't have "names".
    Applications also don't have "names".
    They have classes and instances.
    Also, there are 2 related issues, and I'm not sure which one is the one you asked.
    #1. Finding the number of references to the same object.
    Eg.
    Map<String,String> a = new HashMap<String,String>();
    Map<String,String> b = new HashMap<String,String>();
    Map<String,String> c = a;In this case, there are only 2 objects.
    The first object has (at least) 2 references pointing to it.
    The second object has (at least) 1 reference pointing to it.
    (There may be more, if the HashMap library keeps
    references to these things, or if the HashMap object has
    some internal cyclic references...)
    If you're asking this, then it can't be done.
    It's an active research topic in universities
    and software research labs, called "alias analysis".
    Type it in google, and you'll see people are working hard
    and having little success so far.
    #2. Finding the number of instances created from a class.
    In this case, what you have to do is to add a counter to
    the constructor of the class. Every time an object is constructed,
    you increment the counter. Like this:
       class MyClass
           public static int counter = 0;
           public MyClass( )  { counter++; }
        // Then later in your program, you can do this:
        MyClass a = new MyClass();
        MyClass b = new MyClass();
        System.out.println(MyClass.counter); // It should show 2Note: you won't be able to do this to every class in the system.
    For every class you care about, you have to modify its constructor.
    Also: when an object is deleted, you won't always know it
    (and thus you won't always be able to decrement the counter).
    Finalizers cannot always work (read Joshua Bloch's
    "Effective Java" book if you don't believe me), but basically
    (1) finalizers will not always be called, and
    (2) finalizers can sometimes cause objects to not be deleted,
    and thus the JVM will run out of memory and crash

  • How to know the day of a given date?

    Hello Experts,
    Is there any function module that can give the day of a given date? For example, If
    I put in 10/30/2007, it will give me Tuesday. Hope you can help me guys.Thank you and take care!

    Hi
    Yes, DATE_COMPUTE_DAY
    Sample code:
      clear: hold_day_of_week.
      CALL FUNCTION 'DATE_COMPUTE_DAY'
           EXPORTING
                DATE = workdate
           IMPORTING
                DAY  = day_of_week_num
           EXCEPTIONS
                OTHERS  = 8.
      CASE day_of_week_num.
        WHEN 1.
          hold_day_of_week = 'Monday'.
        WHEN 2.
          hold_day_of_week = 'Tuesday'.
        WHEN 3.
          hold_day_of_week = 'Wednesday'.
        WHEN 4.
          hold_day_of_week = 'Thursday'.
        WHEN 5.
          hold_day_of_week = 'Friday'.
        WHEN 6.
          hold_day_of_week = 'Saturday'.
        WHEN 7.
          hold_day_of_week = 'Sunday'.
        WHEN OTHERS.
          hold_day_of_week = 'invalid'.
      ENDCASE.
    or 
    You can use  DATE_COMPUTE_DAY to get the day number of the week (for example, today gives 5)
    then use WEEKDAY_GET which returns an itab with seven entries (one for each day of the week.)
    You enter in this itab and get the field langt to get the day name.
    code @ http://www.sap-img.com/abap/fm-to-get-the-day-for-a-particular-date.htm
    Pls reawrd points

  • How do I find the frequency of numbers in a group of data strings?

    I have a set of data strings and I want to find the frequency of each number occuring in a data string. How do I do this?
    Here are the strings.
    28-29-43-51-53 7
    02-08-30-36-48 31
    09-10-27-36-42 11
    20-24-31-33-36 44
    16-29-48-52-54 5
    06-15-29-39-51 36
    01-16-18-25-27 3
    09-30-39-42-47 37

    The first part is to "break out" the values from your strings.  Columns B thru G take care of this:
    I assumed allvalues as 2 digits...
    B2=VALUE(MID($A2, 3*(COLUMN()-2)+1, 2))
    select B2 and fill to the right until column G
    then select B2 thru G2 and fill down as needed.
    For compactness of THIS presentation I added two additional columns for getting the Frequency... columns I and J.
    Column I contains an counting value and J contains the frquency of the corresponding value in I (of the same row).
    put a "1" in I2, a "2" in I3, then select both I1and I2, then grab (click and hold the little circle at the bottom right of the selection), and drag down until the value is the max number you expect (I assumed it was 99).
    J2=COUNTIF(B:G, "="&I2)
    select J2 and fill down

  • If you're trying use your hotspot and connected to wifi on your iphone, does the wifi stop working and start using your data instead of staying connected to the wifi?

    If you're trying use your hotspot and connected to wifi on your iphone, does the wifi stop working and start using your data instead of staying connected to the wifi?

    Spencer Simmonds wrote:
    Thanks for the quick response. What you have said makes sense but there is no rhyme or reason to he data used. I reset my cellular data counter to zero so both sent and received read zero. I was connected to wifi and let the phone to go into sleep mode. I waited about ten minutes and sent myself the same email four times, each with a 750 kb attachment. It was sent to my .me address so it was push mail on my phone. Sure enough I checked a minute later while bringing the phone out of sleep mode and checked the data. It showed just 10kb sent but 1mb received which just doesn't tally with the 4 x 750kb mails received. It just isn't making sense.
    He knows what you asked and has already answered it!
    I thought I had read where the iOS4 (or maybe just the iPhone 4) was supposed to be able to keep wifi connections alive while inactive. If the phone is sitting there on a charger with a wifi connection available, why use the 3G?

  • Find the used space in datafile on any specific date

    Hi,
    We have a datafile created on 2-11-2009.
    I wish to find the used space in that datafile on 13-12-2009.
    From v$datafile and dba_data_files from the "BYTES" column it wld give me the current used space in the datafile.
    But how to find the used space in datafile on any specific date.
    Thanks.

    Hello,
    It depends on your Oracle release, starting with Oracle 10.1, you have the View dba_hist_tpspc_space_usage which may give you an history of the space used by the Tablespaces:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_3195.htm#I1023456
    You may have to pay for specific license to be allowed to access to this View which belongs to AWR (Automatic Workload Repository).
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to get next date or date after n th day of a given date ?

    I want to get the date after n th day of a given date.
    Here a date and an integer will be the input.
    suppose 15/12/2007 and 3 are the inputs and the output will be 18/12/2007
    Is there any method to solve this purpose ?
    Plz its urgent !!

    javagalaxy.com wrote:
    I didn't feel this is a home work for them. I feel the OP is trying to learn.Well, that is a part of what homework is. Now, tell me how doing it for them helps them learn? They might run it once, to make sure it does what it is suppossed to do, then simply turn it in. In the process, they haven't learned a thing. Only a very small fraction of posters will study the posted code to figure it out, as evidenced by the fact, that if the code is not 100% cut-n-paste capable for their assignment, they will come back and complain that this or that does not work, or was not done.
    >
    This will be good learning for the OP, why don't you point out what is done badly.
    Did you mean using
    now.add(Calendar.DAY_OF_MONTH, daysToAdd);
    instead of
    now.set(Calendar.DAY_OF_MONTH, now.get(Calendar.DAY_OF_MONTH)+daysToAdd);?
    That is the main crux of it, yes, but homework or not, you should actually attempt to catch and handle the exceptions, rather than simply declaring "throws Exception". Handling exceptions in the homework assignments will cause that to become a habit and you will actually do it correctly without thinking about it. Just like constantly declaring "throws Exception" in your homework will also make that a habit, and guarnatee that you will someday also do that when it counts, thereby causing all sorts of problems (usually for coworkers).
    if its something else then please do let us know.
    I can also learn how to do it good :)

  • To find whether it is working day or not

    Hi,
    Could you provide me some logic on below:
    From the Order Date, the next 10th day i want to find out whether it is holiday or working day.
    if order date = Sysdate , then i need to know whether following 10th day is holiday or working day.
    DB:10g
    Thanks.

    Hi Jaysree,
    just execute this code ,, this will do .
    REPORT ZEX4 .
    PARAMETERS: fname  LIKE rlgrap-filename .
    DATA: len TYPE i,
          T  TYPE I VALUE 0,
          inp(20) TYPE C,
          inp1(20) type c,
          inp2(20) type c,
          inp3(20) type c.
    DATA :gv_char.
    RANGES : gv_charsel FOR gv_char,
             gv_charsel1 FOR gv_char,
             gv_charsel2 FOR gv_char.
    START-OF-SELECTION.
      gv_charsel-sign = 'I'.
      gv_charsel-option = 'BT'.
      gv_charsel-low = '0'.
      gv_charsel-high = '9'.
      APPEND gv_charsel.
      gv_charsel1-sign = 'I'.
      gv_charsel1-option = 'BT'.
      gv_charsel1-low = 'a'.
      gv_charsel1-high = 'z'.
      APPEND gv_charsel1.
      gv_charsel2-sign = 'I'.
      gv_charsel2-option = 'BT'.
      gv_charsel2-low = 'A'.
      gv_charsel2-high = 'Z'.
      APPEND gv_charsel2.
      CONDENSE fname.
      len = strlen( fname ).
    WRITE:/ len.
      DO len TIMES.
      MOVE FNAME+T(1) TO GV_CHAR.
        IF gv_char IN gv_charsel.
          MOVE fnameT(1) TO inpT(1).
        elseif gv_char in   gv_charsel1. "or gv_charsel2.
          MOVE fnameT(1) TO inp1T(1).
        elseif gv_char in gv_charsel2.
          MOVE fnameT(1) TO inp2T(1).
        else.
        move fnameT(1) TO inp3T(1).
        ENDIF.
        T = T + 1.
      ENDDO.
    CONDENSE INP.
    CONDENSE INP1.
    CONDENSE INP2.
    CONDENSE INP3.
    write:/ 'Numbers  :', inp.
    write:/ 'Lowercase :', inp1.
    write:/ 'Uppercase :', inp2.
    Write:/ 'Special Characters :', inp3.
    regards,
    VIjay.
    kindly close the thread if ur query is over .

Maybe you are looking for

  • Emailing a link to a file on an SMB server

    How do you create a link to a file on an SMB server, to send to other people (e.g. in email)? In a large corporation with mixed Mac/Windows network we use Samba to allow Mac OS X 10.6 to access the file servers. This works fine for basic operations s

  • Why is the right side of my MacBook Pro screen distorted?

    I've had my MacBook Pro for 4.5 years and have really had little trouble with it. A little over a year ago, however, someone in my family dropped something on the laptop when it was closed and broke the screen.  One trip to the Genius Bar later and w

  • What can be done to make 5-yr old iMac G4 usable

    I know almost nothing about Macs and a friend who bought a secondhand iMac been asking me to help. The machine is very very slow and when Safari connects to the internet, it closes the browser when you try to upgrade Flash, download files, or even st

  • Internal/External Action in Integration Scenario

    Hi,       What is the simple logic of defining an Action Internal/External in an integration scenario. For Instance, A Web application "A" is accessing "PS-EPS"(SAP) system to check the existense of Network. What will be the type of Usage at both end

  • Ver 6 Batch eWay SFTP License Error

    When we start a repository based project deployed on Glassfish (on Solaris) we are getting the following message: [#|2008-08-15T15:45:03.761-0600|SEVERE|sun-appserver9.1|STC.eWay.batch.sftp.ra.com.stc.connector.batchadapter.eway.sftp.SFTPEwayConnecti