06-26-2008 4:11 PM
Hi,
I know theres plently of function modules to do the above but does anyone know one that calculates the amount of CALENDER months between two dates. I need to count the amount of payroll periods between two dates and then work from there.
Thanks
06-26-2008 4:15 PM
06-26-2008 4:19 PM
Hi, again that strictly goes by days...e.g from 05/01/08 to 07/01/2008 gives back one month which is correct but not for my calculations. A month needs to be a calender month, e.g 01/01/08 to 05/02/08 means all of January is covered e.g one FULL month
06-26-2008 4:28 PM
Data v_month type I.
CALL FUNCTION 'HR_AUPBS_MONTH_DAY'
EXPORTING
beg_da = 01.01.2008
end_da = 05.02.2008
IMPORTING
* NO_DAY =
NO_MONTH = v_month
* NO_YEAR =
* NO_CAL_DAY =
.
06-26-2008 4:33 PM
Hi, tried that one before. If you for example had 05/01/2008 to 25/02/2008 its say one month but its not one payroll month which is from the first to last (1st Jan to 31st Jan)
Anyone else have ideas?