cancel
Showing results for 
Search instead for 
Did you mean: 

calculation rule - weekly workdays

Former Member
0 Kudos

Hello all.

Im searching for a command to read the field "weekly workdays" field in infotype 0007 (P0007-WKWDY) during a personnel calculation rule.

I would like to multiply the AMT field with the weekly workdays.

Something like this:

   AMT*WKWDY
   ADDWT *

But I don't know what I have to use instead of WKWDY.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks again for your answer Akshay.

I have found a solution.

It worked for me with the Record Layout Field 'NIWWD'

AMT* NIWWD

NIWWD:

Number of workdays per week at start

of payroll period (read from P0007)

If the period in question contains a WPBP split,

the system takes the the begin date of the split.

Otherwise, it takes the begin date

of the payroll period.

Thanks all for your help.

Regards,

Stefan

Former Member
0 Kudos

Hi Akshay.

I thought it was solved. But one additional question.

Is it possible to read a changed weekly workdays.

Example:

Weekly workdays of Schedule N605 from Table 508A are 4.00.

If someone change this in Infotype 0007 to 3.00 days, can I read this?

Thanks.

Regards,

Stefan

Former Member
0 Kudos

Hi Stefan,

I am not sure if you can pull the changed weekly workdays from IT0007. One possible solution that I can think of is to try and use the operation OUTWPWWEEK that refers to WPBP table (assuming that the changed weekly working days is populated in the table).

Let me know how it goes.

-Akshay

Former Member
0 Kudos

Thanks for all the answer.

The answer from Akshay solved my problem.

Thanks a lot.

Regards,

Stefan

Former Member
0 Kudos

Hi Stefan,

I am assuming that you are using the PCR in payroll and that the Weekly Workdays are stored in IT0007 based on employee's Work Schedule Rule and is not changed. If the above assumptions are correct, please use the following commands to pull the weekly workdays.

TABLE 508A

AMT*BWKWDY

ADDWT *

Hope this helps.

-Akshay

former_member207885
Contributor
0 Kudos

Hi,

I will try to give you the PCR here

you can use VARSTLDAYWW

1.create a time type say 9000 with a name <b>daycounter</b>

2.the rule looks like this

VARSTFDAYWW (checks whether its the first day of work week)

if its the first day then hrs=1 adddb9000Z

if its not the first day then use VARSTLDAYWW(last day?)

if not the last day then hrs=1 ADDDB9000

if its the last day then hrs=1 ADDDB9000 HRS=D9000

then you in the time type you will have number of days attended and then you can multiply with the amount .Hope this helps.

Former Member
0 Kudos

Hi,

Does this help:

Operation VARST and parameters: WEDAY, LDWDY, RDYWW, FDYWW, LDYWW, LWDYx and WDY x

Hope this helps,

Reward points if helpful,

Thank You,