on 12-13-2012 3:22 PM
Hi experts,
Does anyone know any function or operation in payroll schema to check employee sub group changed middle of the pay period in last payroll period? Any feedback is appreciated. Thanks
No, but you could query the first split and the last split of the Payroll Period (using operation SPLIT A?). If it's the first split, query the ESG and use the result to create a temporary variable.
If it's the last split, query the ESG and compare the result with the temporary variable created previously.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Remi,
Thank you very much for your suggestion. Basically, I want to check employee sub group change from U4 to U3 in the middle of the last pay period in current pay period. If condition satisfied then I have to make another decision in current pay period.
If it possible, Can you please provide me logic for PCR? Thanks
In a PCR, processing the Basic Pay WT (or an other WT that would be split according to WPBP), query the first split and the last split of the Payroll Period (using operation SPLIT A?).
If it's the first split, query the ESG. If it's U4 create temporary variable U4 (using operation ADDWT&U4), and if it's U3 create temporary variable U3 (using operation ADDWT&U3).
If it's the last split, query the ESG, if it's U4, look if temporary variable U4 exists (using operation such as AMT=& U4 AMT?0), and if not, look if temp.var. U3 exists, and so on.
Hi Remi,
I wrote the rule as below does not help. May be I am little confuse to query first or Last split. Can you please let me know what is the syntax to query first and last split using operation Split A? I read the documentation in PDSY for Split A? Dint find first and last split.
Do you any operation or function to check employee group U3 changed on first day of pay period. Thanks for your help
ZABC Personnel Calculation Rule ZABC
*
0003 Salary
SPLIT A? Query APZNR init.
**
01
OUTWPPERSB EE subgroup in v.key
U3
ADDWT&U3 VAR Variable table
U4
ADDWT&U4 VAR Variable table
02
OUTWPPERSB EE subgroup in v.key
**
U3
ADDWT&U3 VAR Variable table
In the first split, you created 2 temporary variabless (also called temporary WTs), and each should have the amount of WT 0003.
So, in the second split, you must query the temporary variables to find out which one was created in the first split, and you can do that with the following operation sequence : AMT=& U3 AMT?0 . If the return value is zero, you must then query the second temporary variable, but if the return value is different from zero (meaning *), then the first split was for PERSB U3.
I believe, this is not going to help Remi. I am getting var as follows with Split A? operation
If EE moved U4 to U3 this is the var table enter
PRINT NP VAR
Output
Table VAR
WType Rate Number Amount
U4 0.00 0.00 2,141.99
U3 0.00 0.00 2,591.81
If employee is in U3 whole pay period this is the Var Table enter
PRINT NP VAR
Output
Table VAR
WType Rate Number Amount
U3 0.00 0.00 2,591.81
I am little confused to understand, what you want me to consider to determine employee moved from U4 to U3 in middle of the previous pay period? Thanks
In PCR ZABC, you should create a temporary variable only for the first split
ZABC Personnel Calculation Rule ZABC
*
0003 Salary
SPLIT A? Query APZNR init.
**
01
OUTWPPERSB EE subgroup in v.key
U3
ADDWT&U3 VAR Variable table
U4
ADDWT&U4 VAR Variable table
This way only one temporary variable will be created (either U3 or U4).
Perhaps it would be easier for you to use operation WPALL (WPALL?FRST and WPALL?LAST), for which the return values are Y or N (or Y and *)
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
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.