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

selection screen prob

Former Member
0 Likes
954

Hi,

I wanted to use select option is my selection screen. I have to show the default date in my selection screen.

I wrote the code as

select-options: date for sy-datum default sy-datum.

in initialization event

date-low = sy-datum - 1.

date-high = sy-datum.

date-sign = 'i'

date-option = 'bt'.

append date.

but in my selection screen date is not coming default.

any body will tell me how to approch??

12 REPLIES 12
Read only

Former Member
0 Likes
929

u have to remove DEFAULT sy-datum (important) as amit told

date-sign = <b>'I'</b>

date-option = <b>'BT'</b>.

Read only

Manohar2u
Active Contributor
0 Likes
929

Deleted

Message was edited by: Manohar Reddy

Read only

Former Member
0 Likes
929

HI salil,

1. minor mistake

2. <b>remove the DEFAULT in declaratiion.</b>

3. <b>also make CAPITAL.</b>

4. just copy paste

report abc.

select-options: <b>date for sy-datum</b> .

initialization.

date-low = sy-datum - 1.

date-high = sy-datum.

<b> date-sign = 'I'.

date-option = 'BT'.</b>

append date.

regards,

amit m.

Read only

Former Member
0 Likes
929

hi,

Use This

have used no interval option.

or

date-low = sy-datum - 1.

date-high = sy-datum.

date-sign = 'I'

date-option = 'BT'.

append date.

Read only

Former Member
0 Likes
929

Hai Salil

Just check the modified code bellow

<b>select-options: date for sy-datum. " default sy-datum.

initialization.

date-low = sy-datum - 1.

date-high = sy-datum.

date-sign = 'I'.

date-option = 'BT'.

append date.</b>

Thanks & regards

Sreenivasulu P

Read only

Former Member
0 Likes
929

Hi Salil,

change the code as below.

select-options: r_date for sy-datum.

in initialization event

r_date-sign = 'I'.

r_date-option = 'BT'.

r_date-low = sy-datum - 1.

r_date-high = sy-datum.

append r_date.

Read only

Former Member
0 Likes
929

hi salil.

Try this way...

select-options: date for sy-datum default sy-datum.

initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = '<b>I</b>'
date-option = '<b>BT</b>'.
append date.

Regards

vijay

Read only

Former Member
0 Likes
929

select-options: date for sy-datum.

initialization.

date-low = sy-datum - 1.

date-high = sy-datum.

date-sign = 'I'.

date-option = 'BT'.

append date.

Regards,

Shalini

Read only

Former Member
0 Likes
929

Hi Salil,

Use it this way

INITIALIZATION.

DATE-LOW = SY-DATUM - 1.

DATE-HIGH = SY-DATUM.

DATE-SIGN = 'i'.

DATE-OPTION = 'bt'.

APPEND DATE.

Regards

-


Sachin Dhingra

Read only

0 Likes
929

Sachin, did you even test that code?

Regards,

Rich Heilman

Read only

0 Likes
929

All seven people who suggested that you need to capitalize the I and BT and remove the DEFAULT are correct. Please make sure to award points accordingly mark this post as solved as it has been solved 7 times over.




<b>select-options: date for sy-datum.</b>

initialization.

  date-low    = sy-datum - 1.
  date-high   = sy-datum.
  date-sign   = <b>'I'</b>.
  date-option = <b>'BT'</b>.
  append date.

And one more for good luck.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
929

hi

make 'i' to 'I'

and 'bt' to 'BT'.

in initialization event

date-low = sy-datum - 1.

date-high = sy-datum.

date-sign = 'I'

date-option = 'BT'.

append date.

Ramesh.