Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Runtime error in FM HR_HK_DIFF_BT_2_DATES

Former Member
0 Likes
579

hi experts,

i am getting runtime error at years = ( l_date3+0(4) + ( l_total_number_days / days_in_year ) ). in the FM HR_HK_DIFF_BT_2_DATES.

the runtime error is Overflow during the arithmetical operation (type P) in program "SAPL3HKC".

can any one give me the suggestion to get a solution.

thanks

nagaraj

1 REPLY 1
Read only

Former Member
0 Likes
386

Hi,

Check what you have passed to the dates. (DATE1 , DATE2)

If the difference is greater than 999 years , then you'll get the below dump.

l_date3 = ( date1 + 1 ) - date2.

Regards,

Srini.