cancel
Showing results for 
Search instead for 
Did you mean: 

how to correct constant value calculation?

Former Member
0 Kudos

we used wage types in infotype 2010 to pay constant values to our employees. There is a legal change to change the amount mid month. I have changed the constant value in table V_511K_E Payroll Constants by Grouping (Amounts) using sm31.

the constant now looks like this

01.01.2009 to 10.03.2013 = 25

11.03.2013 to 31.12.9999 = 30

i am running payroll for March 2013 and need to ensure that any entries up to the 10.03.2013 are paid at the value of 25 pounds and and entry on or after the 11.03.2013 is paid at 30 pounds.

When i entry a constant of 1 for this wage type in infotype 2010 on the 1.3.2013, it is paying the employee 30 pounds instead of 25 pounds.

The rule i am using to calculate the amount of the constant value is as follows:

RTE=KZROZL

MULTI RNA

ADDWT *

How can i correct this so that the payroll reads the date of infotype 2010 in the calculation?

thanks

clive

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Clive,

If you are using constants from tables , it will take the last value .

For your requirement you have go with indirect evaluation module CONST and use PCR to calculate the  value through multiplication.

You use indirect evaluation CONST and default the rate as amount in to the wage type  in 2010 and give the rate as well ... then in a pcr  do MULTI ANA or NAA  to calculate value.

Regards

Sujith

former_member193210
Active Contributor
0 Kudos

According to the information you provided, your payroll period is probably "Monthly" and your payment would be based on the value of the constant at the end of the month.

If it is a "one time" change, you could "play" with the constant amount and it's validity dates so that it would have the following values :

01.01.2009 to 30.03.2013 = 25

31.03.2013 to 31.03.2013 = 28.39   (sum(25x10/31)+sum(30*21/31))

01.04.2013 to 31.12.9999 = 30

Note that there is a possibility that it could be the PayDate and not the LastDayOfPayPeriod on which the prorata value is required, it's been a while since I last checked, so you could probably use the period of 11.03.2013 to 10.04.2013 for the value of 28.39 (but test March and April pays to confirm).

The alternative would be to "re-configure" your WT and it's processing in Payroll so that it would always be valued based on Partial Period Parameters, like your Salary WTs,

Message was edited by: Rémi Corriveau  P.S. : If you test it with the value of 28.39 for the last day of the payroll period, and again for the pay date, then you'll be able to confirm which is required.  An ABAP resource could also provide you with that information by looking at the ABAP program behind operation AMT=Kzzzzz

Former Member
0 Kudos

Remi

You are correct in that it is monthly payroll i am processing, sorry for leaving that out.

For this wage type in infotype 2010, if the start date is prior to the 11.03.2013, the value has to be 25. if the wage type is created on or after this date, the payment has to be 30.

there is no pro ratio of the amounts. it has to be either 25 or 30 and this is based on the creation date.

thanks

clive

seg_hr_it
Active Contributor
0 Kudos

If you are deeply understand Time Schema and Payroll Schema, you can resolve it

You can check the current date (the date uses for running Time Evaluation) on Time Schema. and decide the corresponding Constant.

HRS=BCURDY

HRS?11

<

     => creating logic with using Rate 25

*    

     => creating logic with using Rate 30

Please look at link below: Understanding Relationship PT and PY Relationship Time Evaluation and Payroll to have more information and clear Time and Payroll Schema!

Hope it helps!

Regards!

Woody

Former Member
0 Kudos

Woody

thanks for that, unfortunately the wage type in infotype 2010 is not run through time evaluation. it is just entered in infotype 2010 manually for each day it is required. the payment is a polish specific payment and employees get them adhoc. the end user just creates the necessary record for the necessary date as a constant of 1 unit and the employee gets paid the necessary amount.

thanks

clive