cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PCR to generate absence quota based on IT0016 & IT0021

Ramesh37
Newcomer
0 Kudos
256

Hi All,

Can you please help me in writing a PCR to generate absence quota based on IT0016 and IT0021 ?

Requirement: All employees having 5 types of quotas - Annual leave (01), Employee Ticket (51), Dependent Ticket 1 (52), Dependent Ticket 2 (53), Dependent Ticket 3 (54). IT0016 having five contract types Family Status (01), Yearly Ticket (02), Bi-Yearly Ticket (03), No Ticket (04) and Spouse Status (05). IT0021 having 10 different subtypes like Child (01), Spouse (02), Father (03) etc;

Scenario: When employee's contract type (CTTYP) is 01, PCR should check IT0021, subtype FAMSA and generate quota. (Base entitlement is set for all quotas without time type)

Contract type 01 - If any of the dependents are maintained in IT0021 - Generate 5 all quotas

Contract type 01 - If dependents are not maintained in IT0021 - Generate 01 & 51 quotas

Contract type 02 - No comparison with IT0021 - Generate 01 & 51 quotas

Contract type 03 - No comparison with IT0021 - Generate 01 & 51 quotas

Contract type 04 - No comparison with IT0021 - Generate 01 quota

Contract type 05 - If spouse (02) is maintained in IT0021 - Generate 01, 51 & 52 quotas

Contract type 05 - If dependents are not maintained in IT0021 - Generate 01 & 51 quotas

I tried using below conditions but unable to compare with FAMSA. VARGB is not working. I am not sure how to use CPAGE and i am not sure if HRS?FR01 can be used. Appreciate if you could help me on the above scenario.

*

TABLEP0016

OUTWPCTTYP

01

TABLEP0021

VARGBFAMSA

As VARGB is a payroll operation how to call this to generate quotas ? Adding PCRs I have written

Ramesh37_0-1730900452840.pngRamesh37_1-1730900478823.pngRamesh37_2-1730900503479.png

Much appreciated if you provide your valuable inputs

 

 

Accepted Solutions (0)

Answers (0)