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

problem in select-options

Former Member
0 Likes
1,031

Hi all,

I am having a date field in selection screen as select option in whihc i want the values as to appear default.

my requirement is to get the first day of year and last day of year so i am using 'FIRST_AND_LAST_DAY_IN_YEAR_GET' function module.

but the problem is i am not getting where to write this function module in which event so that it can work properly.

thanks

poonam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,003

hi

use option

select-options : date like sy-datuum

at selection-screen output.

use FM module

date-low = first date ( from ur Function module for both first and last day)

date-high = last date

regards

anand kumar

9 REPLIES 9
Read only

Former Member
0 Likes
1,003

hi

at selection-screen output event and place your code

regards

anand kumar

Read only

Former Member
0 Likes
1,003

AT SELECTION-SCREEN OUTPUT. is the right event.

Thanks,

Kiran

Read only

0 Likes
1,003

i am not getting it.

i have placed the function module unders at selection-screen output.

then wat abt my select-options? where am i mentioning that?

Read only

vimalv
Active Participant
0 Likes
1,003

Put your Function Module call under event INITIALIZATION.

AT SELECTION-SCREEN OUTPUT will be executed everytime you press the enter key on your keyboard or on any screen event like radio button click, execute buton, etc.

Read only

Former Member
0 Likes
1,003

At SELECTION-SCREEN OUTPUT would work when you execute your program.

Thanks

Kiran

Read only

Former Member
0 Likes
1,003

Hi Poonam,

You have mentioned that you have a select-option for date, so do you want to display the day in another select-option for the selected date? If so in at-selection-screen event call your FM and fill the values to the select-option which is for day. Remeber that select option may conatain multiple value so you may need to loop at your selet-option to get the days for each date in the select-option.

Edited by: Manoj Kumar on Jul 16, 2009 6:09 AM

Read only

Former Member
0 Likes
1,004

hi

use option

select-options : date like sy-datuum

at selection-screen output.

use FM module

date-low = first date ( from ur Function module for both first and last day)

date-high = last date

regards

anand kumar

Read only

0 Likes
1,003

hi,

i am getting it without at selection-screen output.

if i am using at selection screen output, its not going into that event? where am i wrong?

thanks.

i have one doubt here.

now when i execute.. i get my selection screen and the values for date ll not filled right? so i ll make it as screen-input = 0.????

where ll i write this? and how?

Edited by: Poonam Naik on Jul 16, 2009 6:25 AM

Read only

0 Likes
1,003

Hi,

Do it in the Initialization event.

This event is executed before the selection screen is displayed .

Hope this solves your problem.

Thanks,

Sri.