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

Reg:Declaring the default date

Former Member
0 Likes
994

In the select options have to declare the from field as (sy-datum)-60 and the to field as sy-datum.This is mandatory.How should i declare it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
880

Hi,

Check the following code:

select-options: so_date for sy-datum.

initialization.

so_date-low = sy-datum - 60.

so_date-high = sy-datum.

append so_date.

Regards,

Bhaskar

7 REPLIES 7
Read only

Former Member
0 Likes
880

if date is the name of your select-option then you can give it as

date-low = sy-datum.

for example

Select-option: date for mara-date default sy-datum.

i hope it helps.

thanks

Read only

Former Member
0 Likes
880

hi,

do this way ...


select-options : s_date for eban-erdat.

initialization.
s_date-low = sy-datum - 60.
s_date-sign = 'I'.
s_date-option = 'EQ'.
append s_date.
 clear s_date.
 

Read only

Former Member
0 Likes
881

Hi,

Check the following code:

select-options: so_date for sy-datum.

initialization.

so_date-low = sy-datum - 60.

so_date-high = sy-datum.

append so_date.

Regards,

Bhaskar

Read only

Former Member
0 Likes
880

data : v_date1 like sy-datum,

v_date2 like sy-datum.

select-options : s_date for sy-datum.

initialization.

v_date1 = sy-datum - 60.

v_date2 = sy-datum.

s_date-low = v_date1.

s_date-high = sy-datum.

s_date-sign = 'I'.

s_date-option = 'BT'.

append s_date.

Read only

Former Member
0 Likes
880

tables: syst.

select-options: s_date for syst-datum obligatory.

initialization.

s_date-low = sy-datum - 60.

s_date-high = sy-datum.

append s_date.

reward if useful.................................

Read only

naveen1241
Participant
0 Likes
880

load-of-program.

s_dat-low = sy-datum - 60.

s_dat-high = sy-datum.

append s_dat.

Edited by: Naveen Natarajan on Mar 28, 2008 2:36 PM

Read only

Former Member
0 Likes
880

SELECT-OPTIONS : sel_dt FOR sy-datum DEFAULT sy-datum OBLIGATORY.

LOAD-OF-PROGRAM.

sel_dt-low = sy-datum - 60.

sel_dt-high = sy-datum.

APPEND sel_dt.