Workers compenssation code

Hi Friends,
I need help in solving a problem related to Workers compensation code. As per my client requirement one compensation code is no longer avaiable in the company. In my project workers compensation code is assigned to Position level.
So my doubt is if the WC code is not avaialble in the company do i need to Delemit the WC code or i need to Delete it completely from the configuration.
Requested you to please adviace me in this.
Thanks & Regards,
Naga

Hi Nagamani,
Worker's compensation code is helpful when a report is generated to know worker's compensation for a particular organizational unit.
Standard SAP REPORT for WORKER's COMPENSATION: S_AHR_61016148
The report generated contains the following information:
1. Workersu2019 compensation state
2. Organizational unit number and name
3. Workersu2019 compensation code
4. Total number of employees
5. Workersu2019 compensation wage
6. Detailed employee workers compensation information
7. Employee name
8. Personnel number
9. Organizational unit
10. Position
11. Workersu2019 compensation state, code, and wage
More information on this can be checked using the Program Documentation button once you are in the report.
Hope this helps !!!
Kumarpal Jain
PS: Please mark the thread as answered if you are find the solution.

Similar Messages

  • Workers compensation code for a personnel number ?

    Hi experts,
    how to get a Workers compensation code for a personnel number ? I need to know the table name where I can get it for a personnel number or a position .
    I'd appreciate your response.
    Thanks in advance.

    Hi Zak,
    Check this Table PA0000
    Ranga

  • SAP solution for Wyoming Worker Compensation code being 6 digits

    I am trying to determine what SAPs philosophy is around the state of Wyoming changing their worker compensation code to 6 digits. The standard workman compensation code on the positions and jobs is only 4 in length. I am unable to find any OSS comments around this issue.

    Dear,
    Just search with Wyoming Worker Compensation code
    Check for appropriate one ... if not relevant and not changed with customization settings by someothers - raise a note.
    Note 594574 - Wyoming Workers' Compensation Code changed for 2003
    Regards,
    Syed Hussain.
    Edited by: Syed Hussain on Dec 4, 2009 2:53 AM

  • I just bught my new iPhone 4s 64 i always got sim fulier message i have to reboot avery time my network is vodafone Egypt i tried to contact them but they said its Apple

    i just bught my new iPhone 4s 64 i always got sim fulier message i have to reboot avery time my network is vodafone Egypt i tried to contact them but they said its Apple

    i have contacted 3 online and also been into a 3 store they tried mysim in their handset and it worked but when on of the workers tried theyre sim it said "no service" as usual? they said the phone reads the sim because it asked for the workers sim code?
    thanks

  • Report RPLHZPT2 in CZ

    Hello togehter,
    my colleagues from CZ have problems with the standard report RPLHZPT2. I already created a OSS but I didn't know for what this report is used!
    Can someone explain me for which process this report is used in CZ?
    THX
    Thomas

    If you log in to SAP with language CS, and then go to SE38 and type in the report name and click on "Dokumentace" you will get the standard documentation for this.
    This is what gets displayed:
    RE RPLHZPT2
    Kr.text
    Hromadné hlášení ZP
    Popis
    RPLHZPT2 - Hromadné hlášení zdravotní pojišťovně
             - příprava dat do tabulky T5TA2 pro jejich další úpravu
              (pro vytvoření media je určen program RPLHZPT1)
    Předpoklady
    Metodiký pokyn: tento program připravuje podklady pro hlášení
    zdravotním pojišťovnám. Vzhledem ke složitosti celé problematiky,
    související s mnoha možnými kombinacemi, není možné tyto podklady
    považovat automaticky za bezchybné. Podobně jako při měsíčním
    zpracování může nastat situace, vyžadující ruční zásah. Proto jsou
    podklady uloženy nejprve do tabulky, kde se předpokládá jejich kontrola
    a případný ruční zásah. Teprve po provedené kontrole se spouští
    program (RPLHZPT1), který vytváří příslušná média a formuláře
    pro zaslání jednotlivým zdravotním pojišťovnám.
    Sestava generuje kódy na základě několika podnětů.
    Jedním jsou opatření, jejichž kódy z hlediska hlášení ZP jsou v tabulce
    T5T05.
    Dále sestava reaguje na nepřítomnost z IT 2001 subtyp 0140 (podle zadání) jako
    na vojenské cvičení.
    Dalším podnětem jsou důchody (starobní, invalidní, část.invalidní,
    vdovský a sirotčí) jako záznamy v IT 0620.
    Dále sestava samozřejmě reaguje na změny v IT 0153 (změna zdravotní
    pojišťovny, změna pravidla ZP, změna č.pojištěnce).
    Program považuje datum v IT 0041 s druhem datumu 98 za datum nástupu
    studenta (kód G) a druhem datumu 99 za datum výstupu studenta (kód F).
    Program také údaj s druhem datumu 40 v infotypu 0041 považuje za datum
    prvního pracovního dne a toto datum používá pro korekci u nástupních
    kódů (důchodce D, přihlášení P).
    Program automaticky mění kód P na C pro cizince a současně pro ně
    zabraňuje generování kódu N a K.
    Program zohledňuje příznak "Cizinec z EU" v intotypu 0153 a pro tyto pracovníky generuje místo kódu C kód E.
    Program také zohledňuje nastavení infotypu 0153 pole Podmíněné
    pojištění (SVA07). Pokud je pole zaškrtnuto, je kontrolován obsah
    mzdového druhu /310 ve výsledcích zúčtování (tab.RT), pole ANZHL.
    V případě hodnoty 2 je pracovník považován za pojištěnce, který
    nezaložil v období zúčtování účast na zdravotním pojištění.
    V případě jiné hodnoty za pojištěnce, který založil účast na ZP. Pracovníkům, jejichž plátcem je stát, program kontroluje MD /102 stejným způsobem.
    Program pak kontroluje příslušné kombinace stavů s ohledem na výsledek
    předchozího období a případné změny v infotypu 0153. Zejména se
    jedná o změny polí Pravidlo zdravotního pojištění (KVKZ1), Podmíněné
    pojištění (SVA07), Zdravotní pojišťovna (KVSFR), Identifikační
    číslo pracovníka pro zdravotní pojišťovnu (MITNR) a samozřejmě
    rozsah platností záznamů tohoto infotypu.
    Nemocenské dávky v ochranné lhůtě se zadávají v IT2001 a datum jejich
    ukončení program čte z pole Konec vyplácení mzdy v nem.(P2001-LFZED).
    Program reaguje na dříve uložené záznamy v tabulce T5TA2, na jejichž
    základě upravuje výstup.
    Příklad - kód P je odmítnut (vymazán) v návrhu, protože v historii
    existuje kód P ale následně chybí kód O pro danou pojišťovnu. Jednalo
    by se tak o duplicitní přihlášení, které je eliminováno.
    Zda se při kontrole kombinací mají zahrnovat všechny kódy v historii
    nebo jen poslední uložené v měsící, rozhoduje parametr
    "Historie jen posl.záz.měs." - viz.
    Odmítnuté kódy při kontrole je možné zobrazit po kliknutí na text
    "Zobrazení zpracování kontroly kombinací kódů", kde je současně vidět
    také zkratka původu vzniku kódu, jako např.OPATR z opatření, DYNPO
    pro dynamické pojištění, 0153 jako podnět z infotypu 0153 apod.
    Program sám připouští uložení jen jednoho návrhu měsíčně. Pokud je
    nalezen předchozí výsledek stejného měsíce, objeví se varování a
    následně je předchozí dávka vymazána. V případě rozdělení zpracování
    do více nezávislých dávek musíte uložení více dávek v jednom měsíci
    umožnit - viz parametr Vice dávek dat v měsíci.
    Parametry
    Parametr "Třídění výpisu" určuje třídění sestavy buď podle rodného čísla, data
    nebo kódu hlášení zdravotní pojišťovně.
    V případě volby výpisu podle rodného čísla (= identifikace pojištěnce)
    je výpis dále tříděn na základě požadavků zdravotních pojišťoven
    nejprve kód "P" nebo "C", "N", pak ostatní kódy a nakonec kód "O".
    Parametrem "Provést zápis to T5TA2" přepínáme mezi testovacím a ostrým
    během programu
    Parametrem "Výpis návrhu hlášení" volíme výpis sestavy vygenerovaných
    kódů hlášení zdravotní pojišťovně
    Parametr "Vice dávek dat v měsíci" umožňuje opakované spouštění programu
    s uložením dat v rámci jednoho období. Pokud nebude parametr
    zaškrtnutý, pak každé další spuštění s uložením dat způsobí výmaz
    dříve uložené dávky dat stejného měsíce. Vhodné zejména pro společnosti s odvodovou povinností v jednom místě. V případě společností s místní odvodovou povinností poboček ponechte tento parametr zvolený.
    Parametrem "Z historie jen posl.záz.měsíce" určíme, zda se mají při kontrole
    kombinací kódů pracovníka zohledňovat všechny záznamy v tabulce T5TA2 nebo jen
    vždy poslední uložená dávka dat daného měsíce (společné LAUFD, LAUFI). Hloubka zkoumání historie tímto parametrem zůstává nedotčena, jen je ovlivněn množství zohledňovaných dat (historického) měsíce.
    Pokud provádíte více běhů návrhů a ukládáte je, pak je vhodné v tomto
    parametru zadat 'X' pro zohlednění jen posledního běhu návrhů
    v měsíci.
    Parametr  "IT41 pro datum nástupu do zam." je určen k vynucenému zohlednění IT0041 v případě zpracování opatření. Pokud není parametr zaškrtnutý, program zohledňuje IT0041 jen pro opatření, která nemají v poli FUNCH (Funkční charakter opatření) tabulky T529A hodnotu 0. Pokud zaškrtnutý je, IT0041 se zohledňuje vždy. Tedy přesněji řečeno údaj s typem datumu  40 - první pracovní den.
    Parametr  "Ponechání P a O stejný den" umožní deaktivaci příslušné části kontroly kombinací kódů. V případě, že parametr není zaškrtnutý, taková kombinace kódů je z výsledku odstraněna.
    V parametru "Dohody o prov.práce(IT0016)" určíme subtypy
    infotypu 0016, které jsou považovány za dohody o provedení práce,
    které zakládají účast na zdravotním pojištění až podle výše výdělku
    v daném období (nejsou přihlášeny se začátkem prac.právního vztahu).
    Parametr "Subt. IT2001 pro voj.cvičení" slouží pro zadání subtypu IT2001, který bude program považovat za vojenské cvičení.
    Parametr "Subtyp trv.bydl.cizinců(0006" slouží k identifikaci cizince, jehož stát je identifikován ze záznamu IT0006 s uvedeným subtypem. Běžní pracovníci nemusejí takový záznam v IT0006 mít.
    Parametr "Opatření hlásit předch. den"  umožňuje uživateli vložit opatření, která budou vyhodnocována s posunem jednoho dne zpět (1.1.->31.12.). Typicky určeno pro opatření výstupu. Pokud necháte tento parametr prázdný - na rozdíl od běžných zvyklostí při zadávání - budou všechna opatření zpracována dle jejich aktuálního data platnosti. Prázdný parametr tedy nic neovlivní.
    Parametr "Vytváření kódu A" zakřížkujeme v případě, že si přejeme tvorbu kódu A. Ten se vytváří dle pokynů VZP jednorázově pro zaměstnance, kteří byli přihlášeni kódem C a jsou to osoby bez trvalého pobytu na území ČR a patří k osobám z EU.
    Dodatkový parametr "S datem" je určen pro vložení data vytvořeného kódu A (viz předchozí parametr).
    Před spuštěním sestavy je potřeba nastavit tabulku T5T05 pole MOULD1,2!
          - MOULD1 obsahuje kódy, které by sestava měla generovat při
                   začátku opatření
          - MOULD2 obsahuje kódy generované s koncem opatření
    Kódy jsou jednoznakové, psány bez mezer za sebou zleva
          - vyjímka: MOULD1 s hodnotou "DNPOL" označuje opatření, v jehož
                     období platnosti budou pro všechny záznamy z IT2001
                     generovány kódy N a K (DNP v ochranné lhůtě).
                     Přítomnost tohoto kódu je programem kontrolována a
                     pokud není takový záznam nalezen, objeví se
                     chybové hlášení.
                     Pokud takové opatření nemáte, pak tento kód do tabulky
                     nezadávejte. Bude se vsak ve vypise objevovat hlaska
                     ze tento kod nemate v tabulce.
                     Na spravnost generovani kodu nemoci v ochranne lhute
                     pak nema nepritomnost tohoto zadani vliv.
    Informace pro programátory:
    IT0153 - změna zdr.pojišťovny - kód O a P,čísla pojištěnce-kód X a P
              pravidla (KVKZ1): Změna 0,1 -> 9 může generovat kód L a
              9,0 -> 1 kód T
             (odstranit poznámku z řádků programu č.890,908,917,936)
    Tento program volá pro následné zpracování program RPLHZPT3.
    V programu RPLHZPT2 se provádí kontrola kombinace kódů jednoho
    pracovníka a v RPLHZPT3 kontrola vícenásobných pracovně právních vztahů.
    Například pokud u vícenásobných PPV není v jednom poměru založena
    účast na ZP, vygeneruje se kód O pro odhlášení. Zde je však detekována
    existence jiného PPV, který zakládá účast na ZP a kód O je odstraněn.
    Podobný případ nastane při ukončení jednoho z PPV.
    Dalším příkladem může být existence kódu odhlášení O i přihlášení P
    současně v jednom měsíci (změna PPV na nepojištěný, který si však
    vydělá částku, která zakládá účast na ZP). V tomto případě jsou
    odstraněny oba kódy.
    Program kontroluje vygenerovaná data na základě ID pojištěnce (= rodné
    číslo). Při jejich duplicitách tak může být výsledek negativně
    ovlivněn.
    Na podrobné zobrazení průběhu vyhodnocení tohoto programu se dostaneme
    po kliknutí na text "Zobrazení zpracování vícenásobných PPV" v dolní
    části výpisu.
    ROZŠÍŘENÍ
    Program podporuje uživatelské procedury pro možnou změnu kódů, a to
    v místě před začátkem vlastních logických kontrol pro jednoho
    pracovníka a po nich.
    V prvním případě se spouští procedura v tabulce T596F v záznamu
    s klíčem 18HZP1, ve druhém s 18HZP2.
    Vlastní logické kontroly probíhají na základě kontroly přípustných
    kombinací jednak v aktuálním zpracovávaném období a také na základě
    dříve uložených kódů v tabulce T5TA2.
    Uživatelská procedura musí mít následující rozhraní:
    w5ta2[] old5ta2[] pn-begda pn-endda deltab[]
    kde
    *  w5ta2 je interní tabulka se strukturou :
    data: begin of i5ta2 occurs 0.
           include structure t5ta2.
    data:  poradi(1),
           stat2 like p0000-stat2,
           source(5),
          end of i5ta2.
    *  old5ta2 je interní tabulka se strukturou T5TA2
    *  pn-begda, pn-endda jsou hraniční datumy zadaného období
    *  deltab[] je interní tabulka se strukturou:
    types: begin of t_ltabix,
           tabix like sy-tabix,
          end of t_ltabix.
    types t_tabix type standard table of t_ltabix with key tabix.
    data: deltab type t_tabix,
    Předpokládá se, že uživatelská procedura na základě dat pracovníka
    v aktuálním období (w5ta2) a dat v minulosti (old5ta2) se případně
    rozhodne pro odstranění kódů aktuálního měsíce. V takovém případě
    se nesmí mazat přímo záznam v tabulce w5ta2, ale index takového
    záznamu se poznačí do tabulky deltab.
    Výmaz je po ukončení procedury a zdokumentování hlavním programem
    následně proveden.
    Vkládání záznamů do tabulky w5ta2 je povoleno.
    Další možné uživatelské změny funkcionality programu:
    Include RPLHZPTZ je připraven pro provedení lokálních změn uživatele. Nebude již z naší strany dále dodán (nepřepíše Vaše změny). Obsahuje přednastavené procedury:
    FORM user_start_of_selection je určen pro akce, prováděné před událostí GET Pernr.
    FORM do_0000 je určen pro rutinu s vlastním vyhodnocením opatření. Nezapomeňte nastavit hodnotu proměnné "do_0000_intern" na mezeru pro deaktivaci vyhodnocení standardní rutinou..
    FORM proc_single_user_code je připraven pro uživatelské zpracování (generování) kódu hlášení zdravotní pojišťovně na základě podnětů dle vlastního zřetele. Typicky na základě vlastního infotypu, vlastní kombinace hodnot kmenových dat apod.
    FORM user_zapis_i5ta2 umožňuje vlastní kontrolu kódu, změnu jeho hodnot nebo případně tvorbu dalších závislých kódů. Rutina je připravena v místě, kdy je vše připraveno pro zápis (jednoho) kódu do interní tabulky. Ta bude na závěr běhu programu prověřena kontrolou kombinací kódů. Zde je však místo pro poslední změny kódu. který bude následně zapsán.
    FORM user_begin_combi je místo, kdy jsou již známy všechny kódy pracovníka. Následně začne kontrola kombinací kódů. Můžete tedy například ovlivnit, zda je určitý kód vůbec žádoucí, případně doplnit další.
    FORM user_end_combi je závěrečná procedura, kdy je již provedena kontrola kombinací kódů a je tak možné ovlivnit finální podobu kódů pro daného pracovníka. Pokud se rozhodnete pro výmaz kódu, je v proceduře návod, jak využít interní logovací mechanismus. Uživatel tak uvidí Vaše změny kódů zdokumentované. Toto platí i pro předchozí proceduru (user_begin_kombi).
    Výstup
    When you translate it to English in Google translate you get:
    RE RPLHZPT2
    Kr.text
    Collective reports ZP
    description
    RPLHZPT2 - Bulk Messages health insurance
              - Preparation of the data in the table T5TA2 for further treatment
               (for creating media program is designed RPLHZPT1)
    assumptions
    METHODOLOGY Note: This program prepares data for reporting
    health insurers. Due to the complexity of the issue,
    associated with many possible combinations of these materials can not be
    automatically considered flawless. Like the monthly
    processing may be situations that require manual intervention. Therefore
    documents stored in the first table, where it is expected to control
    and any manual intervention. Only after inspection starts
    program (RPLHZPT1), which creates the appropriate media and forms
    for sending individual health insurance.
    Report generates codes based on several complaints.
    One of the measures which the codes in terms of reporting ZP in the table
    T5T05.
    Further report responds to the absence of IT 2001 subtype 0140 (according to specification) as
    military exercises.
    Another stimulus pensions (old-age, disability, část.invalidní,
    widows 'and orphans') as records in IT 0620th
    Further assembly obviously reacts to changes in the IT 0153 (change health
    insurance, ZP rule change, change č.pojištěnce).
    Program is the date in IT 0041 with the kind of date for the start date of 98
    student (code G) and the second 99 date as the date of the student output (code F).
    The program is also an indication of the type the date in infotype 0041 40 considered the date of
    the first working day and this date is used to correct for boarding
    codes (retired D, log P).
    The program automatically changes the code to C P for foreigners and at the same time for them
    prevents code generation N and K.
    The program takes into account the sign of "The Stranger from the EU" in 0153 and intotypu for these workers generates code instead of C code E.
    The program also takes into account the setting Infotype 0153 Conditional field
    insurance (SVA07). If the box is checked, is controlled content
    Wage type / 310 in the settlement results (tab.RT) ANZHL field.
    In the case of 2 is considered to be insured worker who
    did not establish a settlement period of participation in the health insurance.
    If another value for the insured, who founded participate in ZP. Workers whose payer is a state program checks MD / 102 in the same manner.
    The program then checks the appropriate combinations of states with regard to the outcome
    previous period and any changes in infotype 0153rd particular
    as changes in the fields of rule of health insurance (KVKZ1), Conditional
    insurance (SVA07), health insurance (KVSFR) Identification
    employee number for health insurance (MITNR) and of course
    The scopes of this infotype records.
    Sickness benefit withdrawal period are entered in IT2001 and the date of their
    completion program reads from the array end salary within. (P2001-LFZED).
    The program responds to the previously saved records in a table T5TA2 on the
    Based adjusts the output.
    Example - Code P is rejected (deleted) in the draft, because in history
    there is a code P but then missing code O for the insurance company. It
    would be the duplicate log, which is eliminated.
    Whether the control should include a combination of all codes in history
    or just the last saved in the months parameter decides
    "History just posl.záz.měs." - See.
    Rejected codes when checking can be viewed by clicking on the text
    "Viewing processing control code combinations", where is also seen
    Also abbreviation of origin of the code, such např.OPATR of measures DYNPO
    Dynamic Insurance 0153 as an incentive from Infotype 0153 etc.
    The program itself allows storing only one design per month. If the
    found the same month of the previous result, a warning is issued and
    subsequently deleted the previous dose. In the case of the distribution of processing
    to more independent benefits must store multiple benefits in one month
    allow - see parameter Vice bursts of data in a month.
    Parameters
    The "Sort list" determines the classification of the report either by birth numbers, data
    or code reporting health insurance.
    In the case of election statement by the personal identification number (= identification insured)
    statement is further classified on the basis of the requirements of health insurance
    first code "P" or "C", "N", then the remaining codes, and finally the code "O".
    The parameter "Execute script that T5TA2" button to switch between a test and a sharp
    during the program
    The parameter "Listing the draft report" to select listing Reports generated
    reporting codes health insurance
    The "multiple batches of data in a month" allows restarting of the program
    with data storage in a single season. If no parameter
    is checked, then each subsequent start with saving data is erased
    previously saved batch data of the same month. Designed especially for companies with payment obligations in one place. In the case of a local payment obligations of branches, leave this option selected.
    Parameters' history posl.záz.měsíce only "to determine whether they are in control
    code combinations worker take into account all of the records or just T5TA2
    always saved the last dose data for the month (common LAUFD, Lauf). Depth examination of the history of this parameter remains unchanged, only the affected amount of data taken into consideration (historical) months.
    If you are performing multiple runs of proposals and saving them, then it is appropriate in this
    parameter type 'X' to take account only of the last course proposals
    of the month.
    The "IT41 date for entering the workplace." is designed to be forced into account IT0041 when processing measures. If the parameter is not checked, the program takes into account the IT0041 only for measures that do not FUNCH field (functional nature of action) table T529A value of 0 if it is checked, IT0041 is taken into account at all times. To be more precise indication of the type of date 40 - the first working day.
    The "Keeping P and O on the same day 'will deactivate the appropriate combination of control codes. If the parameter is not checked, the combination of codes is removed from the result.
    In the "Agreement prov.práce (IT0016)" certain subtypes of
    Infotype 0016, which are considered contracts of services,
    which constitute participation in health insurance according to the amount of earnings
    in a given period (no login prac.právního the beginning of the relationship).
    The " 

  • Important Infotypes For US

    Dear Seniors,
    I am working on a US & UK implementation project.
    I am wondering about the importance of these infotypes
    Can anybody please provide me the details of the importance or any link where i can find the  these infotype details.
    U.S PA & Payroll-----.
    - Garnishment Order - Info type 0195
    - Creating a Garnishment Order - Info type 0195
    - Garnishment Document - Info type 0194
    - Garnishment Adjustment - Info type 0216
    - IRS Mandates - Info type 0161
    - Residence Tax Area - Info type 0207
    - Creating an Employeeu2019s Work Tax Area - Info type 02O8
    - Unemployment State - Info type 0209
    - W-4 Withholding Information - Info type 0210
    - Residence Status (IT 0094) 
    - Creating Withholding Overrides - Info type 0234
    - Creating State or Local Withholding Information - Info type 0210 State & Federal
    - Creating Withholding Overrides -Info type 0234
    - Taxes - Info type 0235
    - US Tax Payroll Info types - 0446 u2013 0457
    - US Benefits Payroll Info type - 0496 u2013 0501.
    - EEO & AAP Infotype 1610 & 1613
    - Assignment of Workers' Comp Codes to Org Units ( IT1612*)
    - Additional Personal Data (IT 007* )u2013 here data like ethnic origin
    A support on the same would be highly appreciable.Thanks.

    Hello,
    Kindly refer the WIKI Link which explains the various Payroll US infotypes and various Functionalities of Payroll US
    For Payroll USA
    https://wiki.sdn.sap.com/wiki/display/ERPHCM/GettingStartedin+PY-US
    With Regards,
    S.Karthik

  • Why cant i recieve emails, but i can send them fine? i have reset, deleted, went to phone store and verified every setting 3 times. PLEASE HELP

        why cant i recieve emails, but i can send them fine? i have reset, deleted, went to phone store and verified every setting 3 times. PLEASE HELP

    i have contacted 3 online and also been into a 3 store they tried mysim in their handset and it worked but when on of the workers tried theyre sim it said "no service" as usual? they said the phone reads the sim because it asked for the workers sim code?
    thanks

  • 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

  • New problem  --  My java code can't see my CLASSES from Mapping Workbench

    Donald and others -
    I am VERY new to TopLink......
    I was at the last Oracle Developer Days in Northern Virginia. Donald convinced me and my co-workers to use TopLink for our upcoming project. I have been having tons of problems getting it to work correctly. Maybe I need a TOPLINK license plate, like Donald!!!
    Here is my newest problem. I can create a DatabaseSession, login to it, write a query and log out of it.
    However, I can only do this if I remove my classes from the Mapping Workbench. As soon as I add even one class to the Mapping Workbench......I get an error as follows:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-3007] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ConversionException
    EXCEPTION DESCRIPTION: The object [mil.usa.lbit.isr.TestIsr], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mil.usa.lbit.isr.TestIsr
    Can anyone tell me where I need to put my class files so the java code can see them via the ISR.xml deployment file.
    I currently have these files in a .jar file on the system path and in my web-inf folder and in my project settings. I put them everywhere I could think of, but no luck.
    Here is my code:
    package mil.usa.lbit.isr;
    import mil.usa.lbit.LbitColors;
    import java.util.*;
    import java.math.*;
    import oracle.toplink.sessions.*;
    import oracle.toplink.tools.schemaframework.*;
    import oracle.toplink.exceptions.*;
    import oracle.toplink.expressions.*;
    import oracle.toplink.queryframework.*;
    import oracle.toplink.tools.workbench.*;
    public class TestIsr extends ISR {
    public DatabaseSession session;
         public Project project;
    public TestIsr() {
    this.name = "TestISR";
    this.color = LbitColors.AMBER;
    this.metric = 97.00;
    public boolean isConnected() {
    if (session == null)
    System.out.println("Not Connected");
    return false;     
    System.out.println("Connected");
    return session.isConnected();
    public void loginToDatabase() {
    Project builderProject;
    System.out.println("Attempt to login to database using TopLink:");
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml");
    session = project.createDatabaseSession();
    session.login();
    System.out.println("Logged in");
    public void runQuery() {
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = builder.get("isr_id").equal(3);
    System.out.println(expression);          
    //TestIsr isr = (TestIsr) session.readObject(TestIsr.class, expression);
    //System.out.println(isr);     
    public void logoutOfDatabase() {
    session.logout();     
    System.out.println("Logged out");          
    public static void main(String[] args) {     
    TestIsr testing = new TestIsr();
    testing.isConnected();     
    testing.loginToDatabase();          
    testing.isConnected();
    testing.runQuery();
    testing.logoutOfDatabase();     
    Thanks in advance.
    Donald please email me and maybe we can chat on the phone if you want to offer some help.
    Andy

    Thanks for the reply!
    However, I did try to implement that yesterday.
    When I add the "getClass().getClassLoader()" to the "XMLProjectReader.read" call, the codes loses site of my project (.xml) file.
    Here is the new line:
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml", getClass().getClassLoader());
    Here is the new error:
    EXCEPTION [TOPLINK-7099] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ValidationException
    EXCEPTION DESCRIPTION: Could not find xml project file which is specified in properties file: xmlProjectFile=C:\LBIT TopLink\ISR\ISR.xml.
         oracle.toplink.exceptions.ValidationException oracle.toplink.exceptions.ValidationException.projectXMLNotFound(java.lang.String, java.lang.Exception)
         oracle.toplink.sessions.Project oracle.toplink.tools.workbench.XMLProjectReader.read(java.lang.String, java.lang.ClassLoader)
    But my code could find that file before I added the "getClass().getClassLoader()" code.
    Maybe I can avoid this problem by "deploying the XML file in my application jar?" Could you please explain more about this option after answering the first part of my question.
    Any other posters feel free to help me too.
    I know TopLink is a powerful tool, I just keep hitting these hurdles. ARRRRRRRGGGG!!!
    Thanks again,
    Andy

  • Copied some code, not sure how to alter it

    I copied this section of code from my header:
    <div id="nav"><a href="#">home</a> <a href="#">contact us</a> <a href="#">employees</a> <a href="#">retirees</a> <a href="#">Workers' Compensation</a></div> 
    into another part of my website - in the primary division.  But when I make a compound rule to affect only the section in the primary division, it still changes the section in the header.  I want to change the buttons to say different things and float left, and it seemed easier to copy existing buttons I made last week.  Should I start from scratch again? Thanks! paiger

    Now I'm getting embarrassed.  Since I'm logged into a secure site, I don't know how to post a link to the template.  I can send the link, but I don't think others have access. 
    Just a few minutes ago I figured out one way to resolve my problem - not sure if it was efficient, but it worked.  Thanks again for being so ready to help.  You guys on this site are great.  -paiger

  • FB 4.7 publish in flashIDE workers not sending/receiving + FB 4.7 access to embedded files

    Alright, this have been a painful day trying to solve this and I am pulling my hair out.
    So I decided to download the FB4.7 trial for some test with AIR13, and after an indecent amount of hours trying to install the latest player and android sdk (why the hell isn't it like in the IDE?), I have 2 major issues and so far not impressed at all by FB4.7.
    I have developped a project using the Flash IDE. Everything works perfectly BUT the workers. I don't get any error message, and my app doesn't trace the messages I'm supposed to receive from a worker. To be sure I coded that properly, I created a test project in FB4.7, copied pasted my code and my worker is working and I can trace messages sent and received from the worker to my main app. Why don't i see these traces when I fire my app from the IDE ? If i can't test workers in the IDE, this is a major issue. It doesn't even throw any error, just doesn't trace anything.
    Sooooo because It wouldn't work in the IDE, I copied my files to another location, created a project in FB4.7. If I run/debug in FB4.7 the worker works, but now I am unable to access embedded files in the app. In Flash IDE, I embed a folder that contains a bunch of files, and can access the file with 'app:/folder/file', which was very usefull because I have a ton of assets and this is the softest solution not to have a stupid class with 200 [Embed.. ] ******** hardcoded lines.
    So question 1 : how to have worker working in Flash IDE ?
    And question 2, if question 1 is a no go : since I do not want to modify my working code (in the IDE), how can I have the same behavior debugging from FB4.7 when it comes to using 'app:/' ?
    Also, just a notice about this sketchy forums, If I go back to my own post, the view count increment (lol). Let me know if this is coded in CF cause it looks like someone doesn't know about sessions

    Did you find a solution for this?

  • Workers in AIR for desktop

    My question here specific to AIR apps for desktop, not for the web. I have Flex 4.6 and AIR 3.5. I've beed Googling for days with no joy.
    There are no code errors but does anyone know where and how to initialize workers in the main mxml file or hat appliaction handler should be used to get the worker thread to set the mainToWorker and workerToMain MessageChannel's, as there is no class initializer like there is in web flex projects.
    if(Worker.current.isPrimordial){
                                                      worker = WorkerDomain.current.createWorker(this.loaderInfo.bytes);
                                                      mainToWorker = Worker.current.createMessageChannel(worker);
                                                      workerToMain = worker.createMessageChannel(Worker.current);
                                                      worker.setSharedProperty("mainToWorker", mainToWorker);
                                                      worker.setSharedProperty("workerToMain", workerToMain);
                                                      workerToMain.addEventListener(Event.CHANNEL_MESSAGE, onWorkerToMain);
                                                      worker.start();
                                            }else{
         // if in worker thread
                                                      mainToWorker = Worker.current.getSharedProperty("mainToWorker");
                                                      workerToMain = Worker.current.getSharedProperty("workerToMain");
                                                      mainToWorker.addEventListener(Event.CHANNEL_MESSAGE, onMainToWorker);
    Cheers,
    Nige

    1.Make sure you understand the big differences between video and stagevideo, its tempting to think that stagevideo is the better videosoultion in any case, but its not.
    The best Article (however a little outdated) on the subject is imo: http://www.adobe.com/devnet/flashplayer/articles/stage_video.html
    2.In a performance heavy environment the combination stageVideo+greensock might not be the optimal solution, if you have time to reprogram Starling/feathers will probably give you a much better performing combination:
    http://forum.starling-framework.org/topic/stagevideo-with-starling-example
    3.I don`t know how you encode your Backgroundvideo, there are literally dozens of viable codecs that should differ extremly in how they stress the gpu/cpu. Maybe you have to experiment with a lower than HD resoultion and see if scaling up the background is a good compromise.

  • Code is correct then why i cannot find the specified  backgroung color  ??

    hi everyone!!
    this is quite strange for me because i have been trying to set the background color but really can't understand why i an not getting it .Please help me out...
    thanks a lot!
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class front3 extends JFrame{
          private JButton go;
          private JRadioButton download,split,zip,rename,Copymail;
         private ButtonGroup radioGroup;
          public front3()
          Container c = getContentPane();
          c.setBackground(Color.pink);
          c.setLayout(new  GridLayout(0,1)); 
          setSize(530,120);
          setResizable(false); // to disable  the maximize  button 
            ImageIcon ii= new ImageIcon("split.jpg");
            split=new JRadioButton("Splitter",true);
         ImageIcon ij= new ImageIcon("zip.jpg");
          zip=new JRadioButton("Zipper",ij,false);
         ImageIcon ik= new ImageIcon("rename.jpg");
          rename=new JRadioButton("Rename all",ik,false);
         ImageIcon il= new ImageIcon("copymail.jpg");
         Copymail=new JRadioButton("Copy Mail",il,false);
         ImageIcon im= new ImageIcon("download.jpg");
         download=new JRadioButton("Download",im,false);
    c.add(download);
          c.add (split);
          c.add(zip);
          c.add(rename);
          c.add(Copymail); 
    setSize(300,500);
              show();
    setVisible(true);
    public static void main(String args[])
                  front3 f=new front3();
                  f.addWindowListener(
                       new WindowAdapter() {
                            public void windowClosing(WindowEvent e)
                                 System.exit(0);
     

    Couple of things:
    * either use your brackets like this:if(boolean) {
    }or like this:if(boolean)
    }but not both styles: it looks messy.
    * in Java it is a convention that variable names and method names always start with a lower case letter. Class names start with an uppercase. Of course you can make up you own coding style, but imagine that when you work with a couple of fellow students (or co-workers) on a project and everyone would use their own style: your code would be hard to read!
    * The linesshow();
    setVisible(true);do the same thing. Remove the show() since it is deprecated.
    Now, for your problem. The background of your JFrame is indeed changed, but you are placing other components on top of your JFrame so you can't see it's background color any more.

  • Playerglobal.swc Linkage Type: External or Merged Into Code?

    Hi,
    I downloaded Flash Pro CS6 with flex sdk version 11.3. It didn't contain Workers functionality, so I had to download the latest playerglobal.swc 11.8 version.
    I then used Actionscript options and pointed to the playerglobal.swc.
    When  I published the fla with playerglobal.swc linkage type set to Merged into Code, the runtime pops up this error:
    VerifyError: Error #1079: Native methods are not allowed in loaded code.
    However, when  I published the fla with playerglobal.swc linkage type set to External, the runtime pops up this error:
    VerifyError: Error #1014: Class flash.system::Worker could not be found.
    The only way to get rid of the VerifyError: Error #1079: Native methods are not allowed in loaded code is to get rid of all the code that reference Workers in  the fla.
    How can I use Workers in my project!???

    Here's a really old article but using it you can still get the general idea of how to properly update Flash Pro with a new version of Flash Player.
    http://chrisgriffith.wordpress.com/2012/07/20/updating-flash-professional-cs6-to-support-1 1-4/
    It's for Mac but if you're on Windows the paths inside the folders are the same and Flash itself can be found in (C:\Program Files (x86)\Adobe\Adobe Flash CS6) Just grab the player you choose, latest or use the archive link for older, update Flash Pro so it's an option you can select as a publish target:
    http://www.adobe.com/support/flashplayer/downloads.html
    As long as you've updated your debugger (C:\Program Files (x86)\Adobe\Adobe Flash CS6\Players\Debug) with the latest debugger, always test with the debugger (CTRL+SHIFT+ENTER, not just CTRL+ENTER). Otherwise you're using an older Flash Player. You can verify the version of the debugger you're testing with checking the Capabilities.version property,
    e.g.:
    import flash.system.Capabilities;
    trace(Capabilities.version); // should say 11,8,xxx,xxx or whatever version you installed

  • Please help me whit this java code

    Hi!
    I have a litle problem whit this question:
    I try to write a program about Salary. The user writes(puts in from keyboard)
    the workers name, hourePayment and hour(how many hours He has worked).
    The program must compute first week ,second week....fourth week
    The user writes just one time name and hourPayment,
    but he must write hours(total hours he has worked)
    for every week(may be ha has worked 30 hours first week and 40 hours second week.....).
    when the user puts in zero the program stops(while(hour!=0)).
    I wrote the program but I have problem whit
    Test class when the program computes first ,second and...weeks, and if the user don not put in zero the program must compute another persons salary
    we should give new name new houre payement....
    how do I use the same information for second person and computes his salary.
    class Salary{
    private String name;
    private double hourPayment;
    public Salary (String name, double hourPayment, ..){
    this.name= name;
    this.hourPayment=hourPayment;
    public String getNamn(){
    return name;}
    public double getHourPayment(){
    return hourPayment;
    public double compute(int time){
    if(time<=40){
    normalSalary =(hourPayment*time);}
    else if(time>40){
    ....=(((40*hourPayment)+(time-40)*(3/2)*hourPayment));
    else if(timmar>70){
    System.out.println("WARRNING:"+" "+"You have worked more than 30

    The code you wrote only computes one week's salary. You need to wrap that inside loops that collect names, rates and hours. Here's some pseudocode to get you started:
    get name
    while name NOT ""
        get rate
        for i = 1 to 4
            get hours worked
            compute pay // this is the part you've coded
        next i
        get name
    end while

Maybe you are looking for

  • W540 Sleep, Hibernate, Won't wake up, new Bios driver doesn't work (3/13/2015)

    I am posting to this forum looking for a solution to this ridiculous problem of computer not waking up (monitor-wise) when it goes to sleep.  To recreate the issue I merely walk away from computer for 10 minutes or so, come back, monitor is dark.  If

  • SLD fails to connect to Solution Manager

    I am trying to populate SMSY with information from my SLD.  The SLD appears to be setup properly as I am able to view all of my systems directly within the SLD.  However, when I try to view the information in SMSY, The system cannot find anything. I

  • Deleting files/ offline question

    hey guys i just filled up my hard drive with footage...i need to take it off because im gonna start using an external hardive and i need more space. i was wondering...... if i delete the capture scratch, the project, and everything thing else...will

  • Hiding subform in adobe form through javascript.

    Hi guys, I wanted to hide a subform through javascript. i want to make it visible only when the page no = 3. what is the syantax of javascript to do this. thanks in advance

  • F suffix for floating point.

    Okay, I'm a proficient c++ programmer and have been learning Java for only a few weeks now. I have a question about the f suffix for floating point varibles such as float f = 3.14f; The f suffix casts this as float right? which is the same as float f