08-06-2009 2:15 AM
HI ,
I need to find start date & end date of MMYYYY.
Is there any FM to do this??
thanks
Moderator comments: 1st warning.
Pl read the rules of engagement & [Date questions not allowed|/thread/1360534 [original link is broken];
Awarded points are unassigned & the thread is locked.
Edited by: Suresh Datti on Aug 6, 2009 4:14 AM
08-06-2009 2:32 AM
Hi Karthik,
Try this way.
Thanks
Venkat.O REPORT ZTEST_NOTEPAD.
PARAMETERS :p_month(2) type n,
p_year(4) type n.
data:first_day LIKE VTBBEWE-DVALUT,
last_day type datum,
days(2) TYPE c.
"First date of the month
CONCATENATE p_year p_month '01' INTO first_day.
CALL FUNCTION 'END_OF_MONTH_DETERMINE_2'
EXPORTING
i_datum = first_day
IMPORTING
E_TT = days.
"Last date of the month
CONCATENATE p_year p_month days INTO last_day.
WRITE:/ first_day,
/ last_day.