‎2007 Sep 26 9:06 AM
Hi ,
i need some function module which is taken month and year and it will give last date of that month in that year , i think there is some function module
pls can u help me
‎2007 Sep 26 9:08 AM
‎2007 Sep 26 9:08 AM
‎2007 Sep 26 9:09 AM
‎2007 Sep 26 9:18 AM
data: start_date type sy-datum,
end_date type sy-datum.
parameters: p_spbup type spbup.
start-of-selection.
start_date = p_spbup.
start_date+6(2) = '01'.
call function 'LAST_DAY_OF_MONTHS'
exporting
day_in = start_date
importing
last_day_of_month = end_date.
write:/ start_date, end_date.
*************************************
Use Function modules for finding last day of month:
RE_LAST_DAY_OF_MONTH
RP_LAST_DAY_OF_MONTHS
SLS_MISC_GET_LAST_DAY_OF_MONTH
***************************************
Regards
Vasu
‎2007 Sep 26 9:37 AM
‎2007 Sep 26 9:37 AM