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

month end date

Former Member
0 Likes
1,057

how to display month end date for every month by default?

how to display month end date for every month by default?

6 REPLIES 6
Read only

Former Member
0 Likes
1,023

hi Sudharshan,.

Hi,

Check

Regards,

Santosh

Read only

Former Member
0 Likes
1,023

Please check FM: MM_ARRANG_GET_END_OF_MONTH

Kind Regards

Eswar

Read only

0 Likes
1,023

Hi,

use fm LAST_DAY_OF_MONTHS

A.

Read only

anversha_s
Active Contributor
0 Likes
1,023

hi,

chk this code.

by default it will show the begin and end date in select option.

the similar think u can adopt.

check this sample code...

tables: mkpf.

data date like sy-datum.

data date1 like sy-datum.

select-options: s_date for mkpf-budat.

initialization.

CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'

EXPORTING

iv_date = sy-datum

IMPORTING

EV_MONTH_BEGIN_DATE = date

EV_MONTH_END_DATE = date1

.

s_date-option = 'EQ'.

s_date-sign = 'I'.

s_date-low = date.

s_date-high = date1.

append s_date.

rgds

anver

if hlped mark points

Read only

Former Member
0 Likes
1,023

Check this example it will help u.

report z_example.

data: v_lastdate like sy-datum.

CALL FUNCTION 'LAST_DAY_OF_MONTHS'

EXPORTING

DAY_IN = sy-datum

IMPORTING

LAST_DAY_OF_MONTH = v_lastdate.

write:/ v_lastdate.

Regards

Read only

Former Member
0 Likes
1,023

Hi ,

You can also USe FM :

call function 'RP_LAST_DAY_OF_MONTHS'

EXPORTING

day_in = g_t_date-begin

IMPORTING

last_day_of_month = g_t_date-end.

g_t_date-end is the last day of the month .

thanks .