Skip to Content
0

How to control leave type through PCR?

Apr 27, 2017 at 08:58 AM

90

avatar image

Hi Professionals,

We have a type of leave called 'Earned Leave' which is generated through IT2012. Client requirement is to restrict this type of leave if an employee is on prohibition period. I mean if user tries to create an entry in IT2012 for the employee who is on Prohbition Period, system generates a warrning or error message. Can this requirement be handled through PCRs? I would appreicate if step by step procedure is explained.

Thank you

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Brendan Gibbons Apr 27, 2017 at 03:31 PM
0

Hi

Assuming I am interpreting your requirement correctly you are trying to generate Leave Quota based on an entry to IT2012 and you are in effect asking 2 questions.

Q1

Can you effect how IT2012 Time Transfer Specification get posted to Quota via a PCR? yes you can - see documentation on Time Function P2012.

Q2

Can you trap this scenario when a use keys the IT2012 ? Yes you can. Enhancement PBAS0001 component EXIT_SAPFP50M_002

can be used to validate input in PA30

bg

Share
10 |10000 characters needed characters left characters exceeded
Shankar Reddy Chamala Apr 28, 2017 at 11:09 AM
0

In your PCR, check the operations OUTWPMASSN for Action Type and OUTWPMASSG for reason for action

Share
10 |10000 characters needed characters left characters exceeded
Rémi Corriveau Apr 28, 2017 at 04:14 PM
0

1 - What do you use to define the Probation Period and it's end? The Hire Date and a Constant from V_T511K, a Date on IT0041, or something else?

2 - Unless you have an ABAP resource create some Custom Code to validate the Absence with the "End of Probation" upon saving the Absence, the Absence will be created and it will only be during Time Evaluation that an Error Message could be generated.

Share
10 |10000 characters needed characters left characters exceeded