Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Knowing the days of the month of the specific year...

Hi Guys,

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.

Thanks!

Mark

Tags:
Former Member
Former Member replied

HI MARK.

<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>

EXPORTING

par_month = sy-datum+4(2)

par_year = sy-datum+0(4)

IMPORTING

PAR_DAYS = days

.

write days.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question