FM for updatting multiple calendar special rules.

Hello
i have requirement to create special rules for Factory  multiple Calendar's.
could you please provide any FM or BAPI that can be used to update the special rules.
i found one FM FACTORYCAL_WRITE_DOCUMENT, but here we can update only one Calendar at once.
i tried to update form the BDC using transaction SCAL, here the issues is that to update multiple calendars we have to do from the begining for each calendar.
thanks for your feed back on this.

Hi,
naidu c wrote:
> i found one FM FACTORYCAL_WRITE_DOCUMENT, but here we can update only one Calendar at once.
>
> i tried to update form the BDC using transaction SCAL, here the issues is that to update multiple calendars we have to do from the begining for each calendar.
What is the issue with calling the FM or executing the BDC, several times?
Sandra

Similar Messages

  • Factory calendar - Special rules need to be deleted

    Hi,
    I've created several "special rules" in a specific factory calender 6 months ago, that specified closing days for our plant.
    Due to market changes, these previously closing days have to be active working days again; subsequently, I deleted these off days (special rules) in our test system and had it transported into the productive system.
    Although the transport did go through technically, the special rules have not been deleted.
    Does anyone have experience with that? Can you delete the special rules, or would it have been necessary to just select the tick-box "workday" ?
    Any help is appreciated.
    Thanks!
    André

    Thanks for your reply Klaus,
    to avoid that issue, we schedule the transport of calender changes on the weekend while there is noone on our system. But I will get back to my IT guys here and dicuss that topic.
    For me right now it just seems as if the deletion of the special rules are somehow (well, in fact they are) not recognized. My SAP specialist said, that until now we've never deleted closing days..... but in the current crazy market environment >sigh<
    I will probably re-create the special rules and tick "workday". Hopefully that'll work.
    André

  • Resource configuration for updating multiple tables

    Hi all,
    My aim is to update multiple tables in Sun Identity Manager
    I would like to know what is the resource to be configured for this
    Could any one help me in solving this issue
    Thanks in advance,
    Shalini

    I have used the Scripted JBDC resource as follows;
    go to Resources > Configure Types and select Scripted JDBC > Save
    at Resources, select resource Type Actions > New Resource
    select Scripted JDBC from the drop down, this should start the wizard
    the wizard will guide you with lots of questions.
    The one problem we had is in the Action Scripts (second wizard page). we found the example scripts
    at the webserver root /idm/sample/ScriptedJdbc/SimpleTable/beanshell
    the above scripts had to be modified to the SQL required for the application, but it worked well with the example databases and codes that it is easily understood.
    there are several examples of different table types here... there are lots of options, see the README iles for each type
    hope this helps;
    TG

  • Multiple calendar rules

    In BPM standalone 10g, I can add only one calendar rule to a organization group. But I can add more than one calendar rule to roles. If I add two calendar rule to all roles for the same location (calendar rule A: Sunday and Saturday are non working day. calendar rule B: all days are working days), which one has the priority?
    Thanks.

    Hi,
    naidu c wrote:
    > i found one FM FACTORYCAL_WRITE_DOCUMENT, but here we can update only one Calendar at once.
    >
    > i tried to update form the BDC using transaction SCAL, here the issues is that to update multiple calendars we have to do from the begining for each calendar.
    What is the issue with calling the FM or executing the BDC, several times?
    Sandra

  • Multiple calendars on single palm

    Is there a way to have multiple calendars loaded onto a single palm utilizing corporatetime and a 3rd party utility?
    The situation is an administrative assistant needs to keep track of their own calendar, plus the calendars of two other executives. The assistant would like to have copies of all three calendars on their palm, but separated versions,etc.
    Thanks
    Ken

    Hi, thank you for your post.
    Can you please be more specific when you describe the steps? Outlook 2003 doesn’t have “Settings” or Advanced tap” under calendar. I searched in Help for “Allow Multiple Calendars” and there is nothing in there. I looked all the calendar options, didn’t find anything.
    I did a lot of research and didn’t find anybody that says “it is possible to view multiple calendars on Iphone 3G” You are saying it is possible but your step are not accurate.
    Thanks for any feedback.

  • Update multiple records on one page

    I have a page that displays records based on a varible that
    is selected on
    the previous page.
    So on this page i have displaying 3 columns
    Store # Allowance Total
    They have asked now instead of clicking on each indivual
    record to mark it
    as completed, they would like to just place a check next to
    each one and let
    it update those records for that store....
    Ex.
    Store 20 has a total of 7 records and has an allowance of
    $6000.00 then
    they would place 1 check mark next to that store and hit
    submit and it would
    update all 7 records with a status of completed.
    I have read thru some not all but some of the example links i
    found for
    updating multiple records. But they seem more complex than
    what im trying to
    do. Since this page is populated dynamically how can i code
    it so it
    understands when there is new stores listed and records.
    Is there any links or tutorial that anyone would recommend
    that will explain
    the process for creating this functionality?

    My bad....
    ASP and Access is what im using DWMX
    "bregent" <[email protected]> wrote in
    message
    news:ei5srh$6uv$[email protected]..
    > What scripting model are you using? You may be able to
    find a datagrid for
    > your model which will simplify this for you.

  • Multiple calendars on new phone using exchange

    if you would like multiple calendars on exchange using outlook 2003
    go to calendars
    go to settings
    or to your advanced tab
    check off *allow multiple calendars*
    add your calendar
    rename calendar by right clicking on it
    voila the phone now has as many calendars as you start
    on list you will see a different color dot per each calendar
    on upper left you will see calendars touch it
    all or a list of what you named each one will appear

    Hi, thank you for your post.
    Can you please be more specific when you describe the steps? Outlook 2003 doesn’t have “Settings” or Advanced tap” under calendar. I searched in Help for “Allow Multiple Calendars” and there is nothing in there. I looked all the calendar options, didn’t find anything.
    I did a lot of research and didn’t find anybody that says “it is possible to view multiple calendars on Iphone 3G” You are saying it is possible but your step are not accurate.
    Thanks for any feedback.

  • [10g] Best way to populate and update multiple workday calendars?

    I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
    A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
    Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).
    Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table.
    My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
    Here is some sample data illustrating where I'm at so far:
    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)     
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)     
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );cal_id     - refers to calendars table
    cal_date - the actual calendar date
    cal_year - the actual calendar year for the given calendar date
    work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
    work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
    work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
    work_year - year of the work date
    work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
    I'm working in 10g (XE).
    Edited by: user11033437 on Jul 19, 2011 3:05 PM
    Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??

    Hi,
    Interesting problem!
    I'm not sure exactly what you want, however. Are you looking for a way to answer questions such as "For resource A001, what are the first 6 work days on or after January 4, 2010?" or "How many work days does resource A001 have between January 4 and January 12, 2010?" Post a few examples of the questions you might ask, and the results you would want, given the sample data you posted.
    user11033437 wrote:
    I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
    A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. Is a "resouce group" the same as a "work group"?
    if a resource moves from one resource group to another, do you need to keep track of the historical information? For example, if resource A001 does not havfe its own calendar, and is part of work_group A on Juanuary 1, 2010, but then moves to work_group B on July 1, 2010, will you need to answer questions like "How many work days did A001 have in 2010", where you have to remember that the work_group A calendar apllied during the first half of the year, but the work_group B calendar was in use for the second half?
    What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
    Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).It seems like the simplest thing would be to record only the exceptions to the base calendar. That is, given that the employee normally abides by the "no weekends or holidays" schedule, just enter 5 rows for that particular employee to mark the 5 work days he'll miss in February. If the emplyoee is going to work Saturdays in June (in addition to his regular schedule), then enter one row for each Saturday in June.
    >
    Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table. That depends on exactly what you want. Post a couple opf examples of questions you would want to answer, and the actual answers, given the sample data you post.
    My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
    Here is some sample data illustrating where I'm at so far:
    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)     
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)     
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');
    It looks like all the rows have the same description. if description matters in this problem, wouldn't it be better to illustrate how it matters, by having different descrioptions that appeared in different outputs? On the other hand, if description doesn't play any role in this problem, then why include in the sample data at all?
    I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    What is is cal_id=1? How will it differ from the other three?
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );I suspect there's a simpler way, especially if there's a regular order to day types (e.g., people who get holidays off normally get weekeneds, too).
    Perhaps you could have a table like this, that had one row per day:
    CREATE TABLE  days
    (       a_date      DATE     PRIMARY KEY
    ,     day_type    NUMBER (1)              -- 1=Weekend, 2=Holiday, 3=Other
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-01', 2) /* New Years Day */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-02', 1) /* Saturday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-03', 1) /* Sunday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-04', 3) /* Monday - back to work */;
    ...Another table (I'll call it work_sched) shows what resources work when:
    CREATE TABLE  work_sched
    (       p_key          NUMEBR     PRIMARY KEY     -- Arbitrary Unique ID
    ,     group_id         VARCHAR2 (5)          -- Exactly one of the columns group_id or ...
    ,     resource_id      VARCHAR2 (20)          --     ... resource_id will always be NULL
    ,     a_date              DATE
    ,     works_on     NUMBER (1)          -- works when days.day_type >= this value
    ,     remarks          VARCHAR2 (40)
    );To indicate that work_group 'L' normally works on type 3 days only (that is, weekends or holidays):
    INSERT INTO work_sched (group_id, a_date, works_on) VALUES ('L', NULL, 3);(Let's assume that p_key is populated by a trigger.)
    The NULL in the a_date column indicates that this applies to all days, unless overridden by another row in the work_sched table. Instead of NULL, mabe some impossible date (such as Jan. 1, 1900) would be more convenient to indicate defaults.
    Exceptions to this schedule would be indicated by other rows in work_sched. For example, if '12345' is the employee who's on vacation for a week in February:
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-08', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-09', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-10', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-11', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-12', 4, 'Vacation');And if that same employee works Satudays in June:
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-05', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-12', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-19', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-26', 1, 'Fiscal year-end crunch');When finding the number of work days, we would join work_sched to days using both conditions:
    ON   work_sched.date           = days.a_date
    AND  work_sched.works_on  <= days.day_type
    cal_id     - refers to calendars table
    cal_date - the actual calendar date
    cal_year - the actual calendar year for the given calendar date
    work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
    work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
    work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
    work_year - year of the work date
    work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
    cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)This is a lot of denormalized data. that is, you should be able to easily deduce cal_year from cal_date, but sometimes it is convenient to store denormalized data.
    Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
    I'm working in 10g (XE).
    Edited by: user11033437 on Jul 19, 2011 3:05 PM
    Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??That's what I was thinking, too.
    Post some sample data (if it's not what you've already posted), a couple of sample questions, and the exact answers you want from each question given that sample data.

  • How to stop ical from sending email notifications for updates on my share ical calendar

    Is it possible stop ical from sending email notifications for updates I make on my share ical calendar?
    Mac OSX 10.7.2
    Very annoying for the person I am sharing my calendar with to get an email every time I change something.
    I hope there is a way to stop the emails, but for the updates to still go on their calendar.
    Thanks

    Great idea Lofty! thanks. If the person you are sharing a calendar with is a Yahoo Mail user, you only need to set up one filter (under Options - Mail Options - Filters) and route to Spam folder or a special folder for that purpose.
    Add a filter with the following parameters:
    Sender contains:    "Your First and Last Name" as it appears in the emails they are receiving
    Subject contains:  "Your First Name"
    Email body contains: "iCloud"
    Don't need to match case on anything. 
    So far, only these unwanted emails are being routed to the folder I chose.
    Hope that helps until Apple gets it's act together

  • Garnishment - Special Rule for Non-Exempt Amount

    There is calculation scheme for each special rule for non-exempt amount. For example federal rule for support is 04.  The calculation scheme for this rule has 2 lines with operation multiplication and subtraction; and operand F1 and DN.  Can someone explain to me what each line means and the cumulative effect of both the lines?
    Thanks for your help!!
    BBC

    Hi,
    Line 1 = F1 * DN i.e. Field 1 from infotype (IT0195 field 1 for fed exempt as per table T5UGA config) is multiplied by Disposable Net (wage type /G00) and stores result in R1 (intermediate result field)
    Line 2 = DN - R1 i.e. subtract intermediate result stored from line 1 in R1 field from Disposable Net (/G00 wage type) to output result as minimum limit defined for nonexempt amount.
    You can verify same in UGARN CALC (Garnishment Calculations section) in schema.
    Thanks,
    Ameet

  • Business iCal sending out multiple calendar invites - one calendar and one account, 2 people using it for work

    First question:
    My boss has a Macbook Pro (iPad & iPhone), I have a Dell and iPad.  We use his iCal for our work calendar and my Outlook is logged into his iCal so that I can load appointments & send them out to clients.  He obviously has access to the same calendar so that he can also load appointments.
    We have realised that sometimes the meeting invite, although I only send ONE invite out, will send 6 invites to a person. Here below you will see the icons that appear next to the 6 invites that the person that receives it sees next to the invites. It is therefor 3 types of emails/invites that are each sent out twice to the client.  This is obviously not ideal. Could it be that I must not include my boss in the invites (as it is already his calendar sending out the invites), or what could it be that I am doing wrong?
    Second question:
    How can I ensure that replies (Yes/No/Maybe/Comments) appear in the iCal meeting, as people reply, but those replies I have to copy and paste into the meeting as they do not currently automatically update in the meeting.
    Third question:
    Any suggestions on a better system/method?
    Please help!

    I think I know what can help. I also support Mac users in a mixed environment, and find that being able to access a Windows machine to test settings for my iCal users is very very helpful. If you do not have one, I could also fix this one by adding the user's account to my one Mac that runs Entourage.
    On a PC: set up one of the problem accounts in Outlook, then go to Tools->Options & click on the Delegates tab. Click on a Delegate name (if they all have the same permission level, you can select all), then click the Permissions button. If the delegate have "Editor" permissions, there will be a little checked box that sends the delegate copies of all those meetings. De-select it.
    Lemme know if you want Entourage instructions or if that does it for you.
    The real question, of course, is why are there so many Exchange functions that iCal can't touch. Grrrr....

  • Which calendar app do you use for multiple calendars?

    Hello and Happy New Year! 
    Here's my situation:  I am iPhone5S, iPad2 & MacBookPro13; DH is Droid& Dell and children are iPad Minis & Dell.  Their PCs run Win7 & 8.
    DH & I use Google calendar to organize our schedules.  Now all 3 kids have Minis and I want to allow them to see their appointments and our goings-on for the week on their calendars (we homeschool).
    I see that Apple doesn't allow you to assign one event to multiple calendars.  For instance, DH & I need to know that Boy#3 has bball practice on Tues & Thurs nights but so does said child.  So, ideally, I'd love to assign our main calendar that event AND the "Boys Calendar."  Would even be cool for each kid to have his own calendar but I won't split hairs at this point.
    Here's the rub: I don't want the kids to have access to our main calendar on Google.  DH & I have finally got it down and coordinated and I don't want them screwing it up or seeing our events.  Some of them are private and just between hubs and me, if you know what I mean.    I'd like my kids to open up their calendar and only have appts on it that pertain to them and their week/month.  And I'd like to be able to see it all - even if it means I see duplicate events on a given day which indicate that the event is on two different calendars.  Sort of like the colors of iCal but with the ability for the kids to just see their colors.
    Does anyone use a good app that allows you to pick which calendar to assign an event to, even multiple calendars?  I tried Fantastical but it doesn't let me assign to different calendars. Any.do is a don't for me.
    Would love any feedback on what you've used successfully to organize your family.
    Thanks so much!  I appreciate your kind and considerate feedback.
    Warmly (literally),
    Kim in Phx

    Right? I know. This just seems utterly ridiculous to me in this day and age. Maybe I'm mistaken but I was under the impression that there has to be an app that does this for people. I mean, how hard can this be? I wonder if I just keep my main calendar and invite my kids to their events. I wonder if that will work?  I really don't want to be creating three different calendars copying and pasting events and trying to juggle 4 different calendars.  How cool would it be to have everybody assigned their own calendar and then the master calendar can decide who to assign the events to?  Like in iCal when you go to assign the calendar, instead of having one option, you could have all the calendars as options. I have two boys to do karate together, one boy who does basketball alone, and one boy who does flag football alone.   I'd love to put karate on the schedule and then just assign it to the two calendars of the boys who are taking tae kwon do now.  Create one event and then you decide which calendars to list it on.
    I'll keep looking to see if anything is out there but I'm not sure that it can cross both iOS and PC platforms.
    I really appreciate your info and the time you took.
    Thank you so much,
    Kim

  • Can I have calendar alerts for only one calendar with multiple calendars?

    My wife has multiple calendars on her iPhone (mine and hers), but she would like to receive alerts/notifications only for the items on her calendar. Is this possible? (This seems to be the opposite problem from what this person experienced: http://discussions.apple.com/thread.jspa?messageID=8479193.)
    We sync with Outlook on a PC via iTunes.

    I have the very same problem. In our company, we have shared CalDAV calendars for every employee. I receive and sync those to my Mac and to my iPhone/iPod Touch; on both platforms I only want alerts for my personal appointments, and not to get alerted when my colleagues have a business lunch.
    Interestingly, in iCal on Mac OS X, there is an option "Ignore Alarms" for every single shared calendar, and I can cherry-pick those that I want to get alerted about. This is exactly the behavior I want on the iPhone, too, which regrettably is not possible (yet?).
    The other option would be to forbid alarms in shared calendars for everybody, which is not feasible, too, because people might want to get alarms without having to duplicate the date to some personal calendar first.
    So if anyone has a practical solution to this problem, I'd be happy to hear about it. Thanks!
    --Alex.

  • Update multiple row for different values

    hi,
    Please provide me the sql query to update multiple row in a table with different values.
    i need to change the old date to new date
    we have only 3 column id,name,old date.now i need to update the old date to new date
    ID name old date new date
    1 A 2012-12-20 12/7/2012
    2 B 2012-12-20 12/9/2012
    3 c 2012-12-20 12/5/2012
    thank you.

    Here are two ways to do this. Thanks to ranit for the table creation script, which I adapted.create table test_x
    as
    select 1 id, 'A' name, to_date('2012-12-20','yyyy-mm-dd') old_date
    from dual UNION ALL
    select 2 id, 'B' name, to_date('2012-12-20','yyyy-mm-dd') old_date
    from dual UNION ALL
    SELECT 3 ID, 'C' NAME, TO_DATE('2012-12-20','yyyy-mm-dd') OLD_DATE
    from dual;First method using MERGE:MERGE INTO TEST_X O
    USING (
      select 1 id, to_date('12/7/2012','mm/dd/yyyy') new_date
      from dual UNION ALL
      select 2 id, to_date('12/9/2012','mm/dd/yyyy') new_date
      from dual UNION ALL
      SELECT 3 ID, TO_DATE('12/5/2012','mm/dd/yyyy') NEW_DATE
      FROM DUAL
    ) n
    ON (O.ID = N.ID)
    WHEN MATCHED THEN UPDATE SET OLD_DATE = n.NEW_DATE;Second method using UPDATE:UPDATE TEST_X SET OLD_DATE =
      CASE WHEN ID = 1 THEN TO_DATE('12/7/2012','mm/dd/yyyy')
           WHEN ID = 2 THEN TO_DATE('12/9/2012','mm/dd/yyyy')
           WHEN ID = 3 THEN TO_DATE('12/5/2012','mm/dd/yyyy')
      END
    where id between 1 and 3;
    You probably don't want to use these methods.*
    You say the "user" will enter these values. Will he always enter exactly 3 values?
    The "user" will enter values into a screen I suppose. What language is the user interface programmed in?

  • Multiple Calendar for Customized Infotype

    I want to use multiple calendar use for infotype, 9001. It contains information regarding Visa Expiry and Iqama Expiry dates which are in Hijri Format. Normal calendar is Gorgonian. Is this is possible for infotyple specific fields that we set hijri calendar there if yes than  how, or any other possibilty?

    I forget to mention using 4.6c

Maybe you are looking for

  • How do I get magnification (to the left of the address bar) in the newest version to be saved on various sites, as it did previously?

    In previous versions, I magnified or reduced each site I visited to fill my screen by clicking + or -. When I revisited those sites, I automatically got the magnification I previously chose. Now I must increase or reduce the magnification manually ev

  • Problem in Process chains - Need help

    Dear Experts I have a problem in Process chains I have  ODS1  from which Iu2019m updateing the  ODS2 and ODS3 with same Delta infopackage. The difference between ODS2 and ODS3 is in ODS2 Iu2019m loading with Local Currency And in ODS3 is getting load

  • I do I make all fonts from Windows/Fonts available to CS5 ?

    It used to be that I very rarely used fonts within CS5 but recently I have.  I realized that all of the fonts supposedly included with CS5 are not available via my drop down menu. I then found these fonts in Windows/fonts so I copied all of those fon

  • Collections as function/procedure parameters

    Dear Oracle Gurus, In Oracle documentation i have read that we can use a collection as a parameter in a function or procedure. I created a packaged procedure called collection_test with single parameter whose type is nested table. Bu when i call that

  • "Repair disk" when installing Mountain Lion

    I was just upgrading to Moutain Lion OS X right now when it tells me my disk needs repair. I tried, but it says "Macintosh HD couldn't be verified properly" (might not be exact wording, it's in Norwegian for me). When I click the "repair disk" button