Shift Differential

Gurus,
When time explosion happens, how is the shift differential element supposed to be shown. Is it a separate entry e.g. person gets $1 for working 3rd shift(10pm to 6am). Now would the explosion be like this:
Regular 8 hours
Shift Differential 8 hours
Or is it that the shift differential never shows up as a separate line until it gets into Payroll. Basically I am trying to figure out how many lines are going to be transferred to Payroll.
Secondly, how to do setup on the Element Time Information screen for a shift differential element. I know we have to select Shift Differential as the Earning Category but how do I setup so a $1 differential is paid. In the Premium Type field should I select Fixed Rate per Hour and then put in the $1 in the Premium Amount field? This doesnt seem to work, the rest of the setup IS complete.
Would greatly appreciate if someone can clarify this?

Then check the following:
Is the element definition also defined in the OTL Information Types DFF?
is there a mapping component for the rate input value?
Is the mapping component in the mapping for the retrieval process (BEE)?
Is the Element Time Information defined with an effective date suitable for the element? i.e. if the ETI is effective from 31/01/09, but the element is being used on a timecard for 31/12/08, then it will not be effective.
Regards
Tim

Similar Messages

  • Error in Shift Differential

    Hi Experts,
    I need to change the shift differential functionaity. All the config is done correctly and shift differential is being calculated from A/A type and paid out in payroll.
    But the issue now is, there are some employees which do not get this shift differentials and yet use the same A/A codes. So the time evaluation is generating the wagetype with the number of hours for which the shift differential needs to be paid.
    I am trying to implement following logic for the same:
    1> Enter another wagetype 1349 in IT0008.
    2> If wagtype 1349 = 1 in IT0008 then pay the shift differential = number of hours x $1.
    3> If wagetype 1349 <> 1 then DELETE wage type from OT.
    Well, I am not able to delete the wagetype from OT. Can anybody tell me if its possible?
    Or please suggest another logic which will help me handle payment of shift differential based on another WT 1349 which is entered in IT0008.
    Any Suggestions are appreciated and will be rewarded.

    Guruthilak wrote:
    Michelle...
    Believe me "nobody gets paid here" for solving any problem...
    Its their whole and soul interest whether to answer a question asked or to discard the same.Keeping this in mind if you can solve the problem on your own may be tomorrow you can help some one out and you wont end up repaeting the same mistake that you have done earlier.
    Also it is up to you to take the suggestions given by other fellow  buddies or not to take it.
    Guru
    Message Edited by Guruthilak on 02-24-2010 12:55 PM
    Double dittos to that!
    Years ago one of my old bosses caught me mubling something along the lines "well that's job security" when talking about something I knew but nobody else. So he say me down and explained what I had to do to succeed.
     Ross Beadle to myself:
     Ben, succesful people go through phases in the carrers.
    They start not knowing what they should or could do and they need guidance from the more experienced.
    Latter they learn to do the job with only occational asistance.
    Then they move into phase where they can do it independently and can occationally help others.
    If the keep working they can get to the point where they can do their job AND others depend on them to get things done.
    Unfortunately many people stop at this point thinking they have job security. To truely be valuable they should take the next step and work to train all around them such that the peers can work without assistance thereby freeing themselves to move to the next level.
    So just learning how to do something is just one step along the path. I have followed Ross's advise and it has served me well. I regularly remind my boss that I am trying to work myself into retirement such that my company will not miss me when I retire. My efforts here and elsewhere are for the same reason.
    Sorry for the lecture. Sometimes I just have to get it out.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Premium Earninigs Type in shift differential Policy

    How do I get data in Premium Earninigs Type LOV in shift differential Policy?
    I have defined shift , created a premium eligibility,earnings policy,work plan and rotation plan but its not showing any valuie in  that LOV.

    I have managed to resolve this issue myself and therefore does not require answering. The only reason why I couldn't get this to work was simply because the element I was trying to use wasn't linked to all payrolls, though I managed to fully complete the set up.

  • Shift Differential /Premium Interaction/ Premium Eligibilty Policy

    Hi Everyone,
    I require help in setting up shift differential policy based on following scenario......
    I have created Shift differential policy as shift2pay ----15:30 to 23:30
    shift 3 pay----23:30 to 7:00
    Now I have following elements eleigible fo these shift pays with different PREMIUMS
    Regular ----eleigible for shift 2 pay, shift 3 pay
    Float Holiday--shift 2 pay, shift 3 pay
    Funeral Pay--shift 2 pay, shift 3 pay
    Unscheduled OT Other--- Shift 2 OT, shift 3 OT
    Unscheduled DT Other---Shift 2 DT, Shift 3 DT
    Can you please guide me with the steps on how to build this using these policies and also in element time information...
    Please help me out guyz....i appreciate it.
    Edited by: 11091 on Jan 12, 2011 1:39 PM

    Then check the following:
    Is the element definition also defined in the OTL Information Types DFF?
    is there a mapping component for the rate input value?
    Is the mapping component in the mapping for the retrieval process (BEE)?
    Is the Element Time Information defined with an effective date suitable for the element? i.e. if the ETI is effective from 31/01/09, but the element is being used on a timecard for 31/12/08, then it will not be effective.
    Regards
    Tim

  • OTL Shift Differential setup for Overtime

    Hi
    I am new to OTLR. I am finding it difficult to setup different overtime rules with different policies.
    Scenario1:
    Type: Daily               Element: DO-Overtime 1.5     Number of Hours: 0 -12
    Type: Daily               Element: DO-Doubletime 2.0     Number of Hours: >12 and <= 24
    Senario2:
    Type: Daily               Element: OT-1.2          Number of hours: 0           <= 24
    Type: Holiday          Element: OT-2.2     Number of hours:           <= 24
    Labor A is called to work on a day when which is not his regular day of work. Scenario1 is implemented.
    Labor B is called on July 3rd to work on July 4(Holiday). Since he is called with less than a day notice hence Senario2 is implement.
    Can this be implemented using Oracle standard Functionality - Shift differential and defining Respective Elements.
    Any Help or guidance would be great.
    PS

    I have managed to resolve this issue myself and therefore does not require answering. The only reason why I couldn't get this to work was simply because the element I was trying to use wasn't linked to all payrolls, though I managed to fully complete the set up.

  • Shift and Shift Differential Setup Logic

    I am trying to understand the relationship with how shifts/shift differential policies/premiums work to together. I have been reading the user guides to try and setup my desired reqiurement, but am stuck so looking for help.
    The scenario I have is this:
    Shift from 7am - 3:30pm. Any hours worked outside this schedule are to be applied against a different pay code. I also need these hours to count towards overtime.
    All hours will go against the "Regular Hours" pay code and all employees have a weekly overtime earning policy of 40 hours.
    I tried setting up a shift with the above start/stop time and then created a workplan and linked that shift schedule. I also setup a new element for the shift diff override option because based on what I read it seemed like any hours outside that shift plan would be applied against that override element on the workplan. When I setup the element time information, all I filled out was the earning category of Shift Diff. I then created a rotation plan with just the one workplan and assigned it to the employee.
    When I entered time for the employee via the TK screen of 0600 - 1600 and ran the transfer process, all hours went against the REG pay code and nothing slip up. I'm sure it has something to do with my setups, but I'm stuck on where to go from here. Any help would be great! Thanks.
    Edited by: user12005697 on Sep 9, 2010 11:35 AM
    Edited by: user12005697 on Sep 9, 2010 12:25 PM

    user12005697,
    You need to create a shift diff policy and also setup a premium eligibility policy.
    --Shiv                                                                                                                                                                                                                               

  • OTL - Shift Premiums for multiple Regular Premium Elements

    Hi
    We have configured Shift Differential policy such that if employee works between 6.00 am - 8.00, he should recieve "Shift Premium". We have 2 Elements (Say Reg1 and Reg2) configured as Regular Earnings. In Earnings Policy (Type -Daily Overtime Earning Rule), Reg 1 is specified as Daily Earning Rule.
    I have defined PRemium Eligiblity Policy with Reg1 and Reg2 as Base Hours Type and "shift Premium" as Authrorized Premium. In Time card if Time is entered against Reg1 (Start Time and Stop Time incudes 6.00 am to 8.00), he recieves Shift PRemium. However if he enters time against Reg2 (Start Time and Stop Time incudes 6.00 am to 8.00), he does not recieve "Shift Premium", but we expect employee should recieve "Shift Premium", since he worked during the Morning hours.
    Can you please suggest how can I achieve this.
    Thanks,
    Sharath

    Did you attach shfit prem to Reg1 and Reg2 separately?
    meaning in the base hours type you need to select Reg1 and attach shift prem and also you need to select Reg2 again and attach shift prem again.

  • Shift Differentials on PTOs

    Team,
    Requirement is to pay shift differentials on PTO days! I tried using the Premium Eligibility form and obviously the shift differential is already setup but it aint working. When I put in say Jury Duty, its not getting exploded to Jury Duty 8 and Shift Pay 2 8.
    Does anyone know if this is even offered in OTL?
    Would appreciate any input on this...

    The Premium Eligibilty only defines 'eligibility', it doesn't mean you actually get that premium. To get it, you must satisfy the rules, i.e. you must work during the period of the shift differential.
    If the person is on holiday then OTLR is probably not considering this as a 'worked' period.
    Your holiday earning is probably defined as 8b hours and doesn't imply WHEN they are earned during the day. Tehrefore, the shift differnetial isn't being triggered.
    Before I comment any more, can you please clarify that my understamnding of your setup is correct?
    Regards
    Tim

  • OTL - Special Shift Premium

    Hi,
    I am trying to setup OTL. We do have a requirement to associate a special premium for particular shifts. I will not be able to use shift differential policy since it is not identified for particular time periods. For e.g. I need to pay an additional 15% premium on the base rate for all shifts that start between 4 AM and 7 AM. How will I set this up on the system, so that when I capture time against 'Normal Hours' it should automatically explode into this premium. Can something be done on the Work Plan level ?
    Thanks,
    Febin

    Hi All,
    Can anybody help me by giving information about the sources for the fileds Jobs/OSN/RSN and the Activity fileds in the Details screen of OTL timekeeper Time entry form and how to map it to HXC tables???
    It is an urgent reuirement for a timecard deatils report...Any help at the earliest is appreciated..
    Thanks in advance,
    Anitha

  • Differential - add to Job Code?

    We have a newly created position where I need to figure a way to add shift differential ($0.50 per hour) to a job code. Ideally, I would like to add the differential hourly amoutn to a job code, then the regular & OT hours to multiply by this differential on the paylines per week. This may not be possible, but if anyone can offer assistance, I would greatly appreciate it!

    What version of PeopleSoft HRMS are you using, and are you using Global Payroll or Payroll for North America?
    Normally you would setup shifts in the shift table and connect them to earnings codes. The documentation for your Payroll product has the details.
    Regards,
    Bob

  • OTL: Rate Changes

    Folks,
    I have a requirement in HR/OTL where in our HR reps at different plants would like to change pay rates, shift differentials, premiums from HR since they will have access to those screens. Issue is Oracle Projects is being used and obviously rates and hours will go to Projects from OTL. Client outsources Payroll.
    According to my understanding, from the Element Information Screen you can change double time, over-time rates from this screen.
    Anyone has done this before? Any ideas greatly appreciated.

    Thanks for replying Ramsys.
    HR reps want to be able to enter shift differential rate and premium rates if any for each employee along with the base rate from HR screens. And Payroll will be run by a 3rd party.
    The solution I had was to enable a descriptive flexfiled in HR and let them add these items there. This will handle their requirement and would also cover the Payroll side but the issue is on the Projects side. Since Projects is taking hours and rates from OTL, how can we configure Projects so it takes rates from HR instead of OTL? Any ideas appreciated.

  • OTL Overtime Implementation

    Dear All,
    We need to implement overtime. What is the best way to achieve this in OTL.
    Should we define the Overtime Hour type and employee should enter the overtime separately using this hour type. And overtime payment will be given as per the rule to this overtime.
    OR
    We will use the shift differential policy for separating extra hour worked and treat them as Overtime. And overtime payment will be done to this hours entered.
    Many many thanks in advance.

    OTL provides the facility to calculate OT based on your setup, hence always use that. If you allow users to manually enter OT, then someone will have to manually verify all the timecards for OT calculation, that beats the purpose of automation.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How tune the following query?

    Dear Experts,
    I am very much new to SQL tuning . Here i have shown my and explain plan
    SELECT ei.ROWID row_id, 'PROJECT' search_criteria, ei.expenditure_item_id,
              SUBSTR (gcc.segment2, 1, 6) ACCOUNT,
              SUBSTR (gcc.segment5, 1, 10) local_account,
              SUBSTR (gcc.segment1, 1, 3) le, SUBSTR (gcc.segment3, 1, 5) pu,
              SUBSTR (gcc.segment4, 1, 3) dept, ei.expenditure_id, p.project_id,
              p.segment1 project_number, p.NAME project_name, pt.project_type,
              pt.project_type_class_code, ei.task_id, t.task_number,
              NVL (SUBSTR (t.task_number, 1, INSTR (t.task_number, '*', 1) - 1),
                   t.task_number
                  ) work_stage,
              DECODE (INSTR (t.task_number, '*', 1),
                      0, '',
                      SUBSTR (t.task_number, INSTR (t.task_number, '*', 1) + 1)
                     ) activity_code,
              t.task_name, ei.expenditure_item_date, ei.expenditure_type,
              et.expenditure_category, et.revenue_category_code,
              x.incurred_by_person_id, emp.full_name employee_name,
                                /*DECODE (p.org_id,
                                '103', DECODE (emp.attribute7,
                                               NULL, NULL,
              --                                 'DEN#' || emp.attribute7
                                                 emp.attribute7
                                '107', DECODE (emp.attribute7,
                                               NULL, NULL,
              --                                 'DEN#' || emp.attribute7
                                                 emp.attribute7
                                '2201', DECODE (emp.attribute7,
                                                NULL, NULL,
              --                                 'DEN#' || emp.attribute7
                                                 emp.attribute7
                                emp.employee_number
                               ) employee_number,*/
              DECODE (p.org_id,
                      '103', NVL (DECODE (emp.attribute7,
                                          NULL, NULL,
    --                                 'DEN#' || emp.attribute7
                                          emp.attribute7
                                  emp.employee_number
                      '107', NVL (DECODE (emp.attribute7,
                                          NULL, NULL,
    --                                 'DEN#' || emp.attribute7
                                          emp.attribute7
                                  emp.employee_number
                      '2201', NVL (DECODE (emp.attribute7,
                                           NULL, NULL,
    --                                 'DEN#' || emp.attribute7
                                           emp.attribute7
                                   emp.employee_number
                      emp.employee_number
                     ) employee_number,                  ---- Ghansham 24-Nov-2009
              emp.attribute7 den_number, ei.job_id, j.NAME job_name,
              x.incurred_by_organization_id, ei.override_to_organization_id,
              NVL (ei.override_to_organization_id,
                   x.incurred_by_organization_id
                  ) expenditure_organization_id,
              o1.NAME expenditure_organization_name, ei.non_labor_resource,
              ei.organization_id nlr_organization_id,
              o2.NAME nlr_organization_name, ei.system_linkage_function,
              c.expenditure_comment,
              ei.transaction_source || '' transaction_source,
              ei.orig_transaction_reference, x.expenditure_group,
              x.expenditure_status_code, x.expenditure_ending_date, cdl.quantity,
              et.unit_of_measure,
              (SELECT l2.meaning
                 FROM pa_lookups l2
                WHERE 1 = 1
                  AND l2.lookup_type = 'UNIT'
                  AND l2.lookup_code = et.unit_of_measure
                  AND ROWNUM = 1) unit_of_measure_m,
              DECODE (ei.system_linkage_function,
                      'ST', ei.raw_cost_rate,
                      'OT', ei.raw_cost_rate,
                      ei.raw_cost_rate
                     ) raw_cost_rate,
              ei.cost_distributed_flag, ei.cost_dist_rejection_code,
              ei.labor_cost_multiplier_name,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.burdened_cost,
                      cdl.amount
                     ) burdened_cost,
              DECODE (ei.system_linkage_function,
                      'ST', ei.burden_cost_rate,
                      'OT', ei.burden_cost_rate,
                      ei.burden_cost_rate
                     ) burdened_cost_rate,
              ei.cost_burden_distributed_flag, ei.ind_cost_dist_rejection_code,
              ei.cost_ind_compiled_set_id,
              DECODE (pt.project_type_class_code,
                      'CAPITAL', ei.billable_flag,
                      CAST (NULL AS VARCHAR2 (10))
                     ) capitalizable_flag,
              ei.accrued_revenue, ei.accrual_rate, ei.raw_revenue,
              ei.forecast_revenue,
              SIGN (cdl.amount) * ABS (ei.bill_amount) bill_amount, ei.bill_rate,
              ei.bill_rate_multiplier, ei.adjusted_revenue, ei.adjusted_rate,
              DECODE (pt.project_type_class_code,
                      'CAPITAL', CAST (NULL AS VARCHAR2 (10)),
                      cdl.billable_flag
                     ) billable_flag,
              DECODE (pt.project_type_class_code,
                      'CAPITAL', ei.revenue_distributed_flag,
                      CAST (NULL AS VARCHAR2 (10))
                     ) grouped_cip_flag,
              DECODE (pt.project_type_class_code,
                      'CAPITAL', CAST (NULL AS VARCHAR2 (10)),
                      ei.revenue_distributed_flag
                     ) revenue_distributed_flag,
              ei.bill_hold_flag, ei.rev_dist_rejection_code, ei.bill_job_id,
              ei.bill_job_billing_title, ei.bill_employee_billing_title,
              ei.rev_ind_compiled_set_id, ei.inv_ind_compiled_set_id,
              ei.event_num, ei.event_task_id, ei.adjusted_expenditure_item_id,
              NVL (ei.net_zero_adjustment_flag, 'N') net_zero_adjustment_flag,
              ei.transferred_from_exp_item_id, ei.converted_flag,
              ei.source_expenditure_item_id, ei.last_update_login,
              ei.last_update_date, ei.last_updated_by, ei.creation_date,
              ei.created_by, ei.attribute_category, ei.attribute1, ei.attribute2,
              ei.attribute3, ei.attribute4, ei.attribute5, ei.attribute6,
              ei.attribute7, ei.attribute8, ei.attribute9, ei.attribute10,
              DECODE (ei.org_id,
                      '1131', SUBSTR (ei.attribute8,
                                      (INSTR (ei.attribute8, '[', 1, 5)
                                      ) + 1,
                                      ((  INSTR (ei.attribute8, ']', 1, 5)
                                        - 1
                                        - (INSTR (ei.attribute8, '[', 1, 5))
                      TO_CHAR (CAST (NULL AS VARCHAR2 (10)))
              ei.org_id, ei.org_id expenditure_org_id,
              tr.user_transaction_source || '' user_transaction_source,
              tr.allow_adjustments_flag, cast('' as varchar2(1)) transferred_item_flag,
              cdl.line_num cdl_line_num,
              cdl.transfer_status_code cdl_xfr_status_code,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.amount,
                      (SIGN (cdl.amount) * ABS (ei.raw_cost))
                     ) raw_cost,
              cdl.function_transaction_code cdl_func_txn_code,
              cdl.pa_date + 0 cdl_pa_date, cdl.dr_code_combination_id cdl_dr_ccid,
              cdl.gl_date + 0 cdl_gl_date, cdl.accumulated_flag cdl_accum_flag,
              cdl.reversed_flag cdl_reversed_flag,
              cdl.line_num_reversed cdl_line_num_rev,
              NVL (cdl.system_reference1, 0) cdl_sys_ref1,
              cdl.system_reference2 cdl_sys_ref2,
              cdl.system_reference3 cdl_sys_ref3,
              cdl.cr_code_combination_id cdl_cr_ccid, cdl.line_type cdl_line_type,
              cdl.code_combination_id cdl_ccid, et.attribute8 aorl_flag,
              (SELECT hp.party_name
                 FROM pa_project_customers ppc,
                      hz_cust_accounts hca,
                      hz_parties hp
                WHERE ppc.project_id = p.project_id
                  AND ppc.customer_bill_split = 100
                  AND hca.cust_account_id = ppc.customer_id
                  AND hp.party_id = hca.party_id
                  AND ROWNUM = 1) client,
              (SELECT hca.account_number
                 FROM pa_project_customers ppc,
                      hz_cust_accounts hca
                WHERE ppc.project_id = p.project_id
                  AND ppc.customer_bill_split = 100
                  AND hca.cust_account_id = ppc.customer_id
                  AND ROWNUM = 1) client_number,
              ei.project_id event_project_id,
              SUBSTR (ei.attribute2, 7, 4) office_site,
              SUBSTR (ei.attribute2, 11, 3) hovensa_mrn,
              SUBSTR (ei.attribute2, 14, 4) hovensa_crew,
              SUBSTR (ei.attribute2, 18, 2) hovensa_craft,
              SUBSTR (ei.attribute2, 20, 2) hovensa_class,
              SUBSTR (ei.attribute2, 1, 1) hovensa_shift,
              SUBSTR (emp.attribute6, 3, 8) hovensa_badge_number,
              SUBSTR (emp.attribute6, 1, 2) hovensa_frequency,
              pa_expenditures_utils.getorgtlname (ei.org_id) prvdr_org_name,
              pa_expenditures_utils.getorgtlname (ei.recvr_org_id) recvr_org_name,
              ei.receipt_currency_code, ei.receipt_exchange_rate,
              ei.receipt_currency_amount, ei.denom_currency_code,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.denom_raw_cost,
                      (SIGN (cdl.amount) * ABS (ei.denom_raw_cost)
                     ) denom_raw_cost,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.burdened_cost,
                      (SIGN (cdl.amount) * ABS (ei.denom_burdened_cost)
                     ) denom_burdened_cost,
              ei.acct_exchange_rounding_limit, ei.acct_currency_code,
              ei.acct_rate_type, ei.acct_rate_date, ei.acct_exchange_rate,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.acct_raw_cost,
                      (SIGN (cdl.amount) * ABS (ei.acct_raw_cost)
                     ) acct_raw_cost,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.burdened_cost,
                      (SIGN (cdl.amount) * ABS (ei.acct_burdened_cost)
                     ) acct_burdened_cost,
              ei.project_currency_code, ei.project_rate_type,
              ei.project_rate_date, ei.project_exchange_rate,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.project_raw_cost,
                      (SIGN (cdl.amount) * ABS (ei.project_raw_cost)
                     ) project_raw_cost,
              DECODE (ei.system_linkage_function,
                      'VI', cdl.burdened_cost,
                      (SIGN (cdl.amount) * ABS (ei.project_burdened_cost)
                     ) project_burdened_cost,
              ei.cc_prvdr_organization_id, ei.cc_recvr_organization_id,
              pa_expenditures_utils.getorgtlname
                          (ei.cc_prvdr_organization_id)
                                                       cc_prvdr_organization_name,
              pa_expenditures_utils.getorgtlname
                          (ei.cc_recvr_organization_id)
                                                       cc_recvr_organization_name,
              cc_cross_charge_code, cc_cross_charge_type, cc_rejection_code,
              jeg_get_lookup ('CC_CROSS_CHARGE_CODE',
                              cc_cross_charge_code
                             ) cc_cross_charge_code_m,
              jeg_get_lookup ('CC_CROSS_CHARGE_TYPE',
                              cc_cross_charge_type
                             ) cc_cross_charge_type_m,
              jeg_get_lookup ('CC_REJECTION_CODE',
                              cc_rejection_code
                             ) cc_rejection_code_m,
              fnd_profile.VALUE ('GL_SET_OF_BKS_ID') set_of_books_id,
              (SELECT ass_attribute3
                 FROM per_all_assignments_f paa
                WHERE paa.person_id = emp.person_id
                  AND ei.expenditure_item_date BETWEEN effective_start_date
                                                   AND effective_end_date
                  AND ROWNUM = 1) jeg_assigned_pu,
              (SELECT    SUBSTR (SUBSTR (ei.attribute8,
                                         1,
                                         INSTR (ei.attribute8, '~', 1) - 1
                                 c1.l_from1,
                                 (c1.l_to1 - c1.l_from1) + 1
                      || ','
                      || SUBSTR (SUBSTR (ei.attribute8,
                                         1,
                                         INSTR (ei.attribute8, '~', 1) - 1
                                 c1.l_from2,
                                 (c1.l_to2 - c1.l_from2) + 1
                      || ','
                      || SUBSTR (SUBSTR (ei.attribute8,
                                         1,
                                         INSTR (ei.attribute8, '~', 1) - 1
                                 c1.l_from3,
                                 (c1.l_to3 - c1.l_from3) + 1
                      || ','
                      || SUBSTR (SUBSTR (ei.attribute8,
                                         1,
                                         INSTR (ei.attribute8, '~', 1) - 1
                                 c1.l_from4,
                                 (c1.l_to4 - c1.l_from4) + 1
                 FROM jeg_proj_mask_map c1
                WHERE p.org_id = 3225                                     -- CA OU
                  AND c1.project_id = p.project_id
                  AND ei.expenditure_item_date BETWEEN c1.start_date
                                                   AND NVL (c1.end_date, SYSDATE)
                  AND ROWNUM = 1) jeg_exp_mask,
              DECODE (UPPER (SUBSTR (ei.expenditure_type, 1, 11)),
                      'JOB SHOPPER', UPPER (SUBSTR (emp.last_name, 1, 4)),
                      DECODE (UPPER (SUBSTR (ei.expenditure_type, 1, 21)),
                              'SHIFT DIFFERENTIAL JS', UPPER
                                                           (SUBSTR (emp.last_name,
                                                                    1,
                                                                    4
                                 INITCAP (SUBSTR (emp.last_name, 1, 2))
                              || SUBSTR (emp.first_name, 1, 1)
                     ) mailstop,
              jeg_get_ar_inv (p.project_id, ei.expenditure_item_id) ar_inv_num,
              ---- Ghansham 21-JUL-2008 added foe GCC
              jeg_check_service_centre_cc (ei.expenditure_item_id) service_center,
              ---- Ghansham 21-JUL-2008 added foe GCC
              ei.acct_transfer_price       ---- Ghansham 21-JUL-2008 added foe GCC
         FROM pa_projects_all p,
              pa_cost_distribution_lines_all cdl,
              pa_expenditure_items_all ei,
              pa_tasks t,
              pa_project_types_all pt,
              pa_expenditures_all x,
              hr_all_organization_units o1,
              hr_all_organization_units o2,
              per_jobs j,
              pa_expenditure_types et,
              gl_code_combinations gcc,
              pa_expenditure_comments c,
              pa_transaction_sources tr,
              per_all_people_f emp
        WHERE 1 = 1
          AND cdl.project_id = p.project_id
          AND ei.expenditure_item_id = cdl.expenditure_item_id
    --AND    ei.expenditure_item_date BETWEEN TO_DATE('01-DEC-2007') AND TO_DATE('14-DEC-2007')
          AND cdl.line_type || '' =
                               DECODE (ei.system_linkage_function,
                                       'VI', 'R',
                                       'D'
          AND (   ei.cc_cross_charge_type || '' = 'IC'
               OR ei.org_id = fnd_profile.VALUE ('ORG_ID')
          AND t.task_id = ei.task_id
          AND pt.project_type = p.project_type
          AND pt.org_id = p.org_id
          AND x.expenditure_id = ei.expenditure_id
          AND o1.organization_id =
                 NVL (ei.override_to_organization_id,
                      x.incurred_by_organization_id
          AND ei.organization_id = o2.organization_id(+)
          AND ei.job_id = j.job_id(+)
          AND ei.expenditure_type = et.expenditure_type
          AND et.unit_of_measure IN
                              ('DOLLARS', 'HOURS', 'MILEAGE', 'Plots', 'Samples')
          AND gcc.code_combination_id = cdl.dr_code_combination_id
          AND ei.expenditure_item_id = c.expenditure_item_id(+)
          AND ei.transaction_source = tr.transaction_source(+)
          AND x.incurred_by_person_id = emp.person_id(+)
          AND TRUNC (SYSDATE) BETWEEN emp.effective_start_date(+) AND emp.effective_end_date(+)
          AND emp.employee_number(+) IS NOT NULL;
    Explain Plan :
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=21685820 Card=447922
              39 Bytes=46539136321)
       1    0   COUNT (STOPKEY)
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'FND_LOOKUP_VALUES' (Co
              st=4 Card=1 Bytes=57)
       3    2       INDEX (RANGE SCAN) OF 'FND_LOOKUP_VALUES_U1' (UNIQUE)
              (Cost=3 Card=1)
       4    0   COUNT (STOPKEY)
       5    4     NESTED LOOPS (Cost=7 Card=1 Bytes=56)
       6    5       NESTED LOOPS (Cost=5 Card=1 Bytes=24)
       7    6         TABLE ACCESS (BY INDEX ROWID) OF 'PA_PROJECT_CUSTOME
              RS' (Cost=4 Card=1 Bytes=13)
       8    7           INDEX (RANGE SCAN) OF 'PA_PROJECT_CUSTOMERS_U1' (U
              NIQUE) (Cost=3 Card=1)
       9    6         TABLE ACCESS (BY INDEX ROWID) OF 'HZ_CUST_ACCOUNTS'
              (Cost=1 Card=1 Bytes=11)
      10    9           INDEX (UNIQUE SCAN) OF 'HZ_CUST_ACCOUNTS_U1' (UNIQ
              UE)
      11    5       TABLE ACCESS (BY INDEX ROWID) OF 'HZ_PARTIES' (Cost=2
              Card=1 Bytes=32)
      12   11         INDEX (UNIQUE SCAN) OF 'HZ_PARTIES_U1' (UNIQUE) (Cos
              t=1 Card=1)
      13    0   COUNT (STOPKEY)
      14   13     NESTED LOOPS (Cost=5 Card=1 Bytes=24)
      15   14       TABLE ACCESS (BY INDEX ROWID) OF 'PA_PROJECT_CUSTOMERS
              ' (Cost=4 Card=1 Bytes=13)
      16   15         INDEX (RANGE SCAN) OF 'PA_PROJECT_CUSTOMERS_U1' (UNI
              QUE) (Cost=3 Card=1)
      17   14       TABLE ACCESS (BY INDEX ROWID) OF 'HZ_CUST_ACCOUNTS' (C
              ost=1 Card=1 Bytes=11)
      18   17         INDEX (UNIQUE SCAN) OF 'HZ_CUST_ACCOUNTS_U1' (UNIQUE
      19    0   COUNT (STOPKEY)
      20   19     TABLE ACCESS (BY INDEX ROWID) OF 'PER_ALL_ASSIGNMENTS_F'
               (Cost=7 Card=1 Bytes=27)
      21   20       INDEX (RANGE SCAN) OF 'PER_ASSIGNMENTS_F_N12' (NON-UNI
              QUE) (Cost=3 Card=4)
      22    0   COUNT (STOPKEY)
      23   22     FILTER
      24   23       TABLE ACCESS (BY INDEX ROWID) OF 'JEG_PROJ_MASK_MAP' (
              Cost=3 Card=1 Bytes=31)
      25   24         INDEX (RANGE SCAN) OF 'JEG_PROJ_MASK_MAP_N1' (NON-UN
              IQUE) (Cost=2 Card=1)
      26    0   HASH JOIN (Cost=21685820 Card=44792239 Bytes=46539136321)
      27   26     TABLE ACCESS (FULL) OF 'HR_ALL_ORGANIZATION_UNITS' (Cost
              =8 Card=2291 Bytes=29783)
      28   26     HASH JOIN (Cost=21666496 Card=44792239 Bytes=45956837214
      29   28       TABLE ACCESS (FULL) OF 'PA_PROJECT_TYPES_ALL' (Cost=2
              Card=138 Bytes=3312)
      30   28       HASH JOIN (Cost=21663798 Card=44792239 Bytes=448818234
              78)
      31   30         TABLE ACCESS (FULL) OF 'PA_PROJECTS_ALL' (Cost=3246
              Card=265730 Bytes=11957850)
      32   30         HASH JOIN (Cost=21005440 Card=44483842 Bytes=4257103
              6794)
      33   32           TABLE ACCESS (FULL) OF 'GL_CODE_COMBINATIONS' (Cos
              t=1773 Card=688770 Bytes=21351870)
      34   32           HASH JOIN (OUTER) (Cost=20373686 Card=44175128 Byt
              es=40906168528)
      35   34             HASH JOIN (OUTER) (Cost=19509061 Card=44175128 B
              ytes=39536739560)
      36   35               HASH JOIN (Cost=18943246 Card=44175128 Bytes=3
              6046904448)
      37   36                 TABLE ACCESS (FULL) OF 'PA_TASKS' (Cost=9738
              2 Card=18021390 Bytes=360427800)
      38   36                 HASH JOIN (Cost=18294927 Card=44166353 Bytes
              =35156416988)
      39   38                   TABLE ACCESS (FULL) OF 'PA_EXPENDITURES_AL
              L' (Cost=84808 Card=28594800 Bytes=1401145200)
      40   38                   HASH JOIN (OUTER) (Cost=17413038 Card=4409
              9473 Bytes=32942306331)
      41   40                     HASH JOIN (OUTER) (Cost=16913198 Card=44
              099473 Bytes=32369013182)
      42   41                       HASH JOIN (OUTER) (Cost=16420291 Card=
              44099473 Bytes=31883918979)
      43   42                         HASH JOIN (Cost=15948611 Card=440994
              73 Bytes=30516835316)
      44   43                           TABLE ACCESS (FULL) OF 'PA_EXPENDI
              TURE_TYPES' (Cost=7 Card=1290 Bytes=81270)
      45   43                           HASH JOIN (Cost=15928472 Card=4409
              9473 Bytes=27738568517)
      46   45                             TABLE ACCESS (FULL) OF 'PA_EXPEN
              DITURE_ITEMS_ALL' (Cost=1680109 Card=51616333 Bytes=26530795
              162)
      47   45                             TABLE ACCESS (FULL) OF 'PA_COST_
              DISTRIBUTION_LINES_ALL' (Cost=4105845 Card=309305110 Bytes=3
              5570087650)
      48   42                         TABLE ACCESS (FULL) OF 'PA_TRANSACTI
              ON_SOURCES' (Cost=3 Card=107 Bytes=3317)
      49   41                       TABLE ACCESS (FULL) OF 'PER_JOBS' (Cos
              t=125 Card=49710 Bytes=546810)
      50   40                     TABLE ACCESS (FULL) OF 'HR_ALL_ORGANIZAT
              ION_UNITS' (Cost=8 Card=2291 Bytes=29783)
      51   35               TABLE ACCESS (FULL) OF 'PER_ALL_PEOPLE_F' (Cos
              t=1770 Card=276740 Bytes=21862460)
      52   34             TABLE ACCESS (FULL) OF 'PA_EXPENDITURE_COMMENTS'
               (Cost=21998 Card=15029290 Bytes=465907990)This process can takes more than 6 hours,How can i reduce the running time ...
    Kindly advice me...
    Thanks in advance....
    Edited by: BluShadow on 23-Oct-2012 13:18

    967144 wrote:
    AND cdl.line_type || '' =
    DECODE (ei.system_linkage_function,
    'VI', 'R',
    'D'
    AND (   ei.cc_cross_charge_type || '' = 'IC'
    What's the motivation for appending an empty string to the column? Both of these columns are VARCHAR2 anyways, I don't see the point. I'd definitely remove that. I'm having a hard time reading your explain plan, but do the cardinality estimates make sense? Are your statistics up to date?
    Please read this thread: {message:id=9360003}

  • Diversity - Distance between Antennas

    Considering both antennas are similar-type and gain the two imp criterias i read in achiveing Diversity is
    1. Antennas should be placed close enough to each other so that the RF coverage area is nearly identical.
    2. The receiving antennas are spaced sufficiently apart to achieve independence (no coupling) between the received signals.
    So the distance between both the antenna would be important.
    In a cisco doc,
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008019f646.shtml
    For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    Hence for 2.4GHz wavelength,
    Dist bet diversity Ant = 12.5cms Or 25cms or 37.5cms or 50cms
    now from below POST:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc18267
    The spacing can be in multiples but is best in multiples of odd numbers. 1x or 3x. This allows for the phase to be always 100% out for the opposing antennae. 2x could cause phase shift overlay and could result in both antennae receiving the same phase shift differentiation.
    Is this true? then my choise would narrow down to "Dist bet diversity Ant=12.5cms or 37.5cms'
    But from below POST iam confused regarding point 1 and 2 (I have put them pointwise just for reference)
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc0332d
    1. Never should you have the antennas exactly one wavelength away from each other. For the frequency of 2400, one wavelength is 4.92"... so any distance that is not a multiple of 4.92 and no more than a multiple of 4 is recommended.
    2. You should use 1/2 wavelength distances and to be safe no more than multiple of 3.
    My Questions are
    1. Should the distance between my Antennas for diversity be any len more than 12.5 cms and less than 25cms or more than 37.5cms and less than 50cms?
    2. Is it that the distance between my Antennas for diversity should not be exactly equal to the multiple of wavelengths? (12.5cms, 25cms, 37.5cms, 50cms)
    3. Is it that i have to use only odd wavelengths multiples? (12.5cms, 37.5cms) and should not use even multiples?
    4. The use 1/2 wavelength distances between the antennas is diversity. Is it ok? or is the minimum 1 wavelength as specfied in the cisco doc.
    Also from the below POST iam confused regarding the MAX distance:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1dd7905b
    "Distance beyond 1-2 wavelengths is not critical. Since the antennas are not transmitting and/or receiving at the same time,there is no real chance of overloading the other antenna or radio front-end. "
    There's not really a "max distance" as far as diversity is concerned. By placing the antennas some distance apart (the minimum, I believe, is ~one wavelength), you optimize the chance that a signal that is null (or interfered with) on one side, isn't on the other.
    my question is
    5. Is there a max distance between the antennas in diversity (like we read 4xwavelength) or there is no max distance? then wont there evolve a different RF coverage area for both the Antennas?
    Another important question
    > If my wireless card supports 5GHZ and 2.4GHZ and hence my antennas would be dual band. Then to achive antenna Diversity, what would be the distance between the two antennas? The minimum distance should be 1 wavelength, so For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    For a dual band antenna? how much should it be? Whats the min and max.
    someone please can help me solve the huge confusion in my mind :)

    First, let me say that this is certainly a well-done post, good job of back-tracking the links and expressing your questions.
    The next thing is that there are more than a few nuances when dealing with RF and signal transmission and propagation, so to cover a specific topic fully would frequently cover more space than provided.
    With all that dancing out of the way ;-), I'll take a shot at answering your questions...
    "Is there a max distance ... ?"
    Well, no, not really ... but there is a max *effective* distance and a fairly specific point of diminishing returns (as mentioned in the linked posts).
    The design and implementation goal is to create a sort of "binocular view" with the antennas, such that the chance of a "null" is reduced, such that the signal / pattern developed from the diverse pair of antennas will create at least one clean and clear (reduced multipath, reduced nulls, possibly better line of sight)signal to (ideally) every client in the coverage area.
    Even though only one antenna is active at any given time, having any conductor within the radiated field will distort the transmission envelope, either positively (in the case of a Yagi) or negatively (in the case of a grounded conductor, like a sprinkler head).
    The amount of the distortion, and the shape of the distortion are functions of the size and shape of the parasitic element. The effect is so variable that it is one of the foundations for the contention that a comprehensive site survey is not really an option, it's mandatory; it's truely the only way to see what adaptations are necessary to make the "rules of thumb" function in the specific location.
    Regarding antennas handling multiple bands:
    The antennas (in this case) are close to resonant multiples. The differences are such that the logical / electrical length can be adjusted by adding inductive or capacitive loads at the transmitter or feed point.
    Even though the physical shape of the antennas may be different from model to model, the electrical load characteristics for a given band / antenna remain similar, so electronically compensating to make an antenna primarily designed for 2.4GHz function well for 5.6GHz is not especially difficult. Going from the longer wavelength to the shorter is more effective and easier to design than trying to go the other way.
    For example, a quarter-wave 2.4GHz antenna is easily compensated to create a good half wave (or loaded 5/8) 5.6GHz antenna.
    So, (finally) to provide the proper spacing for a diverse pair of multi-band antennas, figure for the longer wavelength (2.4GHz in this case) and the (roughly double) distance is likely to be acceptable for the higher wavelength. The spacing doesn't have to be exact; personally, I used to shoot for ~18" (variable with the mounting location and antenna type)and I always had pretty good luck, according to the follow-up survey.
    Because of the jillions of possible variables, you can't just calculate and hang the antennas and be done ... a survey should be done to verify the installations and to make educated adjustments that will optimize the system for that specific location and environment.
    The initial calculations are ideal guidelines, then you make adjustments to cover things like metal wall studs, sprinkler heads, the boss' favorite "wall o' vines" ... you will rarely get a perfect environment, adjustments are almost always required.
    It's late and I'm starting to babble ... ponder the above and let us know if it helped any. There are a great bunch of experienced folks here, and I think this will be the start of a great discussion.
    Good Luck
    Scott

  • Developing a Payroll System with NSD - A simpler algorithm in Java?

    Hi,
    I've been trying to develop a payroll system but I'm having some challenges on "trapping" the Night Shift Differential for all shifts.
    I'm from the Philippines and our NSD starts from 10pm - 6am by law.
    This payroll system is supposed to accept any shifts: day or night; 8-hour shifts, more or less than 8-hour shifts... making it dynamic in a sense.
    I've tried to evaluate each possible shift by start time and end time against the NSD's start time and end time. The result is a lot of "if-else" statements and some deep nesting.
    I'd like to know if there's a simpler algorithm for this in Java to "trap" the NSD from 10pm - 6am no matter what shift that "intersects" with it? Just so to have lesser complexity and better maintainability.
    Thanks.

    morphian wrote:
    abillconsl wrote:
    morphian wrote:
    Not yet. I'm still working on the codes for computations.Where's the data? If it is not in a database, then where is it?I'm using test cases.Okay ... where was I going with my line of questioning? ... It is just this - if you know where your data is coming from and what form it is in, it can make a difference in how you proceed.
    If you are working on Payroll data, nowdays it makes sense to imagine some relational DB containing the data. If that is the case, then knowing the structure of that data is absolutely paramount.
    For example - I really can't imagine doing this with times of day. In a well conceived DB structure, employees would likely be assigned some employee classification, based on a coding structure of some kind ... NS, DS, FT, PT ... etc. This might be broken down further by other classifications such as Primary vs Secondary job, salaried vs hourly workers, earning codes, whatever.
    So rather than working with times, you'd find the classifications of your employees and them perhaps add their hours or whatnot.
    So you see, it makes all the difference.
    ~Bill

Maybe you are looking for

  • Please Help! My Powerbook is rewriting my programs!

    Hello, I wanted to first say thank you to those of you who answer questions on this forum, and keep this great resource running! My question involves a problem I've previously had the Genius Bar at my local Apple store look at a few times, although t

  • Multiple images per page

    We use Qimage to produce, for example 2 7"x5" images on an A4 page. This doesn't seem to be possible in Aperture or have I missed something ???

  • Third Party Item

    Dear SAP Guru's, The Situation is for Third party order item : Cat TAS When I am doing the order saving due to credit check the system is not allowing to create the PR and the order cannot be saved before the releasing of the credit check. I want the

  • Calculate XMLTYPE storage

    Hello, We have a table with a XMLTYPE column. I want to find how much space this is taking up. When I execute this query on the table name, I don't believe I'm picking up the XMLTYPE column. select segment_name table_name, sum(bytes)/(1024*1024) tabl

  • Compiling command line utilities for Linux with static libc

    Hi, The following command used to compile and link BerkeleyDB with both static libdb and static libc: make clean env LDFLAGS=-static ../dist/configure --disable-shared make Now the command only statically links libdb and not libc. [root@fedora8 ~]# l