Application Development and Automation 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: 
Read only

@ date conversion

Former Member
0 Likes
734

Hi,

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
701

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

Former Member
0 Likes
701

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

Read only

Former Member
0 Likes
701

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

Read only

Former Member
0 Likes
701

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.

Read only

Former Member
0 Likes
702

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