cancel
Showing results for 
Search instead for 
Did you mean: 

Manager not able to approve leave of the employee on the MSS

Former Member
0 Kudos

Hi There,

When the manager execute the work item on the portal, a run time error occurs on SAP and as discribed on ST22, is caused by function module HR_HK_DIFF_BT_2_DATES which returns a CX_SY_ARITHMETIC_OVERFLOW exception. I Think that this function is supposed to return the difference between the start date of the leave and the end date of the leave. but on the trace, it looks like it is not receiving the end date of the leave. I cannot manage to simmulate the problem in development.

Some managers are able to approve and some can't however they have the same roles and their recored are same on HR.

Can you help me to track the real cause of this problem?

Best regards,

Flubert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you checked OSS notes for this? Sounds like a bug in the standard function module (if you are using standard leave approval application). Chec for example note 1096741.

Regards,

Karri

Former Member
0 Kudos

The oss note that you recomended was applied as we are runing ECC6.

I addition, the problem is pointing at the following statment:

years = ( l_date3+0(4) + ( l_total_number_days / days_in_year ) ).

I want to think that the end date2 is not supplied to the function, that is the reason why it is failling.

But why would date2 not be passed to the function???

Even if it is one day leave, date2 is supposed to be passed to the function with the same value as date1 !!!

What can be the next point of investigation????

Thanks a millon!

Flubert.

Former Member
0 Kudos

>I want to think that the end date2 is not supplied to the function, that is the reason why it is failling

Why don't you just debug it? If some managers are able to produce the error in production, you could set an external break point for one of them. But even after this you might become to a result that the bug is caused by the leave approval application, and you might need to check this with SAP support (or check the notes once again).

Regards,

Karri

vijy_mukunthan
Active Contributor
0 Kudos

Hi Flubert

I think its a bug. Since the error comes from the std FM. Better raise to SAP.

Regards

vijay

former_member185167
Active Contributor
0 Kudos

Hello,

Check the user settings for the users having the problems, eg how dates are represented and timezones etc.

See if there are any differences.

regards

Rick Bakker

Hanabi Technology