‎2007 Mar 16 3:34 PM
Hello all,
Is there any FM that would return me the start date and end date of a week given the week number and also the start date and end date of the month given the month number.
Madhu.
‎2007 Mar 16 3:44 PM
Hi,
Please check this FM.
LAST_WEEK
LAST_DAY_OF_MONTHS
Regards,
Ferry Lianto
‎2007 Mar 16 3:37 PM
Hi,
Use the FM LAST_WEEK to get the MONDAY & SUNDAY for the given week..
Thanks,
Naren
‎2007 Mar 16 3:42 PM
‎2007 Mar 16 3:45 PM
hi madhu,
check the FM 'RP_LAST_DAY_OF_MONTHS'..
also check this thread.......
https://forums.sdn.sap.com/click.jspa?searchID=1653780&messageID=2908686
regards,
priya
‎2007 Mar 16 3:47 PM
‎2007 Mar 16 4:01 PM
‎2007 Mar 16 3:44 PM
Hi,
Please check this FM.
LAST_WEEK
LAST_DAY_OF_MONTHS
Regards,
Ferry Lianto
‎2007 Mar 16 3:45 PM
Hi,
If you know the month...Then you can easily calculate the first day of the month..Just by concatenating the month and the year..
Then use the FM MM_LAST_DAY_OF_MONTHS to get the last day of the month for that date..
Ex.
V_MONTH = '02'.
CONCATENATE SY-DATUM(4) V_MONTH '01' INTO V_DATE.
CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = V_DATE
IMPORTING
LAST_DAY_OF_MONTH = V_LAST_DATE.
Thanks,
Naren