Skip to Content
author's profile photo Former Member
Former Member

Payslip error - Total working days!

Hi

In Payroll, system should consider total calendar - off days for calculating total working days. I have maintained a constant KDIVP 1 01.01.1985 31.12.9999 26.00 Lump sum, cal.days/month

and same in PCR FNP1(STD INP1)

for 1.5 days Loss of pay, system is making payment for 24.5 days i.e. 26 - 1.5 days but in actual since last month, total days were 31 days and off days were 4, system should take total working days as 27 and deduct 1.5 days from it i.e. system should pay for 27-1.5 = 25.5 days. where should i do thew changes to capture 25.5 days and not 24.5 days.

Thanks & Regards

Vikas K Sharma

Edited by: Vikas K Sharma on Aug 12, 2009 1:46 PM

Edited by: Vikas K Sharma on Aug 12, 2009 1:50 PM

Edited by: Vikas K Sharma on Aug 12, 2009 1:51 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 11:56 AM

    I am right maintaining PCR FNP1 (STD INP1) as

    /801 Partial period factor 1

    RTE=TKDIVP Set

    RTE*8 Multiplication

    RTE-TSAU** Subtraction

    RTE*KGENAU Multiplication

    RTE/TKDIVP Division

    RTE/8 Division

    ADDWT * OT Output table

    Regards

    Vikas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Expert,

      I have created this code for for days paid-

      loop at t_rt into s_rt.

      if s_rt-betrg < 0.

      s_rt-betrg = - s_rt-betrg.

      endif.

      case s_rt-lgart.

      when '9000'. " total days

      s_payslip-asoll = s_payslip-asoll + s_rt-betrg.

      when '/846'. " lwp

      s_payslip-abwtg = s_payslip-abwtg + s_rt-betrg.

      endcase.

      endloop.

      s_payslip-daysp = s_payslip-asoll - s_payslip-abwtg.

      but i am getting value 0 in place of 23,24,12....etc,

      i have also debug my code-

      i am gettimg the value 0. please suggest a way to come this issue.

      Regards

      Pranav Baghel

      Sap-abap

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2009 at 08:34 AM

    it is coming correctly now. I did some changes in *NP1 rule as below -

    /801 Partial period factor 1

    RTE=TASOLL Set

    RTE*8 Multiplication

    RTE-TSAU** Subtraction

    RTE*KGENAU Multiplication

    RTE/TADIVI Division

    RTE/8 Division

    ADDWT * OT Output table

    /802 Partial period factor 2

    RTE=TASOLL Set

    RTE*8 Multiplication

    RTE-TSAU** Subtraction

    RTE*KGENAU Multiplication

    RTE/TADIVI Division

    RTE/8 Division

    ADDWT * OT Output table

    Regards

    Vikas K Sharma

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.