2006 Oct 16 7:11 AM
how to display month end date for every month by default?
2006 Oct 16 7:13 AM
2006 Oct 16 7:14 AM
Please check FM: MM_ARRANG_GET_END_OF_MONTH
Kind Regards
Eswar
2006 Oct 16 7:22 AM
2006 Oct 16 7:15 AM
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
2006 Oct 16 7:24 AM
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
2006 Oct 16 7:33 AM
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 .
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |