SCAL calculate the holiday date.

Hoy,
I want a create a new factory calendar where the first 5 days of every month are a holiday.
But I'm a little bit lazily, because I don't want to maintain this calendar every year.
Is it possible to calculate the holiday with a abap-function ??
Some kind of dynamic holiday …
Greetings, Dirk

Hoy,
I want a create a new factory calendar where the first 5 days of every month are a holiday.
But I'm a little bit lazily, because I don't want to maintain this calendar every year.
Is it possible to calculate the holiday with a abap-function ??
Some kind of dynamic holiday …
Greetings, Dirk

Similar Messages

  • How to calculate the 'real data of arrival' in PO item

    Hi,
    Confirmation control keys with control type u201CDAu201D are MRP relevant
    1.     = New field time of transportation in calendar days
    2.     = Confirmation control type u201CABu201D (order confirmation)
    3.     = Confirmation control type u201CLAu201D (shipping notification)
    4.     = Confirmation control type u201CDAu201D (Date of arrival)
    When data 1-3 has been changed = 4 will be calculated again.
    Program requirements to calculate the u201Creal data of arrivalu201D:
    1.     When 1 >0 days then create 4 directly after placement of 2 (2 can be placed manually or automatically)
    2.     4 must be calculated: AB delivery date 2 + calendar date amount 1 = arrival date 4 (MRP gets a confirmed delivery      date by vendor plus transportation time)
    3.     When changes in 1 then change 4 (add calendar days to arrival date DA)
    4.      When changes in 2 then change 4 = u201Cnewu201D delivery date 2 plus calendar days 1 = new arrival date 4
    5.     When 3 u201CLAu201D is entered (manually/automatically) then calculate: shipping date LA 3 plus calendar days 1 = new arrival date in 4
    6.     When 1 has been changed then calculate 4 new (Check is 2 existing then use 2, check is 2 + 3 existing then use 3)
    7.     When 2 or 3 has been changed quantity then also update quantity in 4
    8.     When 2 has been canceled then cancel 4, too
    9.     When 3 has an inbound delivery document no. in place then copy the same no. in the inbound delivery field 4 and in the new column in MRP (MD04, see MRP view below)
    i have a lot of confuseging in this lines of code,even where u write i don't know in BADI . we are implement in BADI only.
    if possiable give me code for this requriment. . this line of code in which method we write,please guide me.............

    SDN is not your code factory, please research yourself before posting, maybe ask whoever handed you this requirement?
    Thread locked.
    Thomas

  • Calculate the Sunday date based on 0CALDAY

    Hi All,
    How to Calculate the Sunday date based on 0CALDAY
    Thanks in advance
    CPY

    use customer exit where you can use this FM /OSP/GETDATE_WEEKDAY

  • Holiday dates app in the apps store

    Hi all.
    About 4/5 weeks ago I stumbled across an app that downloads all the holiday dates for 2009
    (saints days, bank holidays, easter etc.......)
    I think it was called 'Holiday Calendar' but I now cannot find it as I wast to purchase it.
    From what I can remember, after you download it it puts the dates into your calender so it doesnt have to be treated as a separate program.
    Can anybody help please??
    Thanks awfully old chap...
    Message was edited by: Dive junkie

    Don't know about an app, but you can go here http://icalshare.com/article.php?story=20020930183844804 and subscribe to the UK Holiday calendar in iCal on your Mac. It puts all the holidays in your calendar and you just have to incluce that calendar to sync.

  • Calculate the date interval in days

    Hi all!
    I need your kind help.
    I have an oracle sql table.
    here is goes..
    TABLENAME: RACE
    DATE NAME
    11-JAN-12 JAMES
    12-JAN-12 JAMES
    14-JAN-12 JAMES
    17-JAN-12 JAMES
    22-JAN-12 JAMES
    01-FEB-12 JOHN
    11-FEB-12 JOHN
    13-FEB-12 JOHN
    14-FEB-12 JOHN
    28-FEB-12 JOHN
    01-MAR-12 JOHN
    HOW DO I Calculate the total date interval(difference) for James and John in days?
    for example in this case the total is 7 days for James(11-JAN-12 to 12-JAN-12 is 0 days and 12-JAN-12 to 14-JAN-12 is 1 day and 14-JAN-12 to 17-JAN-12 is 2 days) and 24 days for John
    The data for the date will be random and can be up to 60 difference dates and names so I will like to calculate for all different names.. Thanks!

    Can you explain in more detail why James should have 7 days?
    Difference in dates can be easily calculated (if you use the DATE datatype, that is) by simply subtracting them.
    Example:
    SQL> -- generating sample data:
    SQL> with race as (
      2  select to_date('11-JAN-12', 'dd-mon-yy') dt, 'JAMES' nm from dual union
      3  select to_date('12-JAN-12', 'dd-mon-yy'), 'JAMES' from dual union
      4  select to_date('14-JAN-12', 'dd-mon-yy'), 'JAMES' from dual union
      5  select to_date('17-JAN-12', 'dd-mon-yy'), 'JAMES' from dual union
      6  select to_date('22-JAN-12', 'dd-mon-yy'), 'JAMES' from dual union
      7  select to_date('01-FEB-12', 'dd-mon-yy'), 'JOHN' from dual union
      8  select to_date('11-FEB-12', 'dd-mon-yy'), 'JOHN' from dual union
      9  select to_date('13-FEB-12', 'dd-mon-yy'), 'JOHN' from dual union
    10  select to_date('14-FEB-12', 'dd-mon-yy'), 'JOHN' from dual union
    11  select to_date('28-FEB-12', 'dd-mon-yy'), 'JOHN' from dual union
    12  select to_date('01-MAR-12', 'dd-mon-yy'), 'JOHN' from dual
    13  )
    14  --
    15  -- actual query:
    16  --
    17  select max(dt)-min(dt) diff
    18  ,      nm
    19  from   race
    20  group by nm;
          DIFF NM
            29 JOHN
            11 JAMESHowever, that is not your desired resultset. We (at least: I) need a bit more explanation why James should have 7 as date difference...
    Also: DATE and NAME ar not suitable as column names.

  • Calculate the performance of an activity according to the hours worked

    Hi for all,
    I need to calculate the performance of an activity according to the hours worked by anyone. Someone could tell me how can I do this?
    timetable of staff
    ID  HR1  HR2  HR3  HR4   DAY
    1   492  720  780  1080  Monday
    1   612  720  780  1200  Tuesday
    1   492  720  780  1080  Wednesday
    1   612  720  780  1200  Thursday
    1   492  720  780  1080  Friday
    2   492  720  780  1080  Monday
    3   492  720  780  1080  Saturday
    SQL> Select to_date(to_char(trunc(sysdate) + 492/1440,'dd/mm/yyyy HH24:MI:SS' ), 'dd/mm/yyyy HH24:MI:SS') from dual;
    TO_DATE(TO_CHAR(TRUNC(SYSDATE)
    20/01/2011 08:12:00
    Table Holidays
    ID DATE_HOLIDAY HOLIDAY
    1  01/01/2011   Holiday X
    1  03/15/2011   Holiday Y
    1  07/04/2011   Holiday Z
    2  01/01/2011   Holiday X
    Input Values
    Start Date : 17/01/2011
    Qtd Days   : 0
    Qtd Hours  : 11
    Qtd Minutes: 0
    Result
    18/01/2011 13:24Regards,

    Okay here is my second attempt.
    With schedule_of_work As
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Monday'    Day_of_week from dual union all
         Select 1 ID, 612 HR1, 720 HR2, 780 HR3, 1200 HR4, 'Tuesday'   Day_of_week from dual union all
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Wednesday' Day_of_week from dual union all
         Select 1 ID, 612 HR1, 720 HR2, 780 HR3, 1200 HR4, 'Thursday'  Day_of_week from dual union all
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Friday'    Day_of_week from dual
    ), parameters AS
            /* Creating a single row of input values that can be used multiple times */
            SELECT TO_DATE(:job_start_date,'MM/DD/YYYY HH24:MI')             AS job_start_date
                 , TRUNC(TO_DATE(:job_start_date,'MM/DD/YYYY HH24:MI'),'IW') AS beginning_of_week
                 , NVL(:days,0)
                 + NVL(:hours,0)/24
                 + NVL(:minutes,0)/(60*24)                                   AS job_length
            FROM   dual
    ), holidays AS
            SELECT TO_DATE('01/01/2011','MM/DD/YYYY') AS dt FROM DUAL
    ), date_range AS
            /* Trying to generate a date range that should encompass the maximum date it would take
             * to complete the task. Rough estimate is number of 8 hour work days plus a padding of 10 days.
             * You may want to adjust this to something more suitable for your business or set it to an artificially
             * high value. Be aware of possible performance implicications the higher you set it.
            SELECT TRUNC(job_start_date) + (ROWNUM - 1) AS dts
            FROM   parameters
            CONNECT BY ROWNUM <= TRUNC(job_length*24/8) + 10
    ), schedule_as_dates AS
            SELECT sowo.id
                 , sowo.day_of_week
                 , dara.dts
                 , holi.dt
                 , CASE
                        /* Only perform the effective hours when the day is not a holiday
                        * and it matches a date in the date range. Otherwise set effective hours to midnight
                        * making the running sum below zero.
                      WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR1/(60*24)
                       ELSE dara.dts
                   END                                    AS start1
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR2/(60*24)
                       ELSE dara.dts
                   END                                    AS end1
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR3/(60*24)
                       ELSE dara.dts
                   END                                    AS start2
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR4/(60*24)
                       ELSE dara.dts
                   END                                    AS end2
            FROM      date_range       dara
            LEFT JOIN schedule_of_work sowo PARTITION BY (sowo.id) ON sowo.day_of_week = TO_CHAR(dara.dts,'FMDay','NLS_DATE_LANGUAGE=English')
            LEFT JOIN holidays         holi                        ON holi.dt          = dara.dts
    SELECT
           CASE
           /* This means that we need to go into the second shift (start2-end2) to calculate the end date */
           WHEN  work_remaining > end1 - start1
           THEN  start2 + work_remaining - ( end1 - start1 )
           /* This means we can complete the work in the first shift */
           WHEN  work_remaining < end1 - start1
           THEN  start1 + work_remaining
           END   AS finish_time
    FROM
            SELECT b.*
                 /* Determine how much work is remaining from the previous days value */
                 , job_length - prev_work_time                               AS work_remaining
                 /* Calculate the smallest delta value to pick the right day of the week
                    to calculate the end date
                 , ROW_NUMBER() OVER (partition by B.ID ORDER BY DELTA desc) AS RN
            FROM
                    SELECT a.*
                         /* This computation is used to determine which day of the week we need to use
                            to determine the end date of the task
                         , job_length - effective_work_time AS delta
                         /* retrieve the previous effective_work_time. This will be used above */
                         , LAG(effective_work_time) OVER (PARTITION BY ID order by start1) AS prev_work_time
                    FROM
                            SELECT job_start_date
                                 , job_length
                                 , id
                                 , day_of_week
                                 , start1
                                 , end1
                                 , start2
                                 , end2
                                  /* Compute the amount of time an employee can work in any given day. Then take a running total of this */
                                 , SUM
                                     CASE
                                         /* When the job_start_date is the same day as the first eligible work day we need to diskount (spam filter misspelled on purpose the
                                          * effective work hours because the job could start in the middle of the day.
                                         WHEN TRUNC(job_start_date) = TRUNC(start1)
                                         THEN
                                              CASE
                                                   WHEN job_start_date BETWEEN start1 AND end1
                                                   THEN (end1 - job_start_date) + (end2 - start2)
                                                   WHEN job_start_date BETWEEN start2 AND end2
                                                   THEN (end2 - job_start_date)
                                                   WHEN job_start_date < start1
                                                   THEN (end2 - start2) + (end1 - start1)
                                                   WHEN job_start_date > end2
                                                   THEN 0
                                              END
                                         ELSE (end2 - start2) + (end1 - start1)
                                     END
                                 ) OVER (PARTITION BY ID order by start1) AS effective_work_time
                            FROM       schedule_as_dates
                            CROSS JOIN parameters
                    ) a
            ) b
            /* Only interested in delta less than zero because the positive deltas indicate more work needs to be done. */
            WHERE delta < 0
    WHERE RN = 1I got slightly different results then you. My query got me 1/24/2011 at 13:12. I double checked the math and I think that's right.
    Hopefully this works out for you. My apologies for any mistakes.
    EDIT
    Query is fully posted now.

  • How to make the 'Finish Date' field Editable in Project server 2013

    Hi All,
    In Project server 2013 on premises deployment, When I try to create a new enterprise project [Also in case of new custom project type], Only the 'Start Date' field is available. The 'Finish Date' field is by default taking the value of the 'start Date' itself.
    I am unable to make this 'Finish Date' field editable.
    Any pointers on this would be very helpful,
    Thanks
    Shanky

    Shanky --
    When you create a new project in either Microsoft Project Professional or Project Online, the system does not allow you to enter both a Start date and a Finish date for the project.  Here is how the software works:
    You enter the Start date of the project.
    You completely plan the project with tasks, task dependencies, task Durations, and assigning resources to tasks.
    Based on the Start date you provide, plus all of the task information, the software calculates the Finish date of the project for you.  So, you cannot provide both the Start date and the Finish date, nor is they any way to force the system to allow
    you to do this.  Hope this helps.
    Dale A. Howard [MVP]

  • IPhone 4 Calendar Holiday Dates are Wrong

    I just purchased an IPhone 4, and I notice that the holiday dates in my calendar are all incorrect. A search of the net has provided no solution. Help?
    Additionally, my OS is 4.3.3, which is not available for selection on the dropdown menu.
    I'm not very good at this, so I'll probably need some extra guidance in fixing the problem.

    I see.  I synched with my MS Outlook on my PC.  The holiday dates are correct in that calendar; also, all my other calendar dates (appointments, etc.) are on the correct days.  Should I try turning off the holidays on my Outlook calendar and re-synching?

  • How could I change the Invoice date automatically in MIRO?

    Of course, I can change it manually. But the user want to calculate the due date in their own way---we have a special way to calculate the due date. So, I am looking for User-exit where I can write ABAP codes to recalculate the invoice date and cover the default invoice date, so the system can get the right due date by calculate the invoice date in the standard way.
    Did anyone have any experience in change the invoice date??Pls tell me. THKS!

    You can use the badi MRM_HEADER_DEFAULT.
    (See in transaction SE18)

  • Can the material date of manufacture be captured

    HI
    currently, the date on SAP is the date we capture the receipt against the PO for a raw material,my  question is  related to using another field so that you can capture the manufacturing date and run a report to track the dates of stock on hand.
    this is for raw materials procured externally for which i want to track the manufacturing dates and want to run a report to see what is on stock.
    regards,
    moumita
    Edited by: MOUMITASARKAR on Sep 9, 2011 2:24 PM

    Hi,
    Inorder to capture Date of Manufacturing you dont have any standard by SAP to have a tab in PO,
    But it can be achieved while taking GR of a material.To get this you need to follow few steps.
    Firstly create a material with *Batch management active and Min. Rem. Shelf Life and Total shelf life
    Now create a Class in CL02 and assign the standard characteristic LOBM_VFDAT which calculates the Expiration date, shelf life
    And asign this above created class in classification view of your material
    Now if you create a PO after all above settings and do GR then while doing MIGO you can see Date of Manufacture in Batch tab.
    Here you can give the manufacturing date of the material so that system will calculate the shelf life expiry date by itself with the sort rule which has to be created in Tcode CU70.
    In creation of sortrule in CU70 you can define whether you want FIFO or LIFO of isuing the material.
    Thanks.

  • Calculate the Difference Between two dates excluding weekends and Holidays

    Hi,
    We need to calculate the difference between the two dates by excluding the Local public holidays (It is global and varies across countries) and weekends should not be included in calculation for a business day in OBIEE.
    We have two dates: Open date and close date when ever close date is null we are calculating age based on taking the current timestamp and need to exclude the weekends and Holidays when ever the close date is null.
    Ex:
    Col1 col2 Total
    11/9/2010 2:46:38 PM Null 13
    11/2/2010 8:06:26 PM 11/3/2010 5:37:03 PM 1
    (In the Total we shouldn't include the weekends,holidays)
    Please let me know how to calculate the difference between two dates by excluding the weekends and holidays.
    Thanks
    Edited by: user10441472 on Nov 22, 2010 3:14 PM

    You already asked this question and I answered it...
    Re: calculation of Business day in OBIEE

  • Problem to calculate the coherence (using NetworkFunction-VI) with only 1 row of data for each, the stimulus and response input

    Hello,
    I am trying to calculate the coherence of a stimulus and response
    signal using the Network Functions (avg) VI's. The problem is that I
    always get a coherence of "1" at all frequencies. This problem is
    already known (see KnowledgeBase document: Why is the Network Functions (avg) VI's Coherence Function Output "1"?).
    My trouble is that the described solution (-> the stimulus and response input matrices need to have at least two rows to get non-unity coherence values) doesn't help me much, because I only have one array of stimulus data and one array of response values.
    Thus, how can I fullfil the 'coherence-criteria' to input at least two rows of data each when I just have one row of data each?
    Any hint or idea is very much appreciated. Thanks!
    Horst

    With this weird board layout, I'm not sure whether you were asking me, but, on the assumption that you were, here goes:
    I found no need to use the cross-power spectrum and power spectrum blocks
    1... I was looking for speed.
    2... I already had the component spectral data there, for other purposes. From that, it's nothing but addition and multiplication.
    3... The "easy" VIs, assume a time wave input, as I recall. Which means they would take the same spectrum of the same timewave several times, where I only do it once.
    I have attached PNGs of my code.
    The PROCESS CHANNEL vi accepts the time wave and:
    1... Removes DC value.
    2... Integrates (optional, used for certain sensors).
    3... Windows (Hanning, etc. - optional)
    4... Finds spectrum.
    5... Removes spectral mirrors.
    6... Scales into Eng. units.
    7... From there, you COULD use COMPLEX-TO-POLAR, but I don't care about the phase data, and I need the MAG^2 data anyway, so I rolled my own COMPLEX-TO-MAG code.
    The above is done on each channel. The PROCESS DATA vi calls the above with data for each channel. The 1st channel in the list is required to be the reference (stimulus) channel.
    After looping over each channel, we have the Sxx, Syy, and Sxy terms. This code contains some averaging and peak-picking stuff that's not relevant.
    From there, it's straightforward to ger XFER = Sxy/Sxx and COHERENCE = |Sxy|^2 / (Sxx * Syy)
    Note that it uses the MAGNITUDE SQUARED of Sxy. Again, if you use the "easy" stuff, it will do a square-root operation that you just have to reverse - it is obtained faster by the sum of the squares of the real and imag parts.
    Hope this helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    ProcessChannel.png ‏25 KB

  • Calculate the working days having the start and end dates only

    Hi,
    Can BIP be able to calculate the working days having the start and end dates only? It is like the NETWORKDAYS function in Excel. (i.e. excluding weekends and holidays).
    Thanks.

    Not out of the box.
    But You could extend your BIP functions
    Look at here:
    http://blogs.oracle.com/xmlpublisher/2009/05/bip_by_extension.html
    Based on that what you need is similar to the following Java code:
    http://objectlabkit.sourceforge.net/
    regards
    Jorge A.

  • How to calculate the total of absences? How to collect data from a specific line of a table?

    Hi,
    Again, I made a nice coloured picture from a screen capture which summarise the improvements that I would like to make in my form,
    Situation:
    For an educational purpose, I made this form   to simplify the way of recording the data and also to develope the independence of the students.
    ( I am doing this on a voluntary basis, working extra hours on my free time but I don't really mind because I am learning a lot of things in the same time)
    After being tested by the teacher, the student has to record the short date, the lines memorised, his grade, number of mistakes, and his attendance.
    I created everything in Word, then converted the file in PDF, then I created all the different fields with Adobe acrobat.
    There is in total 4 sheets, there are all similar except the first one in which there is a box with: date started, date finished, total time spent, absences.
    Below this box there is a table with 16 lines from (A to P) and 7 columns (Days, Date, From.. to.. , Grade, No. lines memorised, No. Errors, Attendance) ( so this table is present on all the sheets)
    Due to the fact that some students need more time than others, and also beacause some text need more time, I estimated a need of 4 sheets at the very most.
    I would like to make the following amelioration and automate the inputting of some of the data because I know that some of the students will certainly forget, so to avoid this scenario I am trying to make this form the easiest possible.
    screen capture of the form:
    screen capture of the form editing, you can see the names of the different fields:
    here is the form (only the first page) : http://cjoint.com/12fe/BBotMMgfYIy_memorisation_sheet_sample.pdf
    In  yellow 00000:
    At present, the students has to input the total of absences manually, is there a way ( script) to automate this by initialising the field next to "Absences" at  " 0 day"   and then everytime that Absent is selected from the COMBO BOX, it add 1 and it is displayed like this:  " 1 day" then " 2 days"  then " 3 days" etc … (so from what I read I have to initialise a counter a the beginning and then for (i...   ) count= count++; something like this...
    Furthermore, I need a solution to overcome the possibility that a second sheet may be needed for the same student; therefore I would need the data from the "attendance column" from the second sheet ( and perhaps the 3rd and 4th aswell) to be added on the "absences field" in the first sheet
    My idea: everytime that the short date is inputted in the first line (next to A) in the "Date" column of one of the 4 sheets then we check the 16 Combo box of the attendance column in this sheet instead to check 16*4=64 fields fot the 4 sheets in one go?
    but I don't know at all how to write it in Javascript. Or perhaps there is a way more easier than that?
    Shall I allocate a value for Absent on the “ export value”?
    In purple
    At present I wrote a simple script which matches the number of lines to the poem selected (Eg.  if I select the poem V.Hugo,  the number "36" will appear next to Number of lines).
    Again I would like the make the life of the students very easy so I would like a script which detects this number “36” on the "From .. to …" column,  as soon it is detected (on the first sheet or 2nd or 3rd or 4th)  check from the same line if "A / Pass" or "B / Pass" have been selected in the "Grade" column ,if yes the short date inputted on this line will be written on the field next to "Date finished" .
    this is a simple example with 36 lines only but somethimes, the students may have to memorise 80 lines and more, this is the reason for having 4 sheets in total.
    So basically I would like to automate the field next to" Date finished:" with a script that collect the short date from the day in which the student has finished his memorisation with "A / Pass" or "B / Pass"
    As for the "Total time spent" George Johnson helped me with a script that calculate the difference betwen date started and date finished (thank you)
    I am sollicting your help, because after trying for hours I was really confused with the different if/else needed. And in top of that, it’s my first experience with Javascript.
    I anticipate your assistance, thanking you in advance.

    I found this for counting the absences, its give you the total that's perfect, but is there a better methode which avoid me to write all the fields name, more simple????
    ( I found the idea here : Re: Total number added automatically  )
    // custom calculation script for field "Total #"
    function CountFields(aFields) {
    var nFields = 0;
    for(i = 0; i < aFields.length; i++) {
    try {
    // count null values, export value of Absence is 0;
    if(this.getField(aFields[i]).value == "0") nFields++;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to count
    var aNames = new Array("Sheet1AttendanceA","Sheet1AttendanceB","Sheet1AttendanceC","Sheet1AttendanceD","Sh eet1AttendanceE","Sheet1AttendanceF",
    "Sheet1AttendanceG","Sheet1AttendanceH","Sheet1AttendanceI","Sheet1AttendanceJ","Sheet1Att endanceK","Sheet1AttendanceL",
    "Sheet1AttendanceM","Sheet1AttendanceN","Sheet1AttendanceO","Sheet1AttendanceP" );
    // count the non-null fields;
    event.value = CountFields(aNames);
    As for the 2nd question, I've tried to do something similar to the previous script, but of course it doesn't work, but I am quite sure that the idea is similar:
    I don't know also how to add the other condition: the student should get A / Pass or B / Pass in order to consider he has finished??? and also how to check these condition from page 2, 3 and 4 and collect the date
    function Datefinished(bFields) {
    d2.value = nFields[i].value;
    for(i = 0; i < aFields.length; i++) {
    try {
    if(this.getField(aFields[i]).value == this.getField("NumberLines").value) d2.value = nFields[i].value;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to check
    var aNames = new Array("Texte00","Texte54","Texte56","Texte58","Texte60","Texte62","Texte64","Texte66","Te xte68","Texte70","Texte72","Texte74","Texte76","Texte78","Texte80","Texte82");
    var bNames = new Array("d1","d3","d4","d5","d6","d7","d8","d9","d10","d11","d12","d13","d14 ","d15","d16","d17");   // d1 is included because in some cases a student can finish in 1 day (short text);

  • How to calculate the volume of data used (PI licensing limit).

    Hi,
    One of our customers has several interfases running on SAP PI. They have a license that allows them the use of PI for a quantity of Gb in message data per month (I think that's the usual way).
    They would like to know how near/far they are of their limint of data, so they would like to know how does SAP evaluate that.
    Does  anybody know wich tool(s) are used by SAP to calculate the volume of data spent in one month?. We would like to launch those tools and get this info (so we can evaluate if we can add new interfases or change the periodicity of existing ones within the limits of the current license).
    Thanks in advance for your help.
    Best Regards
    Rafa

    Hi Mark,
    I have a quick question. The links that you provided gives an idea of the way in which the volume is calculated. This is helpful.
    My question is regarding Auditing and Compliance:
    Client has bought SAP PI licence for certain GB of data per month.
    Can this report be generated automatically classified by SAP and Non SAP Systems (PI licence volume constraints are normally for data exchange for non SAP Systems)?
    Also can this data be measured at Adaptor level? How does one monitor data at Adaptor level.
    Thanks And Regards,
    Maloy

Maybe you are looking for

  • ITunes Restore - how long

    How long does it typically take to restore an IPod? I added playlists to my library but kept getting an error message that the disk could not be read from or written to. So I did what was suggested and started a restore. It's been going for about an

  • Is it possible to install ODSI 10.3g as a web application via a WAR or EAR?

    I only know how to install it from the single .exe that installs WebLogic and ODSI in one shot. My customer has an automated process for rolling out WebLogic servers and would like to know if ODSI can be installed from an EAR or WAR. Does anyone here

  • Clarity into IMovie, quicktime, FCP

    Hi there: I've just been handed a PPT which I moved to Keynote. My task is to take the material, add a scripted voice and background music. So I thought the route would be to export the slides to Imovie or FCP. When I exported to Imovie, the text was

  • Flash Template Question

    I'm not that great at Flash, but I am designing a website for a buddy of mine who is a photographer. I downloaded a couple of templates from i-stock for the home page and the galleries. I'm pretty good with Dreamweaver and I assumed once I had edited

  • How to import/paste Illustrator-objects with opacity-effects?

    Hi all! I can't get FW CS4 to import or paste Illustrator objects with opacity-effects such as Multiply? The objects gets flattened and all effects are gone! Please help! TIA! /H