Payroll events

I am developing workflow for HR. It is leave notification workflow.
The requirement is that I check if payroll is running and wait for it to become unlocked. I want to know what gets locked when payroll is running and what happens if it is unlocked.
Can somebode help me with the BOR, events, fields, tables that are affected, that can help me identify which state the payroll is in.
Urgent!!!.
Points will be awarded

Hi Biswajit
I am new to HR. Im not sure what to check if payroll is running and what gets locked. Are the employees records locked during the run.
I could get into a loop checking if the records are locked, till they get released. This is not a good solution since it consumes system resources. I am looking for events that will alert me that payroll has finished running and records are unlocked

Similar Messages

  • GET PAYROLL  And GET PERNR  Events .. Query

    Hi All
    I have used  Get Payroll  Event to fetch data from Database for Payroll Reporting.
    It work fine for me till now..
    But i am  not sure  that ,it can be used indiviusally  without GET PERNR Event.
    And wht are the other conditions to be usedd in Get Payroll Event...
    Regards
    Lakhan

    Pernr Is the personnel numbers
    for a particular Country
    Country you can use MOLGA
    GET PERNR
    GETPAYROLL
    You can loop and get the resuults for the Employee for that particulat Country
    Ok
    Take Care

  • Table Event Update Form?

    Hi,
    If anyone knows about the form "Table event Update",kindly reply or give URL regarding the documentation
    Thanks in advance
    Manoj M

    This form is used for payroll Event model
    basically it identifies when event should be recorded .
    PEM records the events such as Correction or Update on the table u specify.
    e.g. column assignment status change on PER_ALL_ASSIGNMENTS_F table
    The retro pay process uses these events to process those assignments while calculating retro pay
    U specify the table name e.g. PER_ALL_ASSIGNMENTS_F
    In Event section Specify
    1) Event type as datetrack correction/ datetrack update
    2) Column name : specify the column name
    e.g. assignment_status
    3) Change Type : reports
    Also Refer meta link note : 373148.1
    Thanks
    Makarand

  • Get payroll to generate payroll

    Hi All,
    I am using pnp LDB and selection screen 900 for getting payroll using GET PAYROLL event.
    Problem i m facing is that GET PAYROLL event fetch payroll for all the employees.
    But i have to fetch according to personnel area and personnel subarea.
    Layout of report should be like this:
    Personnel area:
    payroll of all the employees in that personnel area.
    then another parsonnel area
    payroll of all the employees and so on....
    But in GET PAYROLL , we can't assign the outer loop, it gives the syntax error.
    If i could assign the outer loop, then i could easily do that, i fetch the personnel area and employees lying in that area and run the payroll of them.But, i couldn't do like this as we can't assign outer loop to GET PAYROLL ...
    Please help, it is urgent.
    Points will be awarded.

    HI,
    You can also use GET PERNR.
    AWARD POINTS IF USEFUL

  • HR REPORT about GET PAYROLL ISSUE!

    HI
    i using LDB pnp to report about PY data!
    i get PY data using GET PAYROLL!
    one case occurs as follow:
    search  one person(99005500) using personid number i will get result ok!
    all other condition not change! just in personid(pernr-pernr) condition,  i put mass person id!
    in these person, some id < 9900500, in this time, the person id 99005500 some period py data
    can't display out!
    i have to check period list using call method pay->read_result
                                                           IMPORTING
                                                                 list = mylist. in GET PERNR !
      i find mylist have different!
    in first scene:
        mylist data contain all data about this person: begin with 20060110
    but in last scene:
        mylist data contain data just begin with 20080804
    so i think miss py data cause by mylist change !
    i in SAP demo code:EXAMPLE_PNP_GET_PAYROLL i have saw:
    You can use the methods of class "pay" to read and modify
    the list of payroll result that is going to be processed at
    the <get payroll> event. However, these method calls might
    change with the next release.
      CREATE OBJECT pay.
    pay->LDB = 'SAPDB_MY_OWN_LDB'. "only if you copied the LDB PNP
      CALL METHOD pay->read_result IMPORTING list = mylist.
    "delete mylist index 2. "For example: Remove an unwanted payroll result
      CALL METHOD pay->write_result EXPORTING list = mylist.
    what happend in LDB PNP! how to get mylist i want?
    because using CALL METHOD pay->read_result IMPORTING list = mylist. will cause error!
    help!!!!!!!!!!!!!!
    thank you advance!

    Hi,
    Refer this link https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3180. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Flavya

  • Reading Payroll Results using PNPCE

    Hi All,
    As far as reading infotypes/master data is concerned, I am comfortable using "PNPCE" instead of logical database "PNP".
    Can any one tell me how can I read payroll results using "PNPCE". Since Get payroll event is not available in pnpce.

    Hi khalid,
    1. U want the remuneration (monthly salary )
    2. U won't get it DIRECTLY from any table.
    (Its stored in cluster format)
    3. Use this logic and FM.
    DATA: myseqnr LIKE hrpy_rgdir-seqnr.
    DATA : mypy TYPE payin_result.
    DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
    SELECT SINGLE seqnr FROM hrpy_rgdir
    INTO myseqnr
    WHERE pernr = mypernr
    AND fpper = '200409'
    AND srtza = 'A'.
    IF sy-subrc = 0.
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
    EXPORTING
    clusterid = 'IN'
    employeenumber = mypernr
    sequencenumber = myseqnr
    CHANGING
    payroll_result = mypy
    EXCEPTIONS
    illegal_isocode_or_clusterid = 1
    error_generating_import = 2
    import_mismatch_error = 3
    subpool_dir_full = 4
    no_read_authority = 5
    no_record_found = 6
    versions_do_not_match = 7
    error_reading_archive = 8
    error_reading_relid = 9
    OTHERS = 10.
    myrt[] = mypy-inter-rt.
    READ TABLE myrt WITH KEY lgart = '1899'.
    4. the internal table myrt
    will contain what u require.
    regards,
    amit m.

  • I wan to know about reporting in Payroll and OM modules of HR

    Hi experts,
    1)Can anyone explain what are the different ways of reporting in Payroll,like using Function modules and using GET Payroll event.
    2)Can anyone give me example reports on OM module?
    3)How to use Provide and endprovide with an example program.
    Points deffinately be rewarded.

    hi Rock,
    this is an example for Provide,
    in ldb it is used to  populate the data;
    syn: provide * from itab(which event populates)
             between pn-begda and pn-endda.
            endprovide.
    ex: Provide *  from p0001
                        from p0002
          between pn-begda and pn-endda.
    and this is an example for Payroll getting wagetype of a pernr.
    for getting the wage type for particular wage type i am providing a example where you can modify according to your requirements:
    Ex:
    REPORT Zrock.
    TABLES: PCL1,PCL2. (NOT MANDATORY)
    INCLUDE RPC2RX09
    INCLUDE RPC2RDD0
    INCLUDE RPPXD00
    INCLUDE RPPXD10
    INCLUDE RPPXM00
    Parameters: p_pernr like p000-pernr
    p_per like pc261 like pc261-fpper
    Data: i_rgdir like pc261 occurs 0 with header line
    start-of-selection. here call the FM
    Call function cu_read_rgdir
    export params --- pernr = p_pernr
    tables
    in_rgdir = I_rgdir
    if sy-subrc = 0.
    loop at i_rgdir where fpper = p_per
    and inper = p_per
    here we r populating the RD Cluster key
    rx-key-pernr = p_per
    rx-key-seqnr = i_rgdir-seqnr
    *Importing the RD cluster data.
    RP-imp-c2-rd.
    if rp-imp--rd-subrc = 0.
    then processing the RT table for the required results (wagetype).
    Read table RT with key LGART = /'101'(here give ur wagetypes).
    if sy-subrc = 0.
    write: / p_pernr,
    I_rgdir-fpper,
    I_rgdir-inper,
    rt-lgart,
    rt-betrg.-----this is amount if you needed.
    endif.
    endif.
    endloop.
    endif.
    wait for sometime i wll also provide reports on OM, just remind me after 2 days. good luck
    Reward  if helpful.
    Thanks & Regards,
    Abdul.

  • List of Payroll delivered process

    Is there a comprehensive list of all delivered payroll process (interfaces, reports, process) in Oracle HCM for Canadian localization ?
    Example:- Calculate Payroll, Quick Pay etc
    Thanks for your assistance.

    Hi
    I am not sure if you mean you need to write a custom abap report or you just need the info?
    The normal process would be to run the wagetype statement RPCLGA00 which will get you the data. You can see whether the values are positvie or negative .... but be careful to also check the config as a positive deduction is an amount taken off pay!
    For an abap report - you can use the pnp database GET PAYROLL event - there are also lot sof other ways ...
    hope that helps

  • Payroll code

    Hi
    Can you send me simple payroll code using
    GET PAYROLL event.
    i know the function module method.
    thanks&regards,
    Quavi

    Hi,
       you can also use classes to read payroll without using GET Payroll event !!!
    check out ( OSS note # 699276 )
    The logical database GET PAYROLL has now been replaced with the class CL_HRPAY99_PRR_4_REPORTING. "PRR" is "Payroll Result Reader". It is succeeded by CL_HRPAY99_PRR_4_PNP_REPS and CL_HRPAY99_PRR_4_PNPCE_REPS, for use in programs with the logical database PNP or PNPCE (multiple payroll).
    These two classes are further succeeded by three classes that allow free period selection, individual day selection, or settlement run selection. Only these may be instantiated to read payroll results. They are:
    CL_HRPAY99_PRR_4_PNP_TISPAN
    CL_HRPAY99_PRR_4_PNP_SNGDAY
    CL_HRPAY99_PRR_4_PNP_PAYPER
    CL_HRPAY99_PRR_4_PNPCE_TISPAN
    CL_HRPAY99_PRR_4_PNPCE_SNGDAY
    CL_HRPAY99_PRR_4_PNPCE_PAYPER
    To simplify the class instantiation, the method GET_INSTANCE is available as an alternative. If you have multiple payroll, use CL_HRPAY99_PRR_4_PNPCE_REPS->GET_INSTANCE; otherwise use CL_HRPAY99_PRR_4_PNP_REPS->GET_INSTANCE; a suitable point for this call is the event START-OF-SELECTION.
    These new classes allow simple access to the payroll results, are CE-compatible, are expandable (class succession) and can take into account a variety of selection criteria.
    The structure H99_PAYROLL_RESULT_READER contains all selection criteria that you may need in your programs, with altered texts and documentation. You can use these in the selection screens in your reports, for example.
    Prerequisites
    Child classes of the classes CL_HR_PAY_RESULT and, if you have multiple payroll, also CL_HR_PAY_RESULT_PERSON, must be available for your country version. These daughter classes are called CL_HR_PAY_RESULT_** where ** is the ISO code indicator for your country. The German version is called CL_HR_PAY_RESULT_DE, for example; the American version is called CL_HR_PAY_RESULT_US and the American version for multiple payroll is called CL_HR_PAY_RESULT_PERSON_US.
    Examples of use
    If you have multiple payroll:
    data go_prr type ref to CL_HRPAY99_PRR_4_PNPCE_REPS.
    data gt_person_pr type H99_HR_PAY_RESULT_PERSON_TAB.
    data gt_peras_pr type H99_HR_PAY_RESULT_TAB.
    field-symbols <person_pr> type ref to CL_HR_PAY_RESULT_PERSON.
    field-symbols <peras_pr> type ref to CL_HR_PAY_RESULT.
    data go_person_pr type ref to CL_HR_PAY_RESULT_PERSON_**.
    data go_peras_pr type ref to CL_HR_PAY_RESULT_**.
    START-OF-SELECTION.
    call method CL_HRPAY99_PRR_4_PNPCE_REPS=>GET_INSTANCE
    exporting (...)
    importing ex_prr = go_prr
    exceptions INVALID_ENTRIES = 4.
    GET PERSON.
    call method go_prr->GET_P_P_PAYR_RESULTS_ALLIN1
    exporting im_person = person
    importing EX_PERSON_PAYROLL_RESULTS = gt_person_pr
    EX_PERAS_PAYROLL_RESULTS = gt_peras_pr
    exceptions (...).
    The person results are now in table gt_person_pr
    and the contract results in table gt_peras_pr
    loop at gt_person_pr assigning <person_pr>.
    go_person_pr ?= <person_pr>.
    Here do what you have to do with each result
    endloop.
    loop at gt_peras_pr assigning <peras_pr>.
    go_peras_pr ?= <peras_pr>.
    Here do what you have to do with each result
    endloop.
    If you do not have multiple payroll:
    data go_prr type ref to CL_HRPAY99_PRR_4_PNP_REPS.
    data gt_pernr_pr type H99_HR_PAY_RESULT_TAB.
    data go_pernr_pr type ref to CL_HR_PAY_RESULT_**.
    field-symbols <pernr_pr> type ref to CL_HR_PAY_RESULT.
    START-OF-SELECTION.
    call method CL_HRPAY99_PRR_4_PNP_REPS=>GET_INSTANCE
    exporting (...)
    importing ex_prr = go_prr
    exceptions INVALID_ENTRIES = 4.
    GET PERNR.
    call method go_prr->GET_PERNR_PAYR_RESULTS_ALLIN1
    exporting im_pernr = pernr-pernr
    importing EX_PERNR_PAYROLL_RESULTS = gt_pernr_pr
    exceptions (...).
    The results are now in table gt_pernr_pr
    loop at gt_pernr_pr assigning <pernr_pr>.
    go_pernr_pr ?= <pernr_pr>.
    Here do what you have to do with each result
    endloop.
    <b>Reward points</b>
    Regards

  • Wage type /101

    i need to show total value of /101 wagetype based upon the company code & state.
    advise me how can i calculate. from where i can take the values.

    Hi all,
    I need to calculate the gross value for wages /101.
    For normal value I can retrieved from get payroll event.
    How can I get refractive wages from cluster table?
    Is there any FM available for retrieving all the /101 amount
    Advise me
    Thanks & Regards,
    Vijayan

  • Reading result table using LDB and event get payroll

    Hi Technical experts,
    I need help regarding reading cluster RT using logical database pnp and event get payroll.
    Please help me out.
    Best Regards.
    Priyaranjan

    Suresh, I also have one more question.  
    If I use GET pernr or GET payroll inside a subroutine after start of selection, it gives error saying "Before the statement "GET" , the structure introduced by FORm shuld be ended by END FORM, which is already ended correctly.
    When I move the Get events outside the subroutines, i dont get this error. 
    Does that mean, these events cannot be used in the subroutines?

  • Training Need - TN in Training and Event Management

    Hi
    Did any one worked on Training Need (TN) in Training and event management? I have the below question.
    For France there is a legal requirement to capture some 1.6 % of the employee annual gross salary towards training cost.  So where to record the training cost of the employee in Training and event management and is there any link with payroll. 
    Logically it sounds as it does.  but where and how is it connected with payroll.
    Please revert if you know the solution.
    Brs
    Kenu.

    Hi
    In Table V_T77TNM_DC
    We need to have the below entries
    TNM                                              CL_HRTNM_VALO_COMPUT_GUI_FR
    TNM       HRTNM00_REPMOD        CL_HRTNM_VALO_COMPUT_GUI_FR
    TNM       MP168400                       CL_HRBAS_INFTY_1684_GUI_FR
    TNM       RPCTNM9S_REP            CL_HRTNM_INFTY_1036_GUI_FR
    Regards
    Kenu

  • How to handle mid month proration in a calendar to month payroll

    Appreciate if some 1 can help in handling the mid month proration in a calendar to month payroll.
    i.e if an employee desides to quit his job by giving a 24 hours notice say in the middle of the month, then how can one handle such cases in monthly payroll calculations?
    Plz help me......!
    regards

    1. Create a Proration Event Group grouping all the events (here date track update on assignment_status_id of per_all_assignments_f). Attach the event group to elements that you want to prorate.
    2. Write a Proration Formula (Formula Type Payroll Run Proration) sth like this.
    inputs are pay_value,
    proration_start(date),
    proration_end(date)
    l_days = days_between(prorate_end,prorate_start) + 1
    pay_value = pay_value * l_days / 31 /* instead of hardcoding 31 u can get the days_between period start and period end db items */
    return pay_value.
    3. Attach the above proration formula to the elements that you want to prorate ( element screen > proration tab)
    Hope this helps.
    Regards,
    sharath

  • Payroll area locked.How to Stop the workflow during this period ?

    Dear experts,
    In the travel workflows, after all the approvals, there is a standard task(Custom) with a custom method(BUS2089 Enhanced).
    This method updates the infotype 2002 (Attendances). This works fine for the whole month except during the  payroll run which will be for 3-4 days after 20th of every month.
    We have maintained the exception for this when the control record is in the status '1' or '4', by passing a temporary error to the workflow.
    SELECT SINGLE * FROM t569v WHERE abkrs = 'Z0'.
    IF sy-subrc EQ 0 AND ( t569v-state EQ '1' OR
                           t569v-state EQ '4' ).
      return-message_v1 = 'Employee Master data locked for Payroll'.
      exit_return 1001 return-message_v1 return-message_v2
                       return-message_v3 return-message_v4.
    As i understand the workflows can be restarted after solving the temporary errors.But this Temp error will only be solved after the payroll record is becomes 'Exit Payroll'.
    The system attempts for 3 times in the period of 30 minutes and then the tempoarry error becomes a permanent error and this way the workflows goes into a permanent error which cannot be restarted even after the payroll is exit.Due to this may workflows are unable to update the Infotyp 2002 however their trips are approved at all levels.
    This counter of 3 times and 30 minutes, I belive the system is taking from the error monitoring program (RSWWERRE / SWWERRE) in SWU3.
    I am thinking of putting the workflow into 'Wait' state till the period when the Payroll is locked. This way , we can avoid the workflow even from going into temporary error.
    Can anyone help in this regard ? Do we need to add a WAIT step in the WF Definition or control in the method code itself ?
    Does WAIT UNTIL (ABAP Keyword) works for 3-4 days of payroll run if we implement in the method code itself?
    -Anwar
    Edited by: Sameer Anwar on Aug 20, 2011 9:44 AM
    Edited by: Sameer Anwar on Aug 20, 2011 9:45 AM

    Hi Sameer,
    But , Can you pls put some more information on why we need to avoid WAIT UNTIL in Tthe ABAP ?
    Wait Steps are only used where you have 1 event which the workflow would expect ...moreover this would require more effort in terms of implementation...( you will have to create an event manually after your payroll is open).
    I would suggest create an virtual attrubute of the BO  which will populate a whetherr the Payroll is locked or unlocked... then use this attribute as a start condition in the conditions tab of your step. this would stop the workflow until the payrol is open...
    Regards
    Gautam
    Edited by: gautam maini on Aug 20, 2011 2:34 PM
    Edited by: gautam maini on Aug 20, 2011 2:35 PM

  • Training and event management configuration.

    Hello experts,
    I need the complete configuration steps of training and event management in sap hr. I am not working with lso.
    Thanks and regards,
    Kanika talwar.
    Dear User ,
    Useing of Bold letters is against the forume rules

    Hi,
    You can go to spro and follow as below:
    Payroll-> Payroll: France->Training Needs Management->Activate Function Training Needs Management->then select the option -> Activate SAP Training Need Management. The system status wil become as SAP Training Need Management is deactivated.
    Thanks,
    Padmaja.

Maybe you are looking for

  • SSO to Web Application from Portal

    Hi,     I am working on a scenario where I need to access a Web Application from the Portal.     I read about the Application Integrator that is provided by the Portal .     I wanted to know that can I only have SSO to those Web Application that acce

  • My start up disk is full

    how do I make room

  • Dynamic Output parameters count

    Hi All, I have a requirement in which the number of output cursors from a procedure depends on the input parameter. That is for a input parameters value A & B, I have to throw out two resultset and for A & C, I have to throw out 5 resultset. I have m

  • How do I get iOS 5

    How do I get ios5?

  • IPhoto won't let me edit or view photos

    For some reason I have been unable to open,view or edit any photos in my iPhoto library for weeks now. I can see the thumbnails but when I click on anything all I get is a blank screen. I have already tried restoring the library with iPhoto Library M