09-25-2008 5:38 AM
Hi Experts,
Hi Experts,
Ihave to calculate the date on First Monday in the given date range.
Say user enters
Week 24/09/2008 to 10/10/2008.
It should show the date on the Monday corressponding the first date i.e 22/09/2008
Regards,
Krishan
09-25-2008 5:42 AM
09-25-2008 5:42 AM
Hi
try this,
CALL FUNCTION 'DAY_ATTRIBUTES_GET'
EXPORTING
date_from = st_month
date_to = en_month
TABLES
day_attributes = itab
EXCEPTIONS.
itab contains all the attributes.....
09-25-2008 6:00 AM
Hi,
You can do as below:
Populate the values into internal table containing only field of type sy-datum.
loop at itab.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = itab-date
IMPORTING
DAY = gv_date
.
if gv_date = '1'.
write : itab-date.
endif.
endloop.
Thanks,
Sriram Ponna.