08-05-2008 7:33 AM
Hi All,
I want function module to get difference between two days. (billing date and delivery date).
So,can you help me out.
Regards,
Priya.
08-05-2008 7:35 AM
08-05-2008 7:35 AM
08-05-2008 7:36 AM
hi,
Check the function Modules
DAYS_BETWEEN_TWO_DATES
FIMA_DAYS_AND_MONTHS_AND_YEARS
in your case , I think Best will be
SD_DATETIME_DIFFERENCE
08-05-2008 7:36 AM
08-05-2008 7:38 AM
Hi priya,
Instead of using FM u can directly substract the 2 dates to get the diff.
data: ldate1 like sy-datum,
ldate2 like sy-datum,
ldays type i.
l_date1 = '20081012'.
l_date2 = '20080912'.
ldays = ldate1 - ldate2. << ldays contains no. of days
08-05-2008 7:38 AM
Hi
HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.
Also go through the link given below :
http://www.saptechies.com/abap-function-modules/
With Regards
Nikunj shah
'
08-05-2008 7:43 AM
Hi,
with the help of following FM u can find out deff btwn two dates..
HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
Thanks & regards
Ashu Singh
08-05-2008 7:43 AM
Hi Supriya,
Can u pls check thie FM : DAYS_BETWEEN_TWO_DATES
Regards,
Suresh.S