on 2014 Oct 08 11:57 AM
I discovered a rule that didn't include all contract types for exclusion of counting bonus in to leave rate of pay. I don’t know where to put in my date stamp in the rule so that the rest of the work contracts are included effective 01.10.2014, currently only contract type 27 was excluded.
I’m thinking decision D WC20141001 but struggling to include the rule after 0101.
ZAVH Include Average rates into Rates of Pay
*
****
WGTYP? Query wage type
****
ADDWT * OT Output table
0101
OUTWPEMPLR Wrk contrct in v.key
**
ADDWT * OT Output table
NUM=1 Set
ZERO= R AmtNumRteTime = 0
AMT/2340 Division
MULTI ANR Multipl.amt/no/rate
ADDWT /093 OT Output table
27
ADDWT * OT Output table
Thanks
Hi All
Thank you for the feedback
Solution is as below using operation CMPER.
ZAVH Include Average rates into Rates of Pay
*
****
WGTYP? Query wage type
****
ADDWT * OT Output table
0101
CMPER 1508 Compare payroll per.
<
GCY ZAVHB With exact w.types
=
GCY ZAVHA With exact w.types
>
GCY ZAVHA With exact w.types
A
****
OUTWPPERSB EE subgroup in v.key
**
ADDWT * OT Output table
NUM=1 Set
ZERO= R AmtNumRteTime = 0
AMT/2340 Division
MULTI ANR Multipl.amt/no/rate
ADDWT /093 OT Output table
21
ADDWT * OT Output table
22
ADDWT * OT Output table
23
ADDWT * OT Output table
24
ADDWT * OT Output table
25
ADDWT * OT Output table
26
ADDWT * OT Output table
27
ADDWT * OT Output table
***
OUTWPEMPLR Wrk contrct in v.key
**
ADDWT * OT Output table
NUM=1 Set
ZERO= R AmtNumRteTime = 0
AMT/2340 Division
MULTI ANR Multipl.amt/no/rate
ADDWT /093 OT Output table
27
ADDWT * OT Output table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sabina,
One of the options would be as follows. This is based on the assumption that 01.10.2014 is the start date of a payroll period. If so, i suggest you do the following:
ZAVH Include Average rates into Rates of Pay
*
****
WGTYP? Query wage type
****
ADDWT * OT Output table
0101
<Check for the payroll period using the operation CMPER. If it is less than the payroll period for 01.10.2014, process below. If not, branch to a new node to include all the contracts>
OUTWPEMPLR Wrk contrct in v.key
**
ADDWT * OT Output table
NUM=1 Set
ZERO= R AmtNumRteTime = 0
AMT/2340 Division
MULTI ANR Multipl.amt/no/rate
ADDWT /093 OT Output table
27
ADDWT * OT Output table
If my assumption is not correct regarding the payroll period, please let me know and I will suggest an alternative solution.
Hope it 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 Sabina,
I have faced similar to your scenario before, to make comparison with the date in rule and you can find my post as well but I haven't received replies on that. later I proceeded with custom function. I am not sure that the date stamp can be done in rule, if you wish go with standard / custom function before doing that we can wait for some experts answer to this query.
With Regards,
Giriesh M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Giriesh
Can you give me step by step if using function WC20141001 how I would update below.
1153 Shift Allowance 5%
OUTWPPLANT P.area in v.key
****
0300
0301
0400
1200
WC20140401 Relate period 2 date
*
AMT=& 9701 Set
AMT%80 Percent calculation
AMT%KZ223A Percent calculation
ZERO= N AmtNumRteTime = 0
ELIMI A Elim.time period ID
WPBPCD for all WPBP
<
AMT=& BACA Set
AMT%KZ223A Percent calculation
AMT<KZ223B Form minimum
ZERO= N AmtNumRteTime = 0
ELIMI A Elim.time period ID
WPBPCD for all WPBP
Hi Sabina,
You need the help of an abaper in order to achieve this.
From the rule above I understood that,
if the WT 1153 exist and the personnel area is 1200, have to perform a logic.
Explain the logic to developer and tables to retrieve the data. Rest will be done by him.
Check the thread for reference: SAP HCM - Creating custom payroll function.
Revert back if you need any help. If my understanding is wrong anywhere please explain me.
With Regards,
Giriesh M
Wether you use Operation WC (which I've never tried) or Operation CMPER (which I always use to delimit changes in Payroll PCRs), it must be inserted at a point where processing will differ depending on the return value from the operation.
In your initial query for PCR ZAVH, your first operation was a decision on the WT being processed (WGTYP?) and if it was WT 0101, then a new decision was taken on the Contract Type (OUTWPEMPLR). Since you don't want to exclude Contract Type 27 as of 01.10.2014, this would be an appropriate place to insert Operation CMPER or WC. If before that date, proceed with the decision on the Contract Type as previously, but as of that date, use the new processing.
Example :
WC20141001
* ADDWT * NUM= 1 ZERO= R AMT/2340 MULTI ANR ADDWT /093
< OUTWPEMPLR
** ADDWT * NUM= 1 ZERO= R AMT/2340 MULTI ANR ADDWT /093
27 ADDWT *
User | Count |
---|---|
100 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
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.