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

default value not coming.....

Former Member
0 Likes
734

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

6 REPLIES 6
Read only

Former Member
0 Likes
709

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.

Read only

Former Member
0 Likes
709

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 =

Read only

dev_parbutteea
Active Contributor
0 Likes
709

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.

Read only

Former Member
0 Likes
709

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

Read only

Former Member
0 Likes
709

Hi,

You have to mentioned it in AT SELECTION SCREEN OUTPUT.

Regards,

Bharat.

Read only

Former Member
0 Likes
709

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.