PR05 Deduction - Calculation Type

 4 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
vartika
New Member
Posts: 3
New Member

    I am new to this forum and also new to lawson hr module. I need to add a user exit so that for 401 (k) type deduction code, [gross salary - non qualified deferred compensation ] is used in calculation type field.

    I understand from the documents i have read that i need to add a user exit to PR05. But can you please guide me as to what will be the exact functionality followed when we add the user exit?

    And how will user exit help in customizing the deduction calculation.
     

    Ragu Raghavan
    Veteran Member
    Posts: 476
    Veteran Member
      You will need some knowlegde of the 4GL environmnet and COBOL.

      apps 8.1 and later, the component to modify is ...../prsrc/prpdlib/PRUEDED. The lawson delivred code has just one statement:

      MOVE ZEROES TO PRUE-DED-AMT.

      You need to change this appropriately. For example, if ded-code TEST has been set up for custom calc, if the deduction amount is 1% of the annual salary,

      IF (PRUE-DED-CODE = "TEST")
      COMPUTE PRUE-DED-AMT = EMP-PAY-RATE * 0.01
      END-IF.

      You need to make sure that appropriate tables are being looked up etc.

      After this you need to compile the entire PR system code. Any programs (PR140, PR80 etc.) that call this library will use the customized caluclated value for the TEST.
      vartika
      New Member
      Posts: 3
      New Member
        Hi Ragu,

        Thank you so much for your reply. I have worked on lawson finance module before therefore i have little knowledge of 4GL and COBOL.

        I understood your reply but still am a little confused. I read a lawson document on payroll and it said:

        To define misc deduction codes
        1. Access Deduction (PR05.1).
        2. Define deduction code and description. Consider the following fields.

        3. Select how you want Payroll to calculate the deduction in the Calculation
        If the deduction is a Select
        Percent of employee gross pay Percent.
        Flat amount to be deducted Flat Amount.
        Flat amount multiplied by the number
        of hours worked
        Amount per Hour.
        User defined calculation User Exit

        From the solution stated in your reply, i understood that i need to create a new deduction code for customising the way deduction is calculated.

        But i think what i want is to customise 401(k) deduction code, which already exists.

        So suppose now that for 401(k) i need to change the calculation type.

        So i will make changes in /prsrc/prpdlib/PRUEDED file and code:

        IF (PRUE-DED-CODE = "401E")
        COMPUTE PRUE-DED-AMT = *****************
        END-IF

        But again i have a doubt: Where is it defined how deduction amount is calculated for 401(k) deduction code. because i do not have to change the way deduction is calculated... i just have to change the amount it uses for it's calculation.

        Thanks
        Ragu Raghavan
        Veteran Member
        Posts: 476
        Veteran Member
          In the few set-ups that I have seen, the 401K deduction is set up as a "percentage" type calculation based on calculated income.
          The income amount is then determined by Pay-Classes.

          You could potentially have separate pay classes for Gross Income and 401K. If you then tie the 401K pay class to the deduction in PR05, the percetnage will be calculated based on the 401k income and not gross.

          The non qualified deferred income that you mention, is this also in the TIMRECORDS or is that somewhere else ?
          vartika
          New Member
          Posts: 3
          New Member
            Ragu,

            right now even i do not sure where is this NQDC is stored it is a type of compensation. Will let you know when i get the details.

            Thanks a lot,
            regards,
            vartika