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

SELECT-OPTIONS.

Former Member
0 Likes
799

HI.

am using date field in select-options. i want to display date on that field how to do this ..

Ex :

date 01.01.2007 to 31.01.2007.

Regards

Prajwal.

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
770

you can use the intialization event to write values to selection screen variable

initialization.
  so_date-sign = 'I'.
  so_date-options = 'EQ'.
  so_date-low = '02.02.2007'.
  so_date-high = '04.09.2007'.
  append so_date.

Regards

Gopi

7 REPLIES 7
Read only

franois_henrotte
Active Contributor
0 Likes
770

if your select-options is called SO_DATUM

you just do:

WRITE: / 'Date:', so_datum-low DD/MM/YYYY, 'to', so_datum-high DD/MM/YYYY.

Read only

Former Member
0 Likes
770

Hi Prajwal,

Select-options : S_date for dats.

Regards,

Hemant

Read only

gopi_narendra
Active Contributor
0 Likes
771

you can use the intialization event to write values to selection screen variable

initialization.
  so_date-sign = 'I'.
  so_date-options = 'EQ'.
  so_date-low = '02.02.2007'.
  so_date-high = '04.09.2007'.
  append so_date.

Regards

Gopi

Read only

former_member404244
Active Contributor
0 Likes
770

Hi,

u can do this in initialization event.

select-options : s_date for ekko-aedat.

initialization.

s_date-sign = 'I'.

s_date-option = 'BT'.

s_date-low = ' 01.01.2007 '.

s_date-high = ' 31.01.2007'.

append s_date.

Regards,

nagaraj

Read only

Former Member
0 Likes
770

Hi

You can do it by using initialization event by assigning low = 01.01.2007 and high=31.01.2007.

And you can create a variant in selection screen by entering the values in the low and high options whatever dates you want and you can create a variant and maintain it you can use it anytime you want to create variant

in your selection screen enter the required dates and select GOTO in the menu and select Variants and give a name and every time you come to selection screen you will find an additional icon on application toolbar you just click on that and select your variant the dates will be assigned.

Regards

Tharanatha

Read only

varma_narayana
Active Contributor
0 Likes
770

Hi Prajwal..

Do this way...

select-options : s_date for sy-datum.

Initialization.

s_date-sign = 'I'.

s_date-option = 'BT'.

s_date-low = ' 20070101 '.

s_date-high = ' 20070131'.

append s_date.

<b>reward if Helpful</b>

Read only

Former Member
0 Likes
770

thanks to all