on 10-09-2007 3:07 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Thanks for all the answer.
The answer from Akshay solved my problem.
Thanks a lot.
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.