Application Development 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: 

need help on date field

selvi1
Explorer
0 Kudos

hai,

in selection screen, i am having the date field as select-options.

if i give low value, it should automatically display the high value, how to do this.

thanks.

5 REPLIES 5

Former Member
0 Kudos

Hi ,

Try using the AT SELECTION SCREEN event , but for that to be triggred the user must press enter.

Regards

Arun

Former Member
0 Kudos

hi,

what value u want to display as an high value.

regards,

Navneeth.K

Former Member
0 Kudos

HI,

Assign default value SY-DATUM to date field like DATE-HIGH = SY-DATUM.

SELECT-OPTIONS:s_date FOR sy-datum DEFAULT '' TO

sy-datum.

Regrds,

Suresh

Message was edited by:

SureshKumar

Former Member
0 Kudos

Hi,

U can use AT SELECTION-SCREEN event as follows :

AT SELECTION-SCREEN on S_DATE

if not S_DATE-LOW is initial.

S_DATE-OPTION = 'BT'.

S_DATE-HIGH = SY-DATUM.

MODIFY S_DATE.

Endif.

This shud help u.

Regards,

Himanshu

Message was edited by:

Himanshu Aggarwal

Message was edited by:

Himanshu Aggarwal

Former Member
0 Kudos

Hi,

You can Do this in AT SELECTION-SCREEN ON <FIELD> event as follows :

AT SELECTION-SCREEN on S_DATE

if not S_DATE-LOW is initial.

S_DATE-OPTION = 'BT'.

S_DATE-HIGH = SY-DATUM.

MODIFY S_DATE INDEX 1.

Endif.

Regards

Sudheer