cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar - Leave Request vs Record Working time

Former Member
0 Kudos

Hi Experts,

I am facing below issue:

The Calendar display in Leave Request and Calendar display in Record Working time applications are showing different attributes for the same objects.

Let us say a holiday on  29th July shown in Leave Request screen as holiday (Highlighted in yellow as per Legend) but the same calendar in Record working time application shows the same day (29th July) as Non working Day.

Below Screenshot is for your reference:



I have gone through many a threads some suggested there is no such option/ enhancement for Record working time (about Java version) and I found no answer still.

Few threads I referred:

http://scn.sap.com/thread/1767598
http://scn.sap.com/thread/1463999
http://scn.sap.com/thread/1388655
http://scn.sap.com/thread/1470638
http://scn.sap.com/thread/1584997

How can I achieve this (Show Public Holidays in Legend colour & with Holiday text as tool tip), I have tried below BADI's but my ABAP person told me there are no such parameters in below BADI's those call Holidays & Legends. I am on WD-ABAP version (Ehp6).

Regards,

Srikanth Naidu. A

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182426
Active Contributor
0 Kudos

CATS profiles are configured with HR-Enabled ?

if it's enabled check the BADI's

HRESS_CATSPUB_HOLIDAY_ENH

HRESS_CATS_CAL_LEGEND_ENH

HRESS_CATS_CAL_DISPL

Former Member
0 Kudos

Hi Shankar,


Thanks for your reply, below is my CAC1, cats profile:

Yes, mine is a HR enabled CATS.

Am I missing anything in above screenshot ?

do we need to configure any nodes in below highlighted areas ?

Regards,

Srikanth Naidu. A

former_member182426
Active Contributor
0 Kudos

no nothing else, if it's enabled then you can implement the BADI's which I have mentioned above.

For more information read at https://help.sap.com/erp_hcm_ias_2013_01/helpdata/en/7a/82e7c9f9044bdd8b7883ae90b98c26/content.htm?f...

Former Member
0 Kudos

Hi Shankar Reddy Chamala,

Our ABAP people are struggling to get the relative parameters in above BADIs.

HRESS_CATSPUB_HOLIDAY_ENH: Not able to get the break point while running the Record Working time

HRESS_CATS_CAL_LEGEND_ENH: Working as per the code below


METHOD if_hress_cats_cal_legend~update_cal_legend.

DATA ls_cal_legend TYPE  ls_legend_context.

   LOOP AT et_cal_legend INTO ls_cal_legend.

     CASE ls_cal_legend-lname.

       WHEN 'MAINTAINED'.

         ls_cal_legend-ltext = 'Approval Pending'.        "default text complete

         ls_cal_legend-lvisible = 'X'.

         ls_cal_legend-tooltip = 'Approval Pending'.

         ls_cal_legend-semantic = '09'.

       WHEN 'NOT_RELEASED'.

         ls_cal_legend-ltext = 'Not Released'.        "default text not released

         ls_cal_legend-lvisible = 'X'.

         ls_cal_legend-tooltip = 'Not Released'.

         ls_cal_legend-semantic = '12'.

       WHEN 'NON_WORKING'.                "default text non working day

         ls_cal_legend-ltext = 'Non Working Day'.

         ls_cal_legend-lvisible = 'X'.

         ls_cal_legend-tooltip = 'Non Working Day'.

         ls_cal_legend-semantic = '38'.

       WHEN 'HOLIDAY'.                    "default text holiday

         ls_cal_legend-ltext = 'Holiday'.

         ls_cal_legend-lvisible = 'X'.

         ls_cal_legend-tooltip = 'Holiday'.

         ls_cal_legend-semantic = '06'.

*      WHEN 'SELECTED'.                    "default text holiday

*        ls_cal_legend-ltext = 'Current Selection'.

*        ls_cal_legend-lvisible = 'X'.

*        ls_cal_legend-tooltip = 'Current Selection'.

*        ls_cal_legend-semantic = ''.

     ENDCASE.

     APPEND ls_cal_legend TO et_updated_cal_legend.

   ENDLOOP.

ENDENHANCEMENT.

*$*$-End:   (1)---------------------------------------------------------------------------------$*$*

ENDMETHOD.

Output:

HRESS_CATS_CAL_DISPL: Below parameters available (Which is not related to Holidays display) 


1. Payroll Period enddate (Retrieved via a web service)

2. End of current calendar month

3. Custom implementation (Can be used by customers in custom BAdI Impl.)

Parameters

EV_PERNRTYPE PERNR_DPersonnel Number
EV_FIRST_TEXTTYPE STRING
EV_SEC_TEXTTYPE STRING
EV_THIRD_TEXTTYPE STRING

Could you please guide us here, Please let us know where can we pass Public holidays to which BADI.

Regards,

Srikanth Naidu