Skip to Content
avatar image
Former Member

Regarding Work schedule

Hi Experts,

We need to assign multiple holiday calendars for same personnel sub area i.e. different holiday calendar for different grade.

is there any BADI or User exit for transaction PT01 where i can write a code to change the holiday calendar though code?

Any suggestions?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jul 14, 2009 at 08:05 AM

    Check whether any user Exit is there

    Holiday calendar will be based on PSA

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 28, 2015 at 12:59 PM

    This is a frequently asked question.   There are several posts on SCN, SAP Help Portal or other sites.

    Or you would be able to use a eser exit in PT01 PT02 related program SAPMP51S

    See the links below -

    On SCN

    Public Holiday Calendar and Work Schedule Rules

    Other sites

    http://saphr.iexpertify.com/2009/01/list-of-hr-bapirfcs-part-2.html

    Business Application Programming Interfaces (BAPIs)

    BAPIs in R/3 Time Management

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Elsa Markoulidou

      If there are not too many differences between the holiday calendars for a PSA, then you should be able to use different holiday classes for the unique holidays (or those that are different between the calendars).

      Then configure day type selection rules to suit these different holidays. 

      Correspondingly use these day type sel.rules in the WSRs used for the employees in those different grades.

      Still you may be able to modify the calendar using the badi's or ABAP enhancement in the function for PT01 / PT02 after it obtains the Hol.calendar for a PA/PSA from T001P.

  • avatar image
    Former Member
    Jul 14, 2009 at 07:12 AM

    What every u can change in PT01 is possible in WSR Creation table.

    Changing in PT01 cannot resolve ur issue.

    need to think, a work around i guess.

    y dont u use holiday class for that ?!!

    like 3 which is applicable for only for M Grade

    and 4 applicable only for W Grade.

    In absence counting, yu can make rule on ESG and Holiday Class check.

    In time evaluation also, you can make conditions on this.

    Hope this resolves u r issue.

    Regards

    ...Sadhu

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 28, 2015 at 11:06 AM

    Have you found any user exits to satisfy your requirement?

    We need to do the same based on nationality.

    Thanks in advance,

    Elsa Markoulidou

    Add comment
    10|10000 characters needed characters exceeded