on 10-27-2009 2:18 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
>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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.