‎2009 Oct 21 7:31 AM
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.
‎2009 Oct 21 7:37 AM
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
‎2009 Oct 21 7:37 AM
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
‎2009 Oct 21 7:56 AM
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
‎2009 Oct 21 7:58 AM
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
‎2009 Oct 21 7:40 AM
Why do you need a FM to find the diff betwn 2 dates in the first place?
pk
‎2009 Oct 21 8:01 AM
Seems you have given heavy range of Dates Difference..Just check it ..Will work definetly
Sas
‎2009 Oct 21 9:28 AM
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.
‎2009 Oct 21 9:48 AM
>
> 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 ...
‎2009 Oct 21 2:48 PM
‎2009 Oct 28 7:31 AM
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.