Skip to Content

How to control leave type through PCR?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 27, 2017 at 03:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 28, 2017 at 11:09 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2017 at 04:14 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded