Sunday, May 3, 2009

Function Module to get Month Begin date and End Date

Data: IV_DATE type d value '20090503',
begin_date type d,
end_dat type d.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = IV_DATE
IMPORTING
EV_MONTH_BEGIN_DATE = begin_date
EV_MONTH_END_DATE = end_dat.

write : 'Begin Date', begin_date, 'End Date', end_dat.