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

HR_HK_DIFF_BT_2_DATES

Former Member
0 Likes
4,477

hi friends,

hope all of you doing good.

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

the error message i am getting is Overflow during the arithmetical operation (type P) in program "SAPL3HKC".

can any one give me the suggestion inseted of using this FM HR_HK_DIFF_BT_2_DATES can i use any othere FM for the same purpuse.

thaks

ysr.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,582

Hi,

have u given the data like this ...

DATE1 20.10.2009

DATE2 10.10.2009

OUTPUT_FORMAT 02

Export parameters Value

YEARS 0,0000

MONTHS 0,0000

DAYS 11

you have to first test with the FM, then send the data via program.

date 1 should be greater than date 2

in the program you have to give it like

date1 = 20091020

date2 = 20091010

output_format = '02'

and then see the results.

Results

Venkatesh

9 REPLIES 9
Read only

Former Member
0 Likes
2,583

Hi,

have u given the data like this ...

DATE1 20.10.2009

DATE2 10.10.2009

OUTPUT_FORMAT 02

Export parameters Value

YEARS 0,0000

MONTHS 0,0000

DAYS 11

you have to first test with the FM, then send the data via program.

date 1 should be greater than date 2

in the program you have to give it like

date1 = 20091020

date2 = 20091010

output_format = '02'

and then see the results.

Results

Venkatesh

Read only

0 Likes
2,582

hi venkat,

you r right i am doing the same and i am able to do with few dates in my program. but it is giving dump for othere dates

so how i can achive it .

ysr

Read only

0 Likes
2,582

Hi,

give us that test data where u r getting the dump

so that we can analyze why iit is giving dump;

give the data

Regards,

Venkatesh

Read only

Former Member
0 Likes
2,582

Why do you need a FM to find the diff betwn 2 dates in the first place?

pk

Read only

Former Member
0 Likes
2,582

Seems you have given heavy range of Dates Difference..Just check it ..Will work definetly

Sas

Read only

matt
Active Contributor
0 Likes
2,582

Without giving your test data how do you expect to get help? My telepathic skills are weak at the moment.

Note to other: - as this is a question relating to a dump rather than a date question, I've not rejected it.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,582

>

> Without giving your test data how do you expect to get help? My telepathic skills are weak at the moment.

You posses telepathic powers? Ooo ...

Read only

Former Member
0 Likes
2,582

self resolved

Read only

0 Likes
2,582

Hi there,

How did you solve the problem?

I am experiencing the same situation and I do not want to change tha function module, I want to fix it.

Best regards,

Flubert.