‎2009 Jul 16 4:25 AM
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
‎2009 Jul 16 5:14 AM
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
‎2009 Jul 16 4:28 AM
hi
at selection-screen output event and place your code
regards
anand kumar
‎2009 Jul 16 4:37 AM
‎2009 Jul 16 4:59 AM
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?
‎2009 Jul 16 4:49 AM
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.
‎2009 Jul 16 4:55 AM
At SELECTION-SCREEN OUTPUT would work when you execute your program.
Thanks
Kiran
‎2009 Jul 16 5:08 AM
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
‎2009 Jul 16 5:14 AM
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
‎2009 Jul 16 5:23 AM
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
‎2009 Jul 16 5:41 AM
Hi,
Do it in the Initialization event.
This event is executed before the selection screen is displayed .
Hope this solves your problem.
Thanks,
Sri.