‎2008 Feb 18 3:10 AM
Hi all,,
Please advise me the function module that we help me to find the difference between two dates and would give the result or output as a date.
am working on a HR program.
Thanks in adv.
‎2008 Feb 18 3:13 AM
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS' " find the difference between review date and current date.
EXPORTING
beg_da = sy-datum
end_da = v_review_date
IMPORTING
no_day = v_diff_days
no_month = v_diff_months
no_year = v_diff_year
‎2008 Feb 18 3:13 AM
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS' " find the difference between review date and current date.
EXPORTING
beg_da = sy-datum
end_da = v_review_date
IMPORTING
no_day = v_diff_days
no_month = v_diff_months
no_year = v_diff_year
‎2008 Feb 18 3:13 AM
‎2008 Feb 18 3:41 AM
Hi Naveena,
Once you get the difference between two dates it will become no. of days. How can it will again be a date?
Regards,
Atish
‎2008 Feb 18 4:33 AM
hi
data : w_date TYPE I .
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
EXPORTING
beg_da = cl_date " input begeing date
end_da = s_indate " input end date
IMPORTING
NO_DAY = NO_DAY
NO_MONTH = NO_MONTH
NO_YEAR = NO_YEAR
NO_CAL_DAY = w_date.
u can get the date difereant using w_date. u hv to get interget value for that u cant get the diferant as a date.. its imposible..
regard
nawa
‎2008 Feb 18 4:39 AM
Hi
The difference between 2 dates can only be days and not a date.
Thanks
Vijay
‎2008 Feb 18 5:20 AM
hi,
try:
HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
reward points if helpful..