Knowing the days of the month of the specific year...
I am doing a report which would output a number of days of the month in the specific year. The days will be below the specific month in rows...
Example: There are 31 days for the month of october... 28 days for february for year 2007... 29 days of february for year 2008...
May I know how am I going to achieve this?
All your help will be greatly appreciated.
Santosh Kapse replied
<b>Use the FM: NUMBER_OF_DAYS_PER_MONTH_GET</b>
pass month number and year.. and u will get days.
data: days LIKE T009B-BUTAG.
CALL FUNCTION <b>'NUMBER_OF_DAYS_PER_MONTH_GET'</b>
par_month = sy-datum+4(2)
par_year = sy-datum+0(4)
PAR_DAYS = days