cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Work schedule

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

sikindar_a
Active Contributor
0 Kudos

Check whether any user Exit is there

Holiday calendar will be based on PSA

Answers (3)

Answers (3)

jagan_gunja
Active Contributor
0 Kudos

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

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.

ElsaM
Explorer
0 Kudos

Thanks for the response Jagan.

The requirement at hand is about assigning multiple holiday calendars to the same personnel area. This cannot be done with configuration and it was suggested that user exits or badis may exist in the process where the work schedule is retrieved for an employee. We could add customer logic in such an exit.

We don't find that PT01 is a problem because we can freely enter which holiday calendar to use. The problem is when the work schedule of an employee is displayed (e.g. in IT0007) or when an absence is created. The system retrieves the work schedule to check if the absence day is a working day.

jagan_gunja
Active Contributor
0 Kudos

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.

ElsaM
Explorer
0 Kudos

Have you found any user exits to satisfy your requirement?

We need to do the same based on nationality.

Thanks in advance,

Elsa Markoulidou

Former Member
0 Kudos

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