‎2008 Jul 03 12:21 PM
hi,
i calculated the date in first_date.
i want this value should come as default value. but its not coming.
i wrote like this...
SELECT-OPTIONS :
DATE FOR vbak-erdat no intervals no-extension DEFAULT first_date,
SRCHTERM for konh-kosrt no intervals no-extension default ' ' .
Initialization.
w_date = sy-datum.
w_date4(2) = sy-datum4(2) - 1.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = w_date
IMPORTING
EV_MONTH_BEGIN_DATE = first_date
EV_MONTH_END_DATE =
.
please any one help me......
thanks
‎2008 Jul 03 12:22 PM
Initialization.
w_date = sy-datum.
w_date+4(2) = sy-datum+4(2) - 1.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = w_date
IMPORTING
EV_MONTH_BEGIN_DATE = first_date
* EV_MONTH_END_DATE =
date-sign = 'I'.
date-option = 'EQ'.
date-low = first_date.
append date.
regards,
John.
‎2008 Jul 03 12:24 PM
If U want the date in DATE ... then pass date in the
FM and not first_date
SELECT-OPTIONS :
DATE FOR vbak-erdat no intervals no-extension DEFAULT first_date,
SRCHTERM for konh-kosrt no intervals no-extension default ' ' .
Initialization.
w_date = sy-datum.
w_date4(2) = sy-datum4(2) - 1.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = w_date
IMPORTING
EV_MONTH_BEGIN_DATE = DATE
EV_MONTH_END_DATE =
‎2008 Jul 03 12:24 PM
Hi,
assign the value in initialisation event.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = w_date
IMPORTING
EV_MONTH_BEGIN_DATE = first_date.
if sy-subrc = 0.
date = first_date.
endif.
‎2008 Jul 03 12:25 PM
Hi,
SELECT-OPTIONS :
DATE FOR vbak-erdat no intervals no-extension DEFAULT sy-datum,
or u have to mention the date - default '01.06.2008'.
hope this helps you.
Reward points if helpfull.
Thanks & Regards,
Y.R.Prem Kumar
‎2008 Jul 03 12:26 PM
Hi,
You have to mentioned it in AT SELECTION SCREEN OUTPUT.
Regards,
Bharat.
‎2008 Jul 03 12:36 PM
Hi,
I think one modification will be needed in John Heutmekers's
code
just change the following ; code works.
date-sign = 'I'.
date-option = 'EQ'.
date-low = first_date.
modify date index 1.