Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

@ date conversion

Former Member
0 Kudos

Hi,

If given a date, is there any FM to determine the first day and last day of that month??

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the function module HR_JP_MONTH_BEGIN_END_DATE

We have also LAST_DAY_OF_MONTHS to get the last day of the month

Regards

Sudheer

4 REPLIES 4

Former Member
0 Kudos

parameters: s_date type sy-datum,

e_date type sy-datum.

s_date = sy-datum.

call function 'RP_LAST_DAY_OF_MONTHS'

exporting

day_in = s_date

importing

last_day_of_month = e_date.

write : e_date.

Regards,

Pavan

Former Member
0 Kudos

SG_PS_GET_LAST_DAY_OF_MONTH

RE_LAST_DAY_OF_MONTH

HRVE_LAST_DAY_OF_MONTH

RP_LAST_DAY_OF_MONTHS

LAST_DAY_OF_MONTHS

You can use even the above FM's

Regards,

Pavan

Former Member
0 Kudos

Hi,

you can use OIL_LAST_DAY_OF_MONTH in order to find out the last day of month.

Also, with DAY_IN_WEEK you can distinguish which day of the week that date is.

Reagards,

Alexandros.

Former Member
0 Kudos

Hi,

Use the function module HR_JP_MONTH_BEGIN_END_DATE

We have also LAST_DAY_OF_MONTHS to get the last day of the month

Regards

Sudheer